Package com.sas.lsaf.security.acl
Class AclEntry
java.lang.Object
com.sas.lsaf.security.acl.AclEntry
- All Implemented Interfaces:
Serializable
A data object that represents access permissions for an ACL principal.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumPermissionValue is an enum that represents the possible values of a permission. -
Constructor Summary
ConstructorsConstructorDescriptionAclEntry()Zero-argument AclEntry constructor.AclEntry constructorAclEntry(Principal principal, AclEntry.PermissionValue adminPermission, AclEntry.PermissionValue readPermission, AclEntry.PermissionValue writePropertiesPermission, AclEntry.PermissionValue writeContentPermission, AclEntry.PermissionValue deletePermission) AclEntry constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether another object is equal to this one.Gets the Admin permission for this ACL.Gets the Delete permission for this ACL.Gets the principal for this ACL.Gets the Read permission for this ACL.Gets the Content Write permission for this ACLGets the Properties Write permission for this ACL.inthashCode()Returns a hash code value for the object.voidSets the Admin permission for this ACL.voidSets the Delete permission for this ACLvoidsetPrincipal(Principal principal) Sets the principal for this ACL.voidSets the Read permission for this ACL.voidsetWriteContentPermission(AclEntry.PermissionValue writeContent) Sets the Content Write permission for this ACL.voidsetWritePropertiesPermission(AclEntry.PermissionValue writePropertiesPermission) Sets the Properties Write permission for this ACL.toString()
-
Constructor Details
-
AclEntry
public AclEntry()Zero-argument AclEntry constructor. -
AclEntry
AclEntry constructor- Parameters:
principal-
-
AclEntry
public AclEntry(Principal principal, AclEntry.PermissionValue adminPermission, AclEntry.PermissionValue readPermission, AclEntry.PermissionValue writePropertiesPermission, AclEntry.PermissionValue writeContentPermission, AclEntry.PermissionValue deletePermission) AclEntry constructor- Parameters:
principal- the principal in which to set the access permissions.adminPermission- the admin permission to assign to the principal.readPermission- Read permission to assign to the principal.writePropertiesPermission- the Properties Write permission to assign to the principal.writeContentPermission- the Content Write permission to assign to the principal.deletePermission- the Delete permission to assign to the principal.
-
-
Method Details
-
getPrincipal
Gets the principal for this ACL.- Returns:
- The Principal.
-
setPrincipal
Sets the principal for this ACL.- Parameters:
principal-
-
getReadPermission
Gets the Read permission for this ACL.- Returns:
- The PermissionValue value that represents whether this permission will be honored.
-
setReadPermission
Sets the Read permission for this ACL.- Parameters:
read- PermissionValue that contains the value of how to set the permission.
-
getWritePropertiesPermission
Gets the Properties Write permission for this ACL.- Returns:
- The PermissionValue value that represents whether this permission will be honored.
-
setWritePropertiesPermission
Sets the Properties Write permission for this ACL.- Parameters:
writePropertiesPermission- The PermissionValue that contains the value of how to set the permission.
-
getDeletePermission
Gets the Delete permission for this ACL.- Returns:
- The PermissionValue value that represents whether this permission will be honored.
-
setDeletePermission
Sets the Delete permission for this ACL- Parameters:
delete- The PermissionValue that contains the value of how to set the permission.
-
getAdminPermission
Gets the Admin permission for this ACL.- Returns:
- The PermissionValue value that represents whether this permission will be honored.
-
setAdminPermission
Sets the Admin permission for this ACL.- Parameters:
admin- The PermissionValue that contains the value of how to set the permission.
-
getWriteContentPermission
Gets the Content Write permission for this ACL- Returns:
- The PermissionValue value that represents whether this permission will be honored.
-
setWriteContentPermission
Sets the Content Write permission for this ACL.- Parameters:
writeContent- The PermissionValue that contains the value of how to set the permission.
-
hashCode
public int hashCode()Returns a hash code value for the object. -
equals
Indicates whether another object is equal to this one. -
toString
-