org.codehaus.plexus.security.authorization.rbac.jdo.v0_9_0
Class JdoResource

java.lang.Object
  extended by org.codehaus.plexus.security.authorization.rbac.jdo.v0_9_0.JdoResource
All Implemented Interfaces:
Serializable, org.codehaus.plexus.security.rbac.Resource

public class JdoResource
extends Object
implements org.codehaus.plexus.security.rbac.Resource, Serializable

In RBAC terms, this is the entity which an operation is associated with that which permissions are based on.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.codehaus.plexus.security.rbac.Resource
GLOBAL, NULL
 
Constructor Summary
JdoResource()
           
 
Method Summary
 boolean equals(Object other)
          Method equals.
 String getIdentifier()
          Get the string identifier for a resource.
 int hashCode()
          Method hashCode.
 boolean isPattern()
          Get true if the identifer is a pattern that is to be evaluated, for example x.* could match x.a or x.b and x.** could match x.foo.
 boolean isPermanent()
          Get true if this object is permanent.
 void setIdentifier(String identifier)
          Set the string identifier for a resource.
 void setPattern(boolean pattern)
          Set true if the identifer is a pattern that is to be evaluated, for example x.* could match x.a or x.b and x.** could match x.foo.
 void setPermanent(boolean permanent)
          Set true if this object is permanent.
 String toString()
          Method toString.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JdoResource

public JdoResource()
Method Detail

equals

public boolean equals(Object other)
Method equals.

Overrides:
equals in class Object
Parameters:
other -
Returns:
boolean

getIdentifier

public String getIdentifier()
Get the string identifier for a resource.

Specified by:
getIdentifier in interface org.codehaus.plexus.security.rbac.Resource
Returns:
String

hashCode

public int hashCode()
Method hashCode.

Overrides:
hashCode in class Object
Returns:
int

isPattern

public boolean isPattern()
Get true if the identifer is a pattern that is to be evaluated, for example x.* could match x.a or x.b and x.** could match x.foo.

Specified by:
isPattern in interface org.codehaus.plexus.security.rbac.Resource
Returns:
boolean

isPermanent

public boolean isPermanent()
Get true if this object is permanent.

Specified by:
isPermanent in interface org.codehaus.plexus.security.rbac.Resource
Returns:
boolean

setIdentifier

public void setIdentifier(String identifier)
Set the string identifier for a resource.

Specified by:
setIdentifier in interface org.codehaus.plexus.security.rbac.Resource
Parameters:
identifier -

setPattern

public void setPattern(boolean pattern)
Set true if the identifer is a pattern that is to be evaluated, for example x.* could match x.a or x.b and x.** could match x.foo.

Specified by:
setPattern in interface org.codehaus.plexus.security.rbac.Resource
Parameters:
pattern -

setPermanent

public void setPermanent(boolean permanent)
Set true if this object is permanent.

Specified by:
setPermanent in interface org.codehaus.plexus.security.rbac.Resource
Parameters:
permanent -

toString

public String toString()
Method toString.

Overrides:
toString in class Object
Returns:
String


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.