|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.astrogrid.community.client.service.CommunityServiceCoreDelegate
org.astrogrid.community.client.policy.manager.PolicyManagerCoreDelegate
The core delegate for our PolicyManager service. This acts as a wrapper for a PolicyManager service, and converts RemoteExceptions into CommunityServiceException.
| Constructor Summary | |
protected |
PolicyManagerCoreDelegate()
Public constructor. |
| Method Summary | |
org.astrogrid.community.common.policy.data.AccountData |
addAccount(org.astrogrid.community.common.policy.data.AccountData account)
Add a new Account, given the Account data. |
org.astrogrid.community.common.policy.data.AccountData |
addAccount(java.lang.String ident)
Add a new Account, given the Account ident. |
org.astrogrid.community.common.policy.data.GroupData |
addGroup(org.astrogrid.community.common.policy.data.GroupData data)
Add a new Group. |
org.astrogrid.community.common.policy.data.GroupData |
addGroup(java.lang.String ident)
Add a new Group. |
org.astrogrid.community.common.policy.data.GroupMemberData |
addGroupMember(java.lang.String account,
java.lang.String group)
Add an Account to a Group. |
org.astrogrid.community.common.policy.data.PolicyPermission |
addPermission(java.lang.String resource,
java.lang.String group,
java.lang.String action)
Create a new PolicyPermission. |
org.astrogrid.community.common.policy.data.ResourceData |
addResource()
Register a new Resource. |
org.astrogrid.community.common.policy.data.AccountData |
delAccount(java.lang.String ident)
Delete an Account. |
org.astrogrid.community.common.policy.data.GroupData |
delGroup(java.lang.String ident)
Delete a Group. |
org.astrogrid.community.common.policy.data.GroupMemberData |
delGroupMember(java.lang.String account,
java.lang.String group)
Remove an Account from a Group. |
boolean |
delPermission(java.lang.String resource,
java.lang.String group,
java.lang.String action)
Delete a PolicyPermission. |
org.astrogrid.community.common.policy.data.ResourceData |
delResource(java.lang.String ident)
Delete a Resource. |
org.astrogrid.community.common.policy.data.AccountData |
getAccount(java.lang.String ident)
Request an Account details, given the Account ident. |
org.astrogrid.community.common.policy.data.GroupData |
getGroup(java.lang.String ident)
Request a Group details. |
org.astrogrid.community.common.policy.data.GroupMemberData |
getGroupMember(java.lang.String account,
java.lang.String group)
Request a list of Group members. |
java.lang.Object[] |
getGroupMembers()
Request a list of Group members. |
java.lang.Object[] |
getGroupMembers(java.lang.String group)
Request a list of Group members. |
java.lang.Object[] |
getLocalAccountGroups(java.lang.String account)
Request a list of local Groups that an Account belongs to, given the Account ident. |
java.lang.Object[] |
getLocalAccounts()
Request a list of local Accounts. |
java.lang.Object[] |
getLocalGroups()
Request a list of local Groups. |
org.astrogrid.community.common.policy.data.PolicyPermission |
getPermission(java.lang.String resource,
java.lang.String group,
java.lang.String action)
Request a PolicyPermission. |
java.lang.Object[] |
getPermissions()
Request a PolicyPermission. |
protected org.astrogrid.community.common.policy.manager.PolicyManager |
getPolicyManager()
Get a reference to our PolicyManager service. |
org.astrogrid.community.common.policy.data.ResourceData |
getResource(java.lang.String ident)
Request the details for a Resource. |
java.lang.Object[] |
getResources()
Request the details for a Resource. |
org.astrogrid.community.common.policy.data.AccountData |
setAccount(org.astrogrid.community.common.policy.data.AccountData account)
Update an Account. |
org.astrogrid.community.common.policy.data.GroupData |
setGroup(org.astrogrid.community.common.policy.data.GroupData data)
Update a Group. |
org.astrogrid.community.common.policy.data.PolicyPermission |
setPermission(org.astrogrid.community.common.policy.data.PolicyPermission permission)
Update a PolicyPermission. |
protected void |
setPolicyManager(org.astrogrid.community.common.policy.manager.PolicyManager manager)
Set our our PolicyManager service. |
org.astrogrid.community.common.policy.data.ResourceData |
setResource(org.astrogrid.community.common.policy.data.ResourceData resource)
Update the details for a Resource. |
| Methods inherited from class org.astrogrid.community.client.service.CommunityServiceCoreDelegate |
getCommunityService, getServiceStatus, identifierException, policyException, resourceException, securityException, serviceException, setCommunityService |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.astrogrid.community.common.service.CommunityService |
getServiceStatus |
| Methods inherited from interface org.astrogrid.community.client.service.CommunityServiceDelegate |
getServiceStatus |
| Constructor Detail |
protected PolicyManagerCoreDelegate()
| Method Detail |
protected org.astrogrid.community.common.policy.manager.PolicyManager getPolicyManager()
protected void setPolicyManager(org.astrogrid.community.common.policy.manager.PolicyManager manager)
public org.astrogrid.community.common.policy.data.AccountData addAccount(java.lang.String ident)
throws org.astrogrid.community.common.exception.CommunityServiceException,
org.astrogrid.community.common.exception.CommunityIdentifierException,
org.astrogrid.community.common.exception.CommunityPolicyException
addAccount in interface org.astrogrid.community.common.policy.manager.AccountManagerident - The Account identifier.
org.astrogrid.community.common.exception.CommunityIdentifierException - If the identifier is not valid.
org.astrogrid.community.common.exception.CommunityPolicyException - If the identifier is already in the database.
org.astrogrid.community.common.exception.CommunityServiceException - If there is an internal error in the service.
public org.astrogrid.community.common.policy.data.AccountData addAccount(org.astrogrid.community.common.policy.data.AccountData account)
throws org.astrogrid.community.common.exception.CommunityServiceException,
org.astrogrid.community.common.exception.CommunityIdentifierException,
org.astrogrid.community.common.exception.CommunityPolicyException
addAccount in interface org.astrogrid.community.common.policy.manager.AccountManageraccount - The AccountData to add.
org.astrogrid.community.common.exception.CommunityIdentifierException - If the identifier is not valid.
org.astrogrid.community.common.exception.CommunityPolicyException - If the identifier is already in the database.
org.astrogrid.community.common.exception.CommunityServiceException - If there is an internal error in the service.
public org.astrogrid.community.common.policy.data.AccountData getAccount(java.lang.String ident)
throws org.astrogrid.community.common.exception.CommunityServiceException,
org.astrogrid.community.common.exception.CommunityIdentifierException,
org.astrogrid.community.common.exception.CommunityPolicyException
getAccount in interface org.astrogrid.community.common.policy.manager.AccountManagerident - The Account identifier.
org.astrogrid.community.common.exception.CommunityIdentifierException - If the identifier is not valid.
org.astrogrid.community.common.exception.CommunityPolicyException - If the identifier is not in the database.
org.astrogrid.community.common.exception.CommunityServiceException - If there is an internal error in the service.
public org.astrogrid.community.common.policy.data.AccountData setAccount(org.astrogrid.community.common.policy.data.AccountData account)
throws org.astrogrid.community.common.exception.CommunityServiceException,
org.astrogrid.community.common.exception.CommunityIdentifierException,
org.astrogrid.community.common.exception.CommunityPolicyException
setAccount in interface org.astrogrid.community.common.policy.manager.AccountManageraccount - The new AccountData to update.
org.astrogrid.community.common.exception.CommunityIdentifierException - If the identifier is not valid.
org.astrogrid.community.common.exception.CommunityPolicyException - If the identifier is not in the database.
org.astrogrid.community.common.exception.CommunityServiceException - If there is an internal error in the service.
public org.astrogrid.community.common.policy.data.AccountData delAccount(java.lang.String ident)
throws org.astrogrid.community.common.exception.CommunityServiceException,
org.astrogrid.community.common.exception.CommunityIdentifierException,
org.astrogrid.community.common.exception.CommunityPolicyException
delAccount in interface org.astrogrid.community.common.policy.manager.AccountManagerident - The Account identifier.
org.astrogrid.community.common.exception.CommunityIdentifierException - If the identifier is not valid.
org.astrogrid.community.common.exception.CommunityPolicyException - If the identifier is not in the database.
org.astrogrid.community.common.exception.CommunityServiceException - If there is an internal error in the service.
public java.lang.Object[] getLocalAccounts()
throws org.astrogrid.community.common.exception.CommunityServiceException
getLocalAccounts in interface org.astrogrid.community.common.policy.manager.AccountManagerorg.astrogrid.community.common.exception.CommunityServiceException - If there is an internal error in the service.
public org.astrogrid.community.common.policy.data.GroupData addGroup(java.lang.String ident)
throws org.astrogrid.community.common.exception.CommunityServiceException,
org.astrogrid.community.common.exception.CommunityIdentifierException,
org.astrogrid.community.common.exception.CommunityPolicyException
addGroup in interface org.astrogrid.community.common.policy.manager.GroupManagerident - The Group identifier.
org.astrogrid.community.common.exception.CommunityIdentifierException - If the identifier is not valid.
org.astrogrid.community.common.exception.CommunityPolicyException - If the identifier is already in the database.
org.astrogrid.community.common.exception.CommunityServiceException - If there is an internal error in the service.
public org.astrogrid.community.common.policy.data.GroupData addGroup(org.astrogrid.community.common.policy.data.GroupData data)
throws org.astrogrid.community.common.exception.CommunityServiceException,
org.astrogrid.community.common.exception.CommunityIdentifierException,
org.astrogrid.community.common.exception.CommunityPolicyException
addGroup in interface org.astrogrid.community.common.policy.manager.GroupManagerorg.astrogrid.community.common.exception.CommunityIdentifierException - If the identifier is not valid.
org.astrogrid.community.common.exception.CommunityPolicyException - If the identifier is already in the database.
org.astrogrid.community.common.exception.CommunityServiceException - If there is an internal error in the service.
public org.astrogrid.community.common.policy.data.GroupData getGroup(java.lang.String ident)
throws org.astrogrid.community.common.exception.CommunityServiceException,
org.astrogrid.community.common.exception.CommunityIdentifierException,
org.astrogrid.community.common.exception.CommunityPolicyException
getGroup in interface org.astrogrid.community.common.policy.manager.GroupManagerident - The Group identifier.
org.astrogrid.community.common.exception.CommunityIdentifierException - If the identifier is not valid.
org.astrogrid.community.common.exception.CommunityPolicyException - If the identifier is not in the database.
org.astrogrid.community.common.exception.CommunityServiceException - If there is an internal error in the service.
public org.astrogrid.community.common.policy.data.GroupData setGroup(org.astrogrid.community.common.policy.data.GroupData data)
throws org.astrogrid.community.common.exception.CommunityServiceException,
org.astrogrid.community.common.exception.CommunityIdentifierException,
org.astrogrid.community.common.exception.CommunityPolicyException
setGroup in interface org.astrogrid.community.common.policy.manager.GroupManagerdata - The new GroupData to update.
org.astrogrid.community.common.exception.CommunityIdentifierException - If the identifier is not valid.
org.astrogrid.community.common.exception.CommunityPolicyException - If the identifier is not in the database.
org.astrogrid.community.common.exception.CommunityServiceException - If there is an internal error in the service.
public org.astrogrid.community.common.policy.data.GroupData delGroup(java.lang.String ident)
throws org.astrogrid.community.common.exception.CommunityServiceException,
org.astrogrid.community.common.exception.CommunityIdentifierException,
org.astrogrid.community.common.exception.CommunityPolicyException
delGroup in interface org.astrogrid.community.common.policy.manager.GroupManagerident - The Group identifier.
org.astrogrid.community.common.exception.CommunityIdentifierException - If the identifier is not valid.
org.astrogrid.community.common.exception.CommunityPolicyException - If the identifier is not in the database.
org.astrogrid.community.common.exception.CommunityServiceException - If there is an internal error in the service.
public java.lang.Object[] getLocalGroups()
throws org.astrogrid.community.common.exception.CommunityServiceException
getLocalGroups in interface org.astrogrid.community.common.policy.manager.GroupManagerorg.astrogrid.community.common.exception.CommunityServiceException - If there is an internal error in the service.
public java.lang.Object[] getLocalAccountGroups(java.lang.String account)
throws org.astrogrid.community.common.exception.CommunityServiceException,
org.astrogrid.community.common.exception.CommunityIdentifierException
getLocalAccountGroups in interface org.astrogrid.community.common.policy.manager.GroupManageraccount - The Account ifentifier.
org.astrogrid.community.common.exception.CommunityServiceException - If there is an internal error in the service.
org.astrogrid.community.common.exception.CommunityIdentifierException
public org.astrogrid.community.common.policy.data.ResourceData addResource()
throws org.astrogrid.community.common.exception.CommunityServiceException
addResource in interface org.astrogrid.community.common.policy.manager.ResourceManagerorg.astrogrid.community.common.exception.CommunityServiceException - If there is an internal error in the service.
public org.astrogrid.community.common.policy.data.ResourceData getResource(java.lang.String ident)
throws org.astrogrid.community.common.exception.CommunityIdentifierException,
org.astrogrid.community.common.exception.CommunityResourceException,
org.astrogrid.community.common.exception.CommunityServiceException
getResource in interface org.astrogrid.community.common.policy.manager.ResourceManagerorg.astrogrid.community.common.exception.CommunityResourceException - If unable to locate the resource.
org.astrogrid.community.common.exception.CommunityServiceException - If there is an internal error in the service.
org.astrogrid.community.common.exception.CommunityIdentifierException - If the resource identifier is not valid.public java.lang.Object[] getResources()
getResources in interface org.astrogrid.community.common.policy.manager.ResourceManagerorg.astrogrid.community.common.exception.CommunityResourceException - If unable to locate the resource.
org.astrogrid.community.common.exception.CommunityServiceException - If there is an internal error in the service.
org.astrogrid.community.common.exception.CommunityIdentifierException - If the resource identifier is not valid.
public org.astrogrid.community.common.policy.data.ResourceData setResource(org.astrogrid.community.common.policy.data.ResourceData resource)
throws org.astrogrid.community.common.exception.CommunityIdentifierException,
org.astrogrid.community.common.exception.CommunityResourceException,
org.astrogrid.community.common.exception.CommunityServiceException
setResource in interface org.astrogrid.community.common.policy.manager.ResourceManagerorg.astrogrid.community.common.exception.CommunityResourceException - If unable to locate the resource.
org.astrogrid.community.common.exception.CommunityServiceException - If there is an internal error in the service.
org.astrogrid.community.common.exception.CommunityIdentifierException - If the resource identifier is not valid.
public org.astrogrid.community.common.policy.data.ResourceData delResource(java.lang.String ident)
throws org.astrogrid.community.common.exception.CommunityIdentifierException,
org.astrogrid.community.common.exception.CommunityResourceException,
org.astrogrid.community.common.exception.CommunityServiceException
delResource in interface org.astrogrid.community.common.policy.manager.ResourceManagerorg.astrogrid.community.common.exception.CommunityResourceException - If unable to locate the resource.
org.astrogrid.community.common.exception.CommunityServiceException - If there is an internal error in the service.
org.astrogrid.community.common.exception.CommunityIdentifierException - If the identifier is not valid.
public org.astrogrid.community.common.policy.data.PolicyPermission addPermission(java.lang.String resource,
java.lang.String group,
java.lang.String action)
throws org.astrogrid.community.common.exception.CommunityServiceException,
org.astrogrid.community.common.exception.CommunityIdentifierException,
org.astrogrid.community.common.exception.CommunityPolicyException
addPermission in interface org.astrogrid.community.common.policy.manager.PermissionManagerorg.astrogrid.community.common.exception.CommunityServiceException
org.astrogrid.community.common.exception.CommunityIdentifierException
org.astrogrid.community.common.exception.CommunityPolicyException
public org.astrogrid.community.common.policy.data.PolicyPermission getPermission(java.lang.String resource,
java.lang.String group,
java.lang.String action)
throws org.astrogrid.community.common.exception.CommunityServiceException,
org.astrogrid.community.common.exception.CommunityIdentifierException,
org.astrogrid.community.common.exception.CommunityPolicyException
getPermission in interface org.astrogrid.community.common.policy.manager.PermissionManagerorg.astrogrid.community.common.exception.CommunityServiceException
org.astrogrid.community.common.exception.CommunityIdentifierException
org.astrogrid.community.common.exception.CommunityPolicyExceptionpublic java.lang.Object[] getPermissions()
getPermissions in interface org.astrogrid.community.common.policy.manager.PermissionManager
public org.astrogrid.community.common.policy.data.PolicyPermission setPermission(org.astrogrid.community.common.policy.data.PolicyPermission permission)
throws org.astrogrid.community.common.exception.CommunityServiceException,
org.astrogrid.community.common.exception.CommunityIdentifierException,
org.astrogrid.community.common.exception.CommunityPolicyException
setPermission in interface org.astrogrid.community.common.policy.manager.PermissionManagerorg.astrogrid.community.common.exception.CommunityServiceException
org.astrogrid.community.common.exception.CommunityIdentifierException
org.astrogrid.community.common.exception.CommunityPolicyException
public boolean delPermission(java.lang.String resource,
java.lang.String group,
java.lang.String action)
throws org.astrogrid.community.common.exception.CommunityServiceException,
org.astrogrid.community.common.exception.CommunityIdentifierException,
org.astrogrid.community.common.exception.CommunityPolicyException
delPermission in interface org.astrogrid.community.common.policy.manager.PermissionManagerorg.astrogrid.community.common.exception.CommunityServiceException
org.astrogrid.community.common.exception.CommunityIdentifierException
org.astrogrid.community.common.exception.CommunityPolicyException
public org.astrogrid.community.common.policy.data.GroupMemberData addGroupMember(java.lang.String account,
java.lang.String group)
throws org.astrogrid.community.common.exception.CommunityServiceException,
org.astrogrid.community.common.exception.CommunityIdentifierException,
org.astrogrid.community.common.exception.CommunityPolicyException
addGroupMember in interface org.astrogrid.community.common.policy.manager.GroupMemberManageraccount - The Account identifier.group - The Group identifier.
org.astrogrid.community.common.exception.CommunityIdentifierException - If one of the identifiers is not valid.
org.astrogrid.community.common.exception.CommunityPolicyException - If one the identifiers is not in the database.
org.astrogrid.community.common.exception.CommunityServiceException - If there is an internal error in the service.
public org.astrogrid.community.common.policy.data.GroupMemberData delGroupMember(java.lang.String account,
java.lang.String group)
throws org.astrogrid.community.common.exception.CommunityServiceException,
org.astrogrid.community.common.exception.CommunityPolicyException,
org.astrogrid.community.common.exception.CommunityIdentifierException
delGroupMember in interface org.astrogrid.community.common.policy.manager.GroupMemberManageraccount - The Account identifier.group - The Group identifier.
org.astrogrid.community.common.exception.CommunityIdentifierException - If one of the identifiers is not valid.
org.astrogrid.community.common.exception.CommunityPolicyException - If one the identifiers is not in the database.
org.astrogrid.community.common.exception.CommunityServiceException - If there is an internal error in the service.
public java.lang.Object[] getGroupMembers(java.lang.String group)
throws org.astrogrid.community.common.exception.CommunityServiceException,
org.astrogrid.community.common.exception.CommunityPolicyException,
org.astrogrid.community.common.exception.CommunityIdentifierException
getGroupMembers in interface org.astrogrid.community.common.policy.manager.GroupMemberManagergroup - The Group identifier.
org.astrogrid.community.common.exception.CommunityIdentifierException - If one of the identifiers is not valid.
org.astrogrid.community.common.exception.CommunityPolicyException - If one the identifiers is not in the database.
org.astrogrid.community.common.exception.CommunityServiceException - If there is an internal error in the service.
public org.astrogrid.community.common.policy.data.GroupMemberData getGroupMember(java.lang.String account,
java.lang.String group)
throws org.astrogrid.community.common.exception.CommunityServiceException,
org.astrogrid.community.common.exception.CommunityPolicyException,
org.astrogrid.community.common.exception.CommunityIdentifierException
getGroupMember in interface org.astrogrid.community.common.policy.manager.GroupMemberManagergroup - The Group identifier.
org.astrogrid.community.common.exception.CommunityIdentifierException - If one of the identifiers is not valid.
org.astrogrid.community.common.exception.CommunityPolicyException - If one the identifiers is not in the database.
org.astrogrid.community.common.exception.CommunityServiceException - If there is an internal error in the service.
public java.lang.Object[] getGroupMembers()
throws org.astrogrid.community.common.exception.CommunityServiceException,
org.astrogrid.community.common.exception.CommunityPolicyException,
org.astrogrid.community.common.exception.CommunityIdentifierException
getGroupMembers in interface org.astrogrid.community.common.policy.manager.GroupMemberManagerorg.astrogrid.community.common.exception.CommunityIdentifierException - If one of the identifiers is not valid.
org.astrogrid.community.common.exception.CommunityPolicyException - If one the identifiers is not in the database.
org.astrogrid.community.common.exception.CommunityServiceException - If there is an internal error in the service.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||