org.astrogrid.community.client.policy.manager
Class PolicyManagerCoreDelegate

java.lang.Object
  extended byorg.astrogrid.community.client.service.CommunityServiceCoreDelegate
      extended byorg.astrogrid.community.client.policy.manager.PolicyManagerCoreDelegate
All Implemented Interfaces:
org.astrogrid.community.common.policy.manager.AccountManager, AccountManagerDelegate, org.astrogrid.community.common.service.CommunityService, CommunityServiceDelegate, org.astrogrid.community.common.policy.manager.GroupManager, GroupManagerDelegate, org.astrogrid.community.common.policy.manager.GroupMemberManager, GroupMemberManagerDelegate, org.astrogrid.community.common.policy.manager.PermissionManager, PermissionManagerDelegate, org.astrogrid.community.common.policy.manager.PolicyManager, PolicyManagerDelegate, java.rmi.Remote, org.astrogrid.community.common.policy.manager.ResourceManager, ResourceManagerDelegate
Direct Known Subclasses:
PolicyManagerMockDelegate, PolicyManagerSoapDelegate

public class PolicyManagerCoreDelegate
extends CommunityServiceCoreDelegate
implements org.astrogrid.community.common.policy.manager.PolicyManager, PolicyManagerDelegate

The core delegate for our PolicyManager service. This acts as a wrapper for a PolicyManager service, and converts RemoteExceptions into CommunityServiceException.

To Do:
Refactor this as a number of smaller classes.

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

PolicyManagerCoreDelegate

protected PolicyManagerCoreDelegate()
Public constructor.

Method Detail

getPolicyManager

protected org.astrogrid.community.common.policy.manager.PolicyManager getPolicyManager()
Get a reference to our PolicyManager service.


setPolicyManager

protected void setPolicyManager(org.astrogrid.community.common.policy.manager.PolicyManager manager)
Set our our PolicyManager service.


addAccount

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
Add a new Account, given the Account ident.

Specified by:
addAccount in interface org.astrogrid.community.common.policy.manager.AccountManager
Parameters:
ident - The Account identifier.
Returns:
An AccountData for the Account.
Throws:
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.

addAccount

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
Add a new Account, given the Account data.

Specified by:
addAccount in interface org.astrogrid.community.common.policy.manager.AccountManager
Parameters:
account - The AccountData to add.
Returns:
A new AccountData for the Account.
Throws:
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.

getAccount

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
Request an Account details, given the Account ident.

Specified by:
getAccount in interface org.astrogrid.community.common.policy.manager.AccountManager
Parameters:
ident - The Account identifier.
Returns:
An AccountData for the Account.
Throws:
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.

setAccount

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
Update an Account.

Specified by:
setAccount in interface org.astrogrid.community.common.policy.manager.AccountManager
Parameters:
account - The new AccountData to update.
Returns:
A new AccountData for the Account.
Throws:
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.

delAccount

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
Delete an Account.

Specified by:
delAccount in interface org.astrogrid.community.common.policy.manager.AccountManager
Parameters:
ident - The Account identifier.
Returns:
The AccountData for the old Account.
Throws:
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.

getLocalAccounts

public java.lang.Object[] getLocalAccounts()
                                    throws org.astrogrid.community.common.exception.CommunityServiceException
Request a list of local Accounts.

Specified by:
getLocalAccounts in interface org.astrogrid.community.common.policy.manager.AccountManager
Returns:
An array of AccountData objects.
Throws:
org.astrogrid.community.common.exception.CommunityServiceException - If there is an internal error in the service.

addGroup

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
Add a new Group.

Specified by:
addGroup in interface org.astrogrid.community.common.policy.manager.GroupManager
Parameters:
ident - The Group identifier.
Returns:
A GroupData for the Group.
Throws:
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.

addGroup

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
Add a new Group.

Specified by:
addGroup in interface org.astrogrid.community.common.policy.manager.GroupManager
Returns:
A new GroupData for the Group.
Throws:
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.

getGroup

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
Request a Group details.

Specified by:
getGroup in interface org.astrogrid.community.common.policy.manager.GroupManager
Parameters:
ident - The Group identifier.
Returns:
A GroupData for the Group.
Throws:
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.

setGroup

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
Update a Group.

Specified by:
setGroup in interface org.astrogrid.community.common.policy.manager.GroupManager
Parameters:
data - The new GroupData to update.
Returns:
A new GroupData for the Group.
Throws:
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.

delGroup

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
Delete a Group.

Specified by:
delGroup in interface org.astrogrid.community.common.policy.manager.GroupManager
Parameters:
ident - The Group identifier.
Returns:
The GroupData for the old Group.
Throws:
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.

getLocalGroups

public java.lang.Object[] getLocalGroups()
                                  throws org.astrogrid.community.common.exception.CommunityServiceException
Request a list of local Groups.

Specified by:
getLocalGroups in interface org.astrogrid.community.common.policy.manager.GroupManager
Returns:
An array of GroupData objects.
Throws:
org.astrogrid.community.common.exception.CommunityServiceException - If there is an internal error in the service.

getLocalAccountGroups

public java.lang.Object[] getLocalAccountGroups(java.lang.String account)
                                         throws org.astrogrid.community.common.exception.CommunityServiceException,
                                                org.astrogrid.community.common.exception.CommunityIdentifierException
Request a list of local Groups that an Account belongs to, given the Account ident.

Specified by:
getLocalAccountGroups in interface org.astrogrid.community.common.policy.manager.GroupManager
Parameters:
account - The Account ifentifier.
Returns:
An array of GroupData objects.
Throws:
org.astrogrid.community.common.exception.CommunityServiceException - If there is an internal error in the service.
org.astrogrid.community.common.exception.CommunityIdentifierException

addResource

public org.astrogrid.community.common.policy.data.ResourceData addResource()
                                                                    throws org.astrogrid.community.common.exception.CommunityServiceException
Register a new Resource.

Specified by:
addResource in interface org.astrogrid.community.common.policy.manager.ResourceManager
Returns:
A new ResourceData object to represent the resource.
Throws:
org.astrogrid.community.common.exception.CommunityServiceException - If there is an internal error in the service.

getResource

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
Request the details for a Resource.

Specified by:
getResource in interface org.astrogrid.community.common.policy.manager.ResourceManager
Returns:
The requested ResourceData object.
Throws:
org.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.

getResources

public java.lang.Object[] getResources()
Request the details for a Resource.

Specified by:
getResources in interface org.astrogrid.community.common.policy.manager.ResourceManager
Returns:
The requested ResourceData object.
Throws:
org.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.

setResource

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
Update the details for a Resource.

Specified by:
setResource in interface org.astrogrid.community.common.policy.manager.ResourceManager
Returns:
The updated ResourceData.
Throws:
org.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.

delResource

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
Delete a Resource.

Specified by:
delResource in interface org.astrogrid.community.common.policy.manager.ResourceManager
Returns:
The original ResourceData.
Throws:
org.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.

addPermission

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
Create a new PolicyPermission.

Specified by:
addPermission in interface org.astrogrid.community.common.policy.manager.PermissionManager
Throws:
org.astrogrid.community.common.exception.CommunityServiceException
org.astrogrid.community.common.exception.CommunityIdentifierException
org.astrogrid.community.common.exception.CommunityPolicyException
To Do:
Better Exception handling.

getPermission

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
Request a PolicyPermission.

Specified by:
getPermission in interface org.astrogrid.community.common.policy.manager.PermissionManager
Throws:
org.astrogrid.community.common.exception.CommunityServiceException
org.astrogrid.community.common.exception.CommunityIdentifierException
org.astrogrid.community.common.exception.CommunityPolicyException
To Do:
Better Exception handling.

getPermissions

public java.lang.Object[] getPermissions()
Request a PolicyPermission.

Specified by:
getPermissions in interface org.astrogrid.community.common.policy.manager.PermissionManager
To Do:
Better Exception handling.

setPermission

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
Update a PolicyPermission.

Specified by:
setPermission in interface org.astrogrid.community.common.policy.manager.PermissionManager
Throws:
org.astrogrid.community.common.exception.CommunityServiceException
org.astrogrid.community.common.exception.CommunityIdentifierException
org.astrogrid.community.common.exception.CommunityPolicyException
To Do:
Better Exception handling.

delPermission

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
Delete a PolicyPermission.

Specified by:
delPermission in interface org.astrogrid.community.common.policy.manager.PermissionManager
Throws:
org.astrogrid.community.common.exception.CommunityServiceException
org.astrogrid.community.common.exception.CommunityIdentifierException
org.astrogrid.community.common.exception.CommunityPolicyException
To Do:
Better Exception handling.

addGroupMember

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
Add an Account to a Group. The group must be local, but Account can be local or remote.

Specified by:
addGroupMember in interface org.astrogrid.community.common.policy.manager.GroupMemberManager
Parameters:
account - The Account identifier.
group - The Group identifier.
Returns:
An GroupMemberData to confirm the membership.
Throws:
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.

delGroupMember

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
Remove an Account from a Group. The group must be local, but Account can be local or remote.

Specified by:
delGroupMember in interface org.astrogrid.community.common.policy.manager.GroupMemberManager
Parameters:
account - The Account identifier.
group - The Group identifier.
Returns:
A GroupMemberData to confirm the membership.
Throws:
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.

getGroupMembers

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
Request a list of Group members. The group must be local.

Specified by:
getGroupMembers in interface org.astrogrid.community.common.policy.manager.GroupMemberManager
Parameters:
group - The Group identifier.
Returns:
An array of GroupMemberData objects..
Throws:
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.

getGroupMember

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
Request a list of Group members. The group must be local.

Specified by:
getGroupMember in interface org.astrogrid.community.common.policy.manager.GroupMemberManager
Parameters:
group - The Group identifier.
Returns:
An array of GroupMemberData objects..
Throws:
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.

getGroupMembers

public java.lang.Object[] getGroupMembers()
                                   throws org.astrogrid.community.common.exception.CommunityServiceException,
                                          org.astrogrid.community.common.exception.CommunityPolicyException,
                                          org.astrogrid.community.common.exception.CommunityIdentifierException
Request a list of Group members. The group must be local.

Specified by:
getGroupMembers in interface org.astrogrid.community.common.policy.manager.GroupMemberManager
Returns:
An array of GroupMemberData objects..
Throws:
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.


Copyright © 2002-2007 AstroGrid. All Rights Reserved.