| java.lang.Object com.flexive.shared.security.ACLAssignment
ACLAssignment | public class ACLAssignment implements Serializable,Cloneable(Code) | | A concrete assignment of an ACL to a user group
author: Gregor Schober (gregor.schober@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at) |
Constructor Summary | |
public | ACLAssignment(long aclId, long groupId, boolean read, boolean edit, boolean relate, boolean delete, boolean export, boolean create, ACL.Category category, LifeCycleInfo lifeCycleInfo) Constructor. | protected | ACLAssignment(long aclId, long groupId, ACL.Category category, LifeCycleInfo lifeCycleInfo) |
ACLAssignment | public ACLAssignment(long aclId, long groupId, boolean read, boolean edit, boolean relate, boolean delete, boolean export, boolean create, ACL.Category category, LifeCycleInfo lifeCycleInfo)(Code) | | Constructor.
Parameters: aclId - the id Parameters: groupId - the assigned grou Parameters: read - the read permission Parameters: edit - the edit permission Parameters: relate - the relate permission Parameters: delete - the delete permission Parameters: export - the export permission Parameters: create - the create permission Parameters: category - the assignment category Parameters: lifeCycleInfo - the lifecycle information |
ACLAssignment | protected ACLAssignment(long aclId, long groupId, ACL.Category category, LifeCycleInfo lifeCycleInfo)(Code) | | Constructor, all permissions flags are set to false
Parameters: aclId - the id Parameters: groupId - the assigned grou Parameters: category - the assignment category Parameters: lifeCycleInfo - the lifecycle information |
getACLCategory | public ACL.Category getACLCategory()(Code) | | Returns the type of the ACL.
the type of the ACL |
getAclId | public long getAclId()(Code) | | Returns the unqiue ACL id this assignment belongs to.
the unqiue ACL id this assignment belongs to. |
getGroupId | public long getGroupId()(Code) | | Returns the id of the group the acl is assigned to.
the id of the group the acl is assigned to |
getLifeCycleInfo | public LifeCycleInfo getLifeCycleInfo()(Code) | | Get lifecycle information
lifecycle information |
getMayCreate | public boolean getMayCreate()(Code) | | Return true if the ACLAssignment grants create permission.
true if the ACLAssignment grants create permission. |
getMayDelete | public boolean getMayDelete()(Code) | | Return true if the ACLAssignmentImpl grants unassign permission.
true if the ACLAssignmentImpl grants unassign permission. |
getMayEdit | public boolean getMayEdit()(Code) | | Return true if the ACLAssignmentImpl grants edit permission.
true if the ACLAssignmentImpl grants edit permission. |
getMayExport | public boolean getMayExport()(Code) | | Return true if the ACLAssignmentImpl grants export permission.
true if the ACLAssignmentImpl grants export permission. |
getMayRead | public boolean getMayRead()(Code) | | Return true if the ACLAssignmentImpl grants read permission.
true if the ACLAssignmentImpl grants read permission. |
getMayRelate | public boolean getMayRelate()(Code) | | Return true if the ACLAssignmentImpl grants relate permission.
true if the ACLAssignmentImpl grants relate permission. |
getPermission | public boolean getPermission(ACL.Permission permission, long ownerId, long userId)(Code) | | Check if the requested permission is granted
Parameters: permission - the permission to check Parameters: ownerId - id of the owner Parameters: userId - id of the calling user granted |
isOwnerGroupAssignment | public boolean isOwnerGroupAssignment()(Code) | | Is this an assignment for the owner group?
if this an assignment for the owner group? |
setGroupId | public void setGroupId(long groupId)(Code) | | Setter for the group id
Parameters: groupId - group id |
setMayCreate | public void setMayCreate(boolean bMayCreate)(Code) | | |
setMayDelete | public void setMayDelete(boolean bMayDelete)(Code) | | |
setMayEdit | public void setMayEdit(boolean bMayEdit)(Code) | | |
setMayExport | public void setMayExport(boolean bMayExport)(Code) | | |
setMayRead | public void setMayRead(boolean bMayRead)(Code) | | |
setMayRelate | public void setMayRelate(boolean bMayRelate)(Code) | | |
toString | public String toString()(Code) | | Returns a string representation.
a string representation |
|
|