Class RoleConstraintAnt
- java.lang.Object
-
- org.apache.directory.fortress.core.model.FortEntity
-
- org.apache.directory.fortress.core.model.RoleConstraint
-
- org.apache.directory.fortress.core.ant.RoleConstraintAnt
-
- All Implemented Interfaces:
Serializable
public class RoleConstraintAnt extends RoleConstraint
Entity is used by custom Apache Ant task for special handling of collections. Used when the common entity found in the model doesn't contain necessary attributes to complete the operation via ant admin task.- Author:
- Apache Directory Project
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.directory.fortress.core.model.RoleConstraint
RoleConstraint.RCType
-
-
Field Summary
-
Fields inherited from class org.apache.directory.fortress.core.model.RoleConstraint
RC_TYPE_NAME
-
Fields inherited from class org.apache.directory.fortress.core.model.FortEntity
adminSession, contextId, modCode, modId, sequenceId
-
-
Constructor Summary
Constructors Constructor Description RoleConstraintAnt()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getRole()
Return the role as a String.String
getUserId()
void
setRole(String role)
Accept a comma delimited String containing a list of Roles to be granted to a permission.void
setUserId(String userId)
-
Methods inherited from class org.apache.directory.fortress.core.model.RoleConstraint
equals, genId, getId, getKey, getRawData, getType, getTypeName, getValue, hashCode, setId, setKey, setType, setTypeName, setValue, toString
-
Methods inherited from class org.apache.directory.fortress.core.model.FortEntity
getAdminSession, getContextId, getModCode, getModId, getSequenceId, setAdminSession, setContextId, setModCode, setSequenceId
-
-
-
-
Method Detail
-
getUserId
public String getUserId()
- Returns:
-
setUserId
public void setUserId(String userId)
- Parameters:
userId
-
-
getRole
public String getRole()
Return the role as a String.- Returns:
- String contains a comma delimited set of role names assigned to permission.
-
setRole
public void setRole(String role)
Accept a comma delimited String containing a list of Roles to be granted to a permission. This function will parse the String and call the setter on its parent.- Parameters:
role
- name targeted for role constraint.
-
-