|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IAuthorizationManager
Defines the behavior for an authorization manager.
Method Summary | |
---|---|
boolean |
addACLEntry(ACLEntry entry)
Adds an ACL to the manager repository |
List<ACLEntry> |
findACLEntriesByApplication(String applicationID)
Returns the ACL by application. |
List<ACLEntry> |
findACLEntriesByGroup(String groupID)
Returns the group ACL. |
List<ACLEntry> |
findACLEntriesByProvider(String provider)
Returns ACL by provider. |
List<ACLEntry> |
findACLEntriesByService(String serviceID)
Returns the ACL by service. |
List<ACLEntry> |
findACLEntriesByStage(String stageID)
Returns the ACL by stage. |
List<ACLEntry> |
findACLEntriesByUser(String userID)
Returns the user ACL. |
List<ACLEntry> |
findACLEntriesByUserInherited(String userID)
Returns the user ACL, inheriting the ACL's from groups as well. |
List<ACLEntry> |
findPublicACLEntries()
Returns the public ACL. |
boolean |
grantAccessToGroup(String groupID,
Entity entityType,
String entityID)
Grants a group with access to a given stage. |
boolean |
grantAccessToPublic(Entity entityType,
String entityID)
Grants the public with access to a given stage. |
boolean |
grantAccessToUser(String userID,
Entity entityType,
String entityID)
Grants a user with access to a given stage. |
boolean |
grantDefaultAccessToGroup(String groupID,
Entity entityType,
String entityID)
Grants a group with default access to a given stage. |
boolean |
grantDefaultAccessToUser(String userID,
Entity entityType,
String entityID)
Grants a user with default access to a given stage. |
boolean |
grantDefaultPublicAccess(Entity entityType,
String entityID)
Grants with default public access to a given stage. |
boolean |
hasAccessGroup(IDIFGroup group,
Entity entityType,
String entityID)
Checks if a group can access a given stage. |
boolean |
hasAccessGroup(IDIFGroup group,
IApplication application)
Checks if the group can access a given application. |
boolean |
hasAccessGroup(IDIFGroup group,
IService service)
Checks if the group can access a given service. |
boolean |
hasAccessGroup(IDIFGroup group,
IStage stage)
Checks if a group can access to a given stage. |
boolean |
hasAccessPublic(Entity entityType,
String entityID)
Checks if the public can access to a given entity identified with a type and ID. |
boolean |
hasAccessPublic(IApplication application)
Checks if the public can access a given application. |
boolean |
hasAccessPublic(IService service)
Checks if the public can access a given service. |
boolean |
hasAccessPublic(IStage stage)
Checks if the public can access a given stage. |
boolean |
hasAccessUser(IDIFUser user,
Entity entityType,
String entityID)
Checks if a user can access to a given entity identified with a type and ID. |
boolean |
hasAccessUser(IDIFUser user,
IApplication application)
Checks if the user can access a given application. |
boolean |
hasAccessUser(IDIFUser user,
IService service)
Checks if the user can access a given service. |
boolean |
hasAccessUser(IDIFUser user,
IStage stage)
Checks if the user can access a given stage. |
boolean |
revokeAccessFromGroup(String groupID,
Entity entityType,
String entityID)
Revokes the access of a group to a given stage. |
boolean |
revokeAccessFromPublic(Entity entityType,
String entityID)
Revokes the public access to a given stage. |
boolean |
revokeAccessFromUser(String userID,
Entity entityType,
String entityID)
Revokes the access of a user to a given stage. |
boolean |
revokeACLEntry(ACLEntry entry)
Removes an ACL from the manager repository |
boolean |
revokeAllAccessFromGroup(String groupID)
Revokes the access of a group to all entities. |
boolean |
revokeAllAccessFromUser(String userID)
Revokes the access of a user to all entities. |
Method Detail |
---|
boolean addACLEntry(ACLEntry entry) throws AuthorizationManagerException
entry
- the entry
AuthorizationManagerException
- if a resource needed for adding authorization credentials can't be accessedList<ACLEntry> findACLEntriesByApplication(String applicationID)
applicationID
- the application id
List<ACLEntry> findACLEntriesByGroup(String groupID)
groupID
- the group id
List<ACLEntry> findACLEntriesByProvider(String provider)
provider
- the provider id
List<ACLEntry> findACLEntriesByService(String serviceID)
serviceID
- the service id
List<ACLEntry> findACLEntriesByStage(String stageID)
stageID
- the stage id
List<ACLEntry> findACLEntriesByUser(String userID)
userID
- the user id
List<ACLEntry> findACLEntriesByUserInherited(String userID) throws AuthorizationManagerException
userID
- the user id
AuthorizationManagerException
List<ACLEntry> findPublicACLEntries()
boolean grantAccessToGroup(String groupID, Entity entityType, String entityID) throws AuthorizationManagerException
groupID
- the id of the group to grant accessentityType
- the entity typeentityID
- the entity ID
AuthorizationManagerException
- if a resource needed for checking authorization credentials can't be accessedboolean grantAccessToPublic(Entity entityType, String entityID) throws AuthorizationManagerException
entityType
- the entity typeentityID
- the entity ID
AuthorizationManagerException
- if a resource needed for checking authorization credentials can't be accessedboolean grantAccessToUser(String userID, Entity entityType, String entityID) throws AuthorizationManagerException
userID
- the id of the user to grant accessentityType
- the entity typeentityID
- the entity ID
AuthorizationManagerException
- if a resource needed for granting authorization credentials can't be accessedboolean grantDefaultAccessToGroup(String groupID, Entity entityType, String entityID) throws AuthorizationManagerException
groupID
- the id of the group to grant accessentityType
- the entity typeentityID
- the entity ID
AuthorizationManagerException
- if a resource needed for checking authorization credentials can't be accessedboolean grantDefaultAccessToUser(String userID, Entity entityType, String entityID) throws AuthorizationManagerException
userID
- the id of the user to grant accessentityType
- the entity typeentityID
- the entity ID
AuthorizationManagerException
- if a resource needed for granting authorization credentials can't be accessedboolean grantDefaultPublicAccess(Entity entityType, String entityID) throws AuthorizationManagerException
entityType
- the entity typeentityID
- the entity ID
AuthorizationManagerException
- if a resource needed for granting authorization credentials can't be accessedboolean hasAccessGroup(IDIFGroup group, Entity entityType, String entityID) throws AuthorizationManagerException
group
- the group to grant accessentityType
- the entity typeentityID
- the entity ID
AuthorizationManagerException
- if a needed resource for authorization checking can't be foundboolean hasAccessGroup(IDIFGroup group, IApplication application) throws AuthorizationManagerException
group
- the group to grant accessapplication
- the application to check
AuthorizationManagerException
- if a resource needed for checking authorization credentials can't be accessedboolean hasAccessGroup(IDIFGroup group, IService service) throws AuthorizationManagerException
group
- the group to grant accessservice
- the service to check
AuthorizationManagerException
- if a resource needed for checking authorization credentials can't be accessedboolean hasAccessGroup(IDIFGroup group, IStage stage) throws AuthorizationManagerException
group
- the group to grant accessstage
- the stage to check
AuthorizationManagerException
- if a needed resource for authorization checking can't be foundboolean hasAccessPublic(Entity entityType, String entityID)
entityType
- the entity typeentityID
- the entity ID
boolean hasAccessPublic(IApplication application)
application
- the application to check
boolean hasAccessPublic(IService service)
service
- the stage to check
boolean hasAccessPublic(IStage stage)
stage
- the stage to check
boolean hasAccessUser(IDIFUser user, Entity entityType, String entityID) throws AuthorizationManagerException
user
- the the user to check accessentityType
- the entity typeentityID
- the entity ID
AuthorizationManagerException
- if a resource needed for checking authorization credentials can't be accessedboolean hasAccessUser(IDIFUser user, IApplication application) throws AuthorizationManagerException
user
- the user to check accessapplication
- the application to check
AuthorizationManagerException
- if a resource needed for checking authorization credentials can't be accessedboolean hasAccessUser(IDIFUser user, IService service) throws AuthorizationManagerException
user
- the user to check accessservice
- the service to check
AuthorizationManagerException
- if a resource needed for checking authorization credentials can't be accessedboolean hasAccessUser(IDIFUser user, IStage stage) throws AuthorizationManagerException
user
- the user to check accessstage
- the stage to check
AuthorizationManagerException
- if a resource needed for checking authorization credentials can't be accessedboolean revokeAccessFromGroup(String groupID, Entity entityType, String entityID)
groupID
- the id of the group to revoke accessentityType
- the entity typeentityID
- the entity ID
boolean revokeAccessFromPublic(Entity entityType, String entityID)
entityType
- the entity typeentityID
- the entity ID
boolean revokeAccessFromUser(String userID, Entity entityType, String entityID)
userID
- the id of the user to revoke accessentityType
- the entity typeentityID
- the entity ID
boolean revokeACLEntry(ACLEntry entry)
entry
- the entry
boolean revokeAllAccessFromGroup(String groupID)
groupID
- the id of the group to revoke access
boolean revokeAllAccessFromUser(String userID)
userID
- the id of the user to revoke access
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |