public class PermGrant extends FortEntity implements Serializable
FortressAntTask
to add Permission
grants to
RBAC Role
, or ARBAC AdminRole
.
Can also be used to grant Permissions directly to User
s.
This entity is used for Ant and En Masse processing only.adminSession, contextId, modCode, modId, sequenceId
Constructor and Description |
---|
PermGrant() |
Modifier and Type | Method and Description |
---|---|
String |
getObjId()
Return the permission object id.
|
String |
getObjName()
Return the permission object name.
|
String |
getOpName()
Return the permission operation name.
|
String |
getRoleNm()
Get the role name associated from this entity.
|
String |
getUserId()
Get the userId attribute from this entity.
|
boolean |
isAdmin()
If set to true entity will be stored in ldap subdirectory associated with administrative permissions
GlobalIds.ADMIN_PERM_ROOT . |
void |
setAdmin(boolean admin)
Return boolean value that will be set to true if this entity will be stored in Administrative Permissions.
|
void |
setObjId(String objId)
Set the permission object id.
|
void |
setObjName(String objName)
Set the permission object name.
|
void |
setOpName(String opName)
Set the permission operation name.
|
void |
setRoleNm(String roleNm)
Set the role name associated with this entity.
|
void |
setUserId(String userId)
Set the userId attribute on this entity.
|
String |
toString() |
getAdminSession, getContextId, getModCode, getModId, getSequenceId, setAdminSession, setContextId, setModCode, setSequenceId
public String getObjName()
public void setObjName(String objName)
objName
- maps to 'ftObjNm' attribute on 'ftOperation' object class.public String getObjId()
public void setObjId(String objId)
objId
- maps to 'ftObjId' attribute on 'ftOperation' object class.public String getOpName()
public void setOpName(String opName)
opName
- maps to 'ftOpNm' attribute on 'ftOperation' object class.public String getUserId()
public void setUserId(String userId)
userId
- maps to 'ftUsers' attribute on 'ftOperation' object class.public String getRoleNm()
public void setRoleNm(String roleNm)
roleNm
- maps to 'ftRoles' attribute on 'ftOperation' object class.public boolean isAdmin()
GlobalIds.ADMIN_PERM_ROOT
.
otherwise will be RBAC permissions GlobalIds.PERM_ROOT
public void setAdmin(boolean admin)
admin
- will be true if administrative entity.public String toString()
toString
in class Object
Object.toString()
Copyright © 2003-2016, The Apache Software Foundation. All Rights Reserved. Generated 20160718-1621