Package org.xmldb.api.security
Interface Attributes
-
public interface AttributesRepresents the basic attributes of either aResourceorCollection.- Since:
- 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<AclEntry>acl()Returns the ACL of the collection or resource.GroupPrincipalgroup()Returns the group owner of the collection or resource.UserPrincipalowner()Returns the owner of the collection or resource.java.util.Set<Permission>permissions()Returns the permissions of the collection or resource.
-
-
-
Method Detail
-
owner
UserPrincipal owner()
Returns the owner of the collection or resource.- Returns:
- the resource owner
- See Also:
PermissionManagementService.setOwner(org.xmldb.api.base.Collection, org.xmldb.api.security.UserPrincipal)
-
group
GroupPrincipal group()
Returns the group owner of the collection or resource.- Returns:
- the resource group owner
- See Also:
PermissionManagementService.setGroup(org.xmldb.api.base.Collection, org.xmldb.api.security.GroupPrincipal)
-
permissions
java.util.Set<Permission> permissions()
Returns the permissions of the collection or resource. The collection or resource permissions are returned as a set ofPermissionelements. The returned set is a copy of the collection or resource permissions and is modifiable. This allows the result to be modified and passed to thePermissionManagementService.setPermissions(org.xmldb.api.base.Collection, java.util.Set<org.xmldb.api.security.Permission>)methods to update the collection's or resources's permissions.- Returns:
- the collection or resource permissions
- See Also:
PermissionManagementService.setPermissions(org.xmldb.api.base.Collection, java.util.Set<org.xmldb.api.security.Permission>)
-
acl
java.util.List<AclEntry> acl()
Returns the ACL of the collection or resource. The collection or resource permissions are returned as a list ofAclEntryelements. The returned list is a copy of the collection or resource ACL and is modifiable. This allows the result to be modified and passed to thePermissionManagementService.setAcl(org.xmldb.api.base.Collection, java.util.List<org.xmldb.api.security.AclEntry>)methods to update the collection's or resources's Access Control List.- Returns:
- the collection or resource ACL entries
- See Also:
PermissionManagementService.setAcl(org.xmldb.api.base.Collection, java.util.List<org.xmldb.api.security.AclEntry>)
-
-