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.


Method Summary
 int getOwnerID()
           
 int getOwningGroupID()
           
 PermBits getPermissions()
          Obtain a PermBits object representing access permissions.
 

Method Detail

getPermissions

public PermBits getPermissions()
Obtain a PermBits object representing access permissions. The PermBits should contain 32 bits with this interpretation:

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.