org.iternine.jeppetto.dao
Interface AccessControllable<ID>

Type Parameters:
ID - ID type of the persistent class.

public interface AccessControllable<ID>


Method Summary
 AccessControlContextProvider getAccessControlContextProvider()
           
 AccessType getGrantedAccess(ID id, String accessId)
           
 Map<String,AccessType> getGrantedAccesses(ID id)
           
 void grantAccess(ID id, String accessId, AccessType accessType)
           
 void revokeAccess(ID id, String accessId)
           
 

Method Detail

grantAccess

void grantAccess(ID id,
                 String accessId,
                 AccessType accessType)
                 throws NoSuchItemException,
                        AccessControlException
Throws:
NoSuchItemException
AccessControlException

revokeAccess

void revokeAccess(ID id,
                  String accessId)
                  throws NoSuchItemException,
                         AccessControlException
Throws:
NoSuchItemException
AccessControlException

getGrantedAccess

AccessType getGrantedAccess(ID id,
                            String accessId)
                            throws NoSuchItemException,
                                   AccessControlException
Throws:
NoSuchItemException
AccessControlException

getGrantedAccesses

Map<String,AccessType> getGrantedAccesses(ID id)
                                          throws NoSuchItemException,
                                                 AccessControlException
Throws:
NoSuchItemException
AccessControlException

getAccessControlContextProvider

AccessControlContextProvider getAccessControlContextProvider()


Copyright © 2012. All Rights Reserved.