Class RoleConstraint
- java.lang.Object
-
- org.apache.directory.fortress.core.model.FortEntity
-
- org.apache.directory.fortress.core.model.RoleConstraint
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
RoleConstraintAnt
public class RoleConstraint extends FortEntity implements Serializable
The role constraint object holds non date time constraints on user to role relationships.- Author:
- Apache Directory Project
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RoleConstraint.RCType
The type of role constraint.
-
Field Summary
Fields Modifier and Type Field Description static String
RC_TYPE_NAME
-
Fields inherited from class org.apache.directory.fortress.core.model.FortEntity
adminSession, contextId, modCode, modId, sequenceId
-
-
Constructor Summary
Constructors Constructor Description RoleConstraint()
RoleConstraint(String id, String value, RoleConstraint.RCType type, String key)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
void
genId()
Generate a unique, random id, set as the value of id.String
getId()
Return the object id.String
getKey()
The key associated with a particular constraint.String
getRawData(UserRole uRole)
This is the actual value of data stored in the LDAP attribute ftRC.RoleConstraint.RCType
getType()
Return the type of the constraint.String
getTypeName()
Return the type of OU in string format.String
getValue()
Get the value of a particular constraint.int
hashCode()
void
setId(String id)
Set the id.void
setKey(String key)
Set the key on a constraint.void
setType(RoleConstraint.RCType type)
Set the constraint type.void
setTypeName(String typeName)
Method accepts a String variable that maps to its parent's set type.void
setValue(String value)
Set the objects value.String
toString()
-
Methods inherited from class org.apache.directory.fortress.core.model.FortEntity
getAdminSession, getContextId, getModCode, getModId, getSequenceId, setAdminSession, setContextId, setModCode, setSequenceId
-
-
-
-
Field Detail
-
RC_TYPE_NAME
public static final String RC_TYPE_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RoleConstraint
public RoleConstraint()
-
RoleConstraint
public RoleConstraint(String id, String value, RoleConstraint.RCType type, String key)
-
-
Method Detail
-
getId
public String getId()
Return the object id.- Returns:
-
setId
public void setId(String id)
Set the id.- Parameters:
id
-
-
genId
public void genId()
Generate a unique, random id, set as the value of id.
-
getType
public RoleConstraint.RCType getType()
Return the type of the constraint.- Returns:
-
setType
public void setType(RoleConstraint.RCType type)
Set the constraint type.- Parameters:
type
-
-
getValue
public String getValue()
Get the value of a particular constraint. For example, locale=North, has a value of 'North'.- Returns:
-
setValue
public void setValue(String value)
Set the objects value.- Parameters:
value
-
-
getKey
public String getKey()
The key associated with a particular constraint. For example, locale=North, key is 'locale'.- Returns:
-
setKey
public void setKey(String key)
Set the key on a constraint.- Parameters:
key
-
-
getRawData
public String getRawData(UserRole uRole)
This is the actual value of data stored in the LDAP attribute ftRC. It concatenates the object's values, separated by a delimiter.- Parameters:
uRole
-- Returns:
-
getTypeName
public String getTypeName()
Return the type of OU in string format.- Returns:
- String that represents static or dynamic relations.
-
setTypeName
public void setTypeName(String typeName)
Method accepts a String variable that maps to its parent's set type.- Parameters:
typeName
- String value represents perm or user ou data sets.
-
-