|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AccessControlList
List of AccessControlEntry objects for a given path. If this list is associated with a Container
object, then the AccessControlEntry objects reffered to in the list can be cast to
ContainerAccessControlEntry objects.
Any modifications made to this list will not be made on the server until
RepositoryService.updateContainerAccessControlList(AccessControlList, AclRecurseBehavior)
or
RepositoryService.updateFileAccessControlList(AccessControlList)
is called.
If an entry is retrieved from this object and modified, these changes will be reflected
when the updateAccessControlList method is called.
Method Summary | |
---|---|
void |
addEntry(AccessControlEntry ace)
Set the given AccessControlEntry in this list. |
AccessControlEntry |
createGroupEntry(java.lang.String groupName)
Create an AccessControlEntry associated with the given group name. |
AccessControlEntry |
createUserEntry(java.lang.String userid)
Create an AccessControlEntry associated with the given user id. |
java.util.List |
getEntries()
Get a list of all the AccessControlEntry objects in ths ACL. |
java.util.Map |
getGroupEntries()
Get all the AccessControlEntry s that are associated with a group. |
AccessControlEntry |
getGroupEntry(java.lang.String groupName)
Get the AccessControlEntry associated with the given group name. |
RemoteNode |
getNode()
Get the full path of the node to which this ACL applies. |
java.util.Map |
getUserEntries()
Get all the AccessControlEntry s that are associated with a userid. |
AccessControlEntry |
getUserEntry(java.lang.String userid)
Get the AccessControlEntry associated with the given user id. |
boolean |
isContainerAcl()
Return whether this ACL points to a container. |
AccessControlEntry |
removeGroupEntry(java.lang.String groupName)
Remove the AccessControlEntry associated with the given groupname from this list. |
AccessControlEntry |
removeUserEntry(java.lang.String userid)
Remove the AccessControlEntry associated with the given userid from this list. |
Method Detail |
---|
RemoteNode getNode()
boolean isContainerAcl()
void addEntry(AccessControlEntry ace) throws EntryExistsException
RepositoryService.updateContainerAccessControlList(AccessControlList, AclRecurseBehavior)
or
RepositoryService.updateFileAccessControlList(AccessControlList)
is called.
ace
- AccessControlEntry to set on this ACL
EntryExistsException
java.util.List getEntries()
RepositoryService.updateContainerAccessControlList(AccessControlList, AclRecurseBehavior)
or
RepositoryService.updateFileAccessControlList(AccessControlList)
is called.
AccessControlEntry
objectsjava.util.Map getGroupEntries()
AccessControlEntry
s that are associated with a group. Any changes made
to the AccessControlEntry objects in this map are updated on the server when either
RepositoryService.updateContainerAccessControlList(AccessControlList, AclRecurseBehavior)
or
RepositoryService.updateFileAccessControlList(AccessControlList)
is called.
java.util.Map getUserEntries()
AccessControlEntry
s that are associated with a userid. Any changes made
to the AccessControlEntry objects in this map are updated on the server when either
RepositoryService.updateContainerAccessControlList(AccessControlList, AclRecurseBehavior)
or
RepositoryService.updateFileAccessControlList(AccessControlList)
is called.
AccessControlEntry getUserEntry(java.lang.String userid)
RepositoryService.updateContainerAccessControlList(AccessControlList, AclRecurseBehavior)
or
RepositoryService.updateFileAccessControlList(AccessControlList)
is called.
userid
- userid of the AccessControlEntry you are retrieving.
AccessControlEntry getGroupEntry(java.lang.String groupName)
RepositoryService.updateContainerAccessControlList(AccessControlList, AclRecurseBehavior)
or
RepositoryService.updateFileAccessControlList(AccessControlList)
is called.
groupName
- groupName of the AccessControlEntry you are retrieving.
AccessControlEntry removeUserEntry(java.lang.String userid) throws UndeleteableEntryException
AccessControlEntry.USER_OWNER
entry is undeleteable and will result in an
exception.
userid
- userid of the AccessControlEntry you wish to remove
UndeleteableEntryException
- if userid is AccessControlEntry.USER_OWNER
AccessControlEntry removeGroupEntry(java.lang.String groupName) throws UndeleteableEntryException
AccessControlEntry.GROUP_ALL_USERS
entry is undeleteable and will result in an
exception.
groupName
- groupName of the AccessControlEntry you wish to remove
UndeleteableEntryException
- if groupname is AccessControlEntry.GROUP_ALL_USERS
AccessControlEntry createUserEntry(java.lang.String userid) throws EntryExistsException
addEntry(com.sas.drugdev.remote.repository.security.AccessControlEntry)
is called with returned object. The existence of the userid isn't checked until
RepositoryService.updateContainerAccessControlList(AccessControlList, AclRecurseBehavior)
or
RepositoryService.updateFileAccessControlList(AccessControlList)
is called.
userid
- user id with which to create this AccessControlEntry
EntryExistsException
- if there is already a user entry with this userid in the listAccessControlEntry createGroupEntry(java.lang.String groupName) throws EntryExistsException
addEntry(com.sas.drugdev.remote.repository.security.AccessControlEntry)
is called with a returned object. The existence of the group isn't checked until
RepositoryService.updateContainerAccessControlList(AccessControlList, AclRecurseBehavior)
or
RepositoryService.updateFileAccessControlList(AccessControlList)
is called.
groupName
- group with which to create this AccessControlEntry
EntryExistsException
- if there is already a user entry with this userid in the list
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |