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

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

public interface AccountManagerDelegate
extends CommunityServiceDelegate

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

See Also:
AccountManager
To Do:
Add Ivorn methods

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.AccountData delAccount(java.lang.String ident)
          Delete an Account.
 org.astrogrid.community.common.policy.data.AccountData getAccount(java.lang.String ident)
          Request an Account details, given the Account ident.
 java.lang.Object[] getLocalAccounts()
          Request a list of local Accounts.
 org.astrogrid.community.common.policy.data.AccountData setAccount(org.astrogrid.community.common.policy.data.AccountData account)
          Update an Account.
 
Methods inherited from interface org.astrogrid.community.client.service.CommunityServiceDelegate
getServiceStatus
 

Method Detail

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.

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.

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.

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.

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.

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.

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


Copyright © 2002-2007 AstroGrid. All Rights Reserved.