uk.ac.soton.itinnovation.grid.service.account
Class AccountServiceImpl

java.lang.Object
  extended by uk.ac.soton.itinnovation.grid.service.utils.gridservit.GridServiceLite
      extended by uk.ac.soton.itinnovation.grid.service.account.AccountServiceImpl
All Implemented Interfaces:
PolicyManagement, ResourceMetadata
Direct Known Subclasses:
PrivateAccountServiceImpl, TradeAccountServiceImpl

public abstract class AccountServiceImpl
extends GridServiceLite


Field Summary
protected  org.apache.log4j.Logger log
           
 
Fields inherited from class uk.ac.soton.itinnovation.grid.service.utils.gridservit.GridServiceLite
factory, management, NO_ACCOUNT_NEEDED, pdp, thisServiceAddress
 
Constructor Summary
AccountServiceImpl(String name)
           
 
Method Summary
 void addBudgetHolderRule(MatchRule rule)
          Deprecated. 
 void addUserRule(MatchRule delegate)
          Deprecated. 
 boolean checkUser(SubjectDescription user)
           
 void closeAccount()
           
 Account getAccount(org.hibernate.Session session, String resourceID)
           
 Account getAccount(String resourceID)
           
abstract  Account[] getAccountsByStatus(String status)
           
 String getAccountStatus()
           
 MatchRule[] getBudgetHolderRules()
          Deprecated. 
protected  org.apache.axis.message.addressing.EndpointReferenceType getEPR(Account account)
          Create an EPR for this resource.
protected  Class<? extends GridResource> getResourceType(String resourceID)
          Return the class of this resource's bean.
 MatchRule[] getUserRules()
          Deprecated. 
 void removeBudgetHolderRule(MatchRule rule)
          Deprecated. 
 void removeUserRule(MatchRule delegate)
          Deprecated. 
 
Methods inherited from class uk.ac.soton.itinnovation.grid.service.utils.gridservit.GridServiceLite
addHibernatedObject, addPolicyRule, addTrustedAccountService, deleteHibernatedObject, generateEPR, getAvailableSignals, getConversationFromContext, getCurrentUser, getEPR, getEPR, getManagingConversation, getPolicyRules, getPrivateKey, getResourceFromEPR, GetResourceProperty, getResources, getResources, getResourcesFromEPRs, getServiceFromEPR, getServiceProviderCertificate, getServiceProviderID, getServiceProviderIssuer, getTrustedAccountServices, getValidRoles, removePolicyRule, removeTrustedAccountService, RequestSecurityToken_Issuance, RequestSecurityToken_Validation, RequestSecurityToken, setLabel, setLabel, signal, validateOwner
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected org.apache.log4j.Logger log
Constructor Detail

AccountServiceImpl

public AccountServiceImpl(String name)
Method Detail

getAccountStatus

public String getAccountStatus()
                        throws GridFailureException
Throws:
GridFailureException

addBudgetHolderRule

@Deprecated
public void addBudgetHolderRule(MatchRule rule)
                         throws GridFailureException
Deprecated. 

Throws:
GridFailureException

removeBudgetHolderRule

@Deprecated
public void removeBudgetHolderRule(MatchRule rule)
                            throws GridFailureException
Deprecated. 

Throws:
GridFailureException

getBudgetHolderRules

@Deprecated
public MatchRule[] getBudgetHolderRules()
                                 throws GridFailureException
Deprecated. 

Throws:
GridFailureException

addUserRule

@Deprecated
public void addUserRule(MatchRule delegate)
                 throws GridFailureException
Deprecated. 

Throws:
GridFailureException

removeUserRule

@Deprecated
public void removeUserRule(MatchRule delegate)
                    throws GridFailureException
Deprecated. 

Throws:
GridFailureException

getUserRules

@Deprecated
public MatchRule[] getUserRules()
                         throws GridFailureException
Deprecated. 

Throws:
GridFailureException

closeAccount

public void closeAccount()
                  throws GridFailureException
Throws:
GridFailureException

getResourceType

protected Class<? extends GridResource> getResourceType(String resourceID)
Description copied from class: GridServiceLite
Return the class of this resource's bean. Override this in subclasses if your service is contextualised. Often, resourceID can be ignored as each service only manages one type of bean anyway.

Overrides:
getResourceType in class GridServiceLite

getAccount

public Account getAccount(String resourceID)

getAccount

public Account getAccount(org.hibernate.Session session,
                          String resourceID)

getEPR

protected org.apache.axis.message.addressing.EndpointReferenceType getEPR(Account account)
Create an EPR for this resource.


checkUser

public boolean checkUser(SubjectDescription user)
                  throws GridFailureException
Throws:
GridFailureException

getAccountsByStatus

public abstract Account[] getAccountsByStatus(String status)


Copyright © 2001-2007 University of Southampton IT Innovation Centre. All Rights Reserved.