org.astrogrid.community.client.policy.manager
Interface GroupManagerDelegate

All Superinterfaces:
CommunityServiceDelegate
All Known Subinterfaces:
PolicyManagerDelegate
All Known Implementing Classes:
PolicyManagerCoreDelegate, PolicyManagerMockDelegate, PolicyManagerSoapDelegate

public interface GroupManagerDelegate
extends CommunityServiceDelegate

Interface for our GroupManager delegate. This mirrors the GroupManager interface, without the RemoteExceptions.


Method Summary
 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.GroupData delGroup(java.lang.String ident)
          Delete a Group.
 org.astrogrid.community.common.policy.data.GroupData getGroup(java.lang.String ident)
          Request a Group details.
 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[] getLocalGroups()
          Request a list of local Groups.
 org.astrogrid.community.common.policy.data.GroupData setGroup(org.astrogrid.community.common.policy.data.GroupData account)
          Update a Group.
 
Methods inherited from interface org.astrogrid.community.client.service.CommunityServiceDelegate
getServiceStatus
 

Method Detail

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.

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.

Parameters:
data - The GroupData to add.
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.

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 account)
                                                              throws org.astrogrid.community.common.exception.CommunityServiceException,
                                                                     org.astrogrid.community.common.exception.CommunityIdentifierException,
                                                                     org.astrogrid.community.common.exception.CommunityPolicyException
Update a Group.

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.

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.

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.

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


Copyright © 2002-2007 AstroGrid. All Rights Reserved.