public class AclEntry extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
AclEntry.PermissionValue
PermissionValue is an enum that represents the possible values of a permission.
|
Constructor and Description |
---|
AclEntry()
Zero-argument AclEntry constructor.
|
AclEntry(Principal principal)
AclEntry constructor
|
AclEntry(Principal principal,
AclEntry.PermissionValue adminPermission,
AclEntry.PermissionValue readPermission,
AclEntry.PermissionValue writePropertiesPermission,
AclEntry.PermissionValue writeContentPermission,
AclEntry.PermissionValue deletePermission)
AclEntry constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Indicates whether another object is equal to this one.
|
AclEntry.PermissionValue |
getAdminPermission()
Gets the Admin permission for this ACL.
|
AclEntry.PermissionValue |
getDeletePermission()
Gets the Delete permission for this ACL.
|
Principal |
getPrincipal()
Gets the principal for this ACL.
|
AclEntry.PermissionValue |
getReadPermission()
Gets the Read permission for this ACL.
|
AclEntry.PermissionValue |
getWriteContentPermission()
Gets the Content Write permission for this ACL
|
AclEntry.PermissionValue |
getWritePropertiesPermission()
Gets the Properties Write permission for this ACL.
|
int |
hashCode()
Returns a hash code value for the object.
|
void |
setAdminPermission(AclEntry.PermissionValue admin)
Sets the Admin permission for this ACL.
|
void |
setDeletePermission(AclEntry.PermissionValue delete)
Sets the Delete permission for this ACL
|
void |
setPrincipal(Principal principal)
Sets the principal for this ACL.
|
void |
setReadPermission(AclEntry.PermissionValue read)
Sets the Read permission for this ACL.
|
void |
setWriteContentPermission(AclEntry.PermissionValue writeContent)
Sets the Content Write permission for this ACL.
|
void |
setWritePropertiesPermission(AclEntry.PermissionValue writePropertiesPermission)
Sets the Properties Write permission for this ACL.
|
String |
toString() |
public AclEntry()
public AclEntry(Principal principal)
principal
- public AclEntry(Principal principal, AclEntry.PermissionValue adminPermission, AclEntry.PermissionValue readPermission, AclEntry.PermissionValue writePropertiesPermission, AclEntry.PermissionValue writeContentPermission, AclEntry.PermissionValue deletePermission)
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.public Principal getPrincipal()
public void setPrincipal(Principal principal)
principal
- public AclEntry.PermissionValue getReadPermission()
public void setReadPermission(AclEntry.PermissionValue read)
read
- PermissionValue that contains the value of how to set the permission.public AclEntry.PermissionValue getWritePropertiesPermission()
public void setWritePropertiesPermission(AclEntry.PermissionValue writePropertiesPermission)
writePropertiesPermission
- The PermissionValue that contains the value of how to set the permission.public AclEntry.PermissionValue getDeletePermission()
public void setDeletePermission(AclEntry.PermissionValue delete)
delete
- The PermissionValue that contains the value of how to set the permission.public AclEntry.PermissionValue getAdminPermission()
public void setAdminPermission(AclEntry.PermissionValue admin)
admin
- The PermissionValue that contains the value of how to set the permission.public AclEntry.PermissionValue getWriteContentPermission()
public void setWriteContentPermission(AclEntry.PermissionValue writeContent)
writeContent
- The PermissionValue that contains the value of how to set the permission.public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
<i>Copyright (c) 2020, SAS Institute Inc., Cary, NC, USA</i>