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

All Superinterfaces:
CommunityServiceDelegate

public interface CommunityManagerDelegate
extends CommunityServiceDelegate

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


Method Summary
 org.astrogrid.community.common.policy.data.CommunityData addCommunity(java.lang.String ident)
          Add a new Community, given the Account ident.
 org.astrogrid.community.common.policy.data.CommunityData delCommunity(java.lang.String ident)
          Delete a Community.
 org.astrogrid.community.common.policy.data.CommunityData getCommunity(java.lang.String ident)
          Request a Community details, given the Community ident.
 java.lang.Object[] getCommunityList()
          Request a list of Communities.
 org.astrogrid.community.common.policy.data.CommunityData setCommunity(org.astrogrid.community.common.policy.data.CommunityData community)
          Update a Community.
 
Methods inherited from interface org.astrogrid.community.client.service.CommunityServiceDelegate
getServiceStatus
 

Method Detail

addCommunity

public org.astrogrid.community.common.policy.data.CommunityData addCommunity(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 Community, given the Account ident.

Parameters:
ident - The Community identifier.
Returns:
A CommunityData for the Community.
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.

getCommunity

public org.astrogrid.community.common.policy.data.CommunityData getCommunity(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 Community details, given the Community ident.

Parameters:
ident - The Community identifier.
Returns:
A CommunityData for the Community.
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.

setCommunity

public org.astrogrid.community.common.policy.data.CommunityData setCommunity(org.astrogrid.community.common.policy.data.CommunityData community)
                                                                      throws org.astrogrid.community.common.exception.CommunityServiceException,
                                                                             org.astrogrid.community.common.exception.CommunityIdentifierException,
                                                                             org.astrogrid.community.common.exception.CommunityPolicyException
Update a Community.

Parameters:
community - The new CommunityData to update.
Returns:
A new CommunityData for the Community.
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.

delCommunity

public org.astrogrid.community.common.policy.data.CommunityData delCommunity(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 Community.

Parameters:
ident - The Community identifier.
Returns:
The CommunityData for the old Community.
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.

getCommunityList

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

Returns:
An array of CommunityData objects.
Throws:
org.astrogrid.community.common.exception.CommunityServiceException - If there is an internal error in the service.


Copyright © 2002-2007 AstroGrid. All Rights Reserved.