|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ApplicationPolicy
The policy store for an application whose access policy is managed by Triplesec.
| Method Summary | |
|---|---|
boolean |
addPolicyListener(PolicyChangeListener listener)
Adds a change listener so that it recieves policy change notifications. |
void |
close()
Closes the application store. |
Profile |
getAdminProfile()
Gets a profile for the admin user which is in all roles and has all permissions granted. |
java.lang.String |
getApplicationName()
Gets the name uniquely identifying the applicaiton associated with this store. |
java.util.Set |
getDependentProfileNames(Permission permission)
Gets the names of the profiles dependent on a permission. |
java.util.Set |
getDependentProfileNames(Role role)
Gets the names of the profiles dependent on a role. |
java.lang.String |
getDescription()
Gets a breif description of this ApplicationPolicy. |
Permissions |
getPermissions()
Gets a set of Permissions defined for this store. |
Profile |
getProfile(java.lang.String profileId)
Gets this user's authorization Profile for the application. |
java.util.Iterator |
getProfileIdIterator()
Gets an iterator over the set of profiles in this ApplicationPolicy. |
Roles |
getRoles()
Gets a set of Roles defined for this store. |
java.util.Set |
getUserProfileIds(java.lang.String userName)
Gets the set of profiles a user has for this ApplicationPolicy. |
boolean |
removePolicyListener(PolicyChangeListener listener)
Removes a change listener so that it does not recieve policy change notifications. |
| Method Detail |
|---|
boolean removePolicyListener(PolicyChangeListener listener)
throws GuardianException
listener - the listener to remove.
GuardianException
boolean addPolicyListener(PolicyChangeListener listener)
throws GuardianException
listener - the listener to add.
GuardianExceptionjava.lang.String getApplicationName()
Roles getRoles()
Roles defined for this store.
Roles defined for this store.Permissions getPermissions()
Permissions defined for this store.
Permissions defined for this store.
java.util.Set getDependentProfileNames(Role role)
throws GuardianException
role - the role the dependent profiles are associated with
GuardianException - if there is an error accessing the backing
store or the role is not associated with this ApplicationPolicy
java.util.Set getDependentProfileNames(Permission permission)
throws GuardianException
permission - the permission the dependent profiles are associated with
GuardianException - if there is an error accessing the backing
store or the permission is not associated with this ApplicationPolicy
java.util.Set getUserProfileIds(java.lang.String userName)
throws GuardianException
userName - the name of the user to get the profile ids for
GuardianException - if there are errors accessing the backing store
java.util.Iterator getProfileIdIterator()
throws GuardianException
GuardianException - if there are errors accessing the backing store
Profile getProfile(java.lang.String profileId)
throws GuardianException
Profile for the application.
profileId - the name of the user to get the Profile for
Profile for the application or null if no profile exists for
the specified profileId
GuardianExceptionProfile getAdminProfile()
java.lang.String getDescription()
void close()
throws GuardianException
GuardianException - if the store cannot be properly closed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||