org.xmlecho.palomar.security
Interface PermissionSet
- All Known Subinterfaces:
- RepositoryItem
- public interface PermissionSet
Interface to check and set Permissions.
It represents a Unix-Style authorization scheme.
Client code can provide an implementation of this and ask the security
service to validate a user's authority to perform a given operation on the
object.
getPermissions
public PermBits getPermissions()
- Obtain a PermBits object representing access permissions.
The PermBits should contain 32 bits with this interpretation:
- bit 0: owner Read
- bit 1: owner Write
- bit 3: owner Execute
- bit 4: Reserved for future ussage
- bit 5: group Read
- bit 6: group Write
- bit 7: group Execute
- bit 8: Reserved for future usage
- bit 9: World Read
- bit 10: World Write
- bit 11: World Execute
- bit12-31: Reserved for future use
- Returns:
- a PermBits object representing the permission
getOwnerID
public int getOwnerID()
- Returns:
- the ID of the owner of the item with the above permission bits.
getOwningGroupID
public int getOwningGroupID()
- Returns:
- the ID of the owner group of the item with the above permission bits.