|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The middleware level API for File Access (or Authorization) Service.
Method Summary | |
void |
checkPermission(java.lang.String[] items,
Perm perm)
Checks if the current user has the required permission bits on the specified items. |
PermissionEntry[] |
getPermission(java.lang.String[] items)
Retrieves all set permissions for any kind of item (GUID, LFN or SchemaName). |
void |
setPermission(PermissionEntry[] permissions)
Sets full set of permissions {BasicPermission,ACL} for a given item (GUID, LFN or SchemaName). |
Methods inherited from interface org.glite.data.catalog.service.ServiceBase |
getInterfaceVersion, getSchemaVersion, getServiceMetadata, getVersion |
Method Detail |
public void setPermission(PermissionEntry[] permissions) throws InternalException, AuthorizationException, NotExistsException, InvalidArgumentException
permissions
- - list of {item, permission} pairs.
The PermissionEntry
object takes the item and a list of ACLs.
This method sets the full permission, replacing all existing ACLs.
AuthorizationException
- No access right to update the permissions.
NotExistsException
- The item does not exist.
InvalidArgumentException
- Some part of the argument is invalid.
InternalException
- InvalidArgumentException
.
NotExistsException
.
AuthorizationException
.
public PermissionEntry[] getPermission(java.lang.String[] items) throws InternalException, AuthorizationException, NotExistsException, InvalidArgumentException
items
- list of items we want permission for
AuthorizationException
- No access right to get the permission information.
NotExistsException
- The item does not exist.
InvalidArgumentException
- Some part of the argument is invalid.
InternalException
- InvalidArgumentException
.
NotExistsException
.
AuthorizationException
.
public void checkPermission(java.lang.String[] items, Perm perm) throws InternalException, AuthorizationException
items
- list of items we want to check permission ofperm
- the permission bits to be checked against
AuthorizationException
- No access right to check permission information
InternalException
- AuthorizationException
.
AuthorizationException
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |