Class AccountServiceFactoryImpl
- java.lang.Object
-
- org.duracloud.account.db.util.impl.AccountServiceFactoryImpl
-
- All Implemented Interfaces:
AccountServiceFactory
@Component("accountServiceFactory") public class AccountServiceFactoryImpl extends Object implements AccountServiceFactoryThis class creates security-wrapped instances of AccountService.- Author:
- Andrew Woods Date: 4/7/11
-
-
Constructor Summary
Constructors Constructor Description AccountServiceFactoryImpl(org.duracloud.account.db.repo.DuracloudRepoMgr repoMgr, org.springframework.security.access.AccessDecisionVoter voter, SecurityContextUtil securityContext, AnnotationParser annotationParser, AmaEndpoint amaEndpoint, org.duracloud.common.changenotifier.AccountChangeNotifier accountChangeNotifier, NotificationMgr notificationMgr, EmailTemplateService emailTemplateService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccountServicegetAccount(Long acctId)This method provides an AccountService for access to the arg acctIdAccountServicegetAccount(org.duracloud.account.db.model.AccountInfo acctInfo)This method provides an AccountService for access to the arg acctInfo
-
-
-
Constructor Detail
-
AccountServiceFactoryImpl
@Autowired public AccountServiceFactoryImpl(org.duracloud.account.db.repo.DuracloudRepoMgr repoMgr, @Qualifier("acctVoter") org.springframework.security.access.AccessDecisionVoter voter, SecurityContextUtil securityContext, AnnotationParser annotationParser, AmaEndpoint amaEndpoint, org.duracloud.common.changenotifier.AccountChangeNotifier accountChangeNotifier, NotificationMgr notificationMgr, EmailTemplateService emailTemplateService)
-
-
Method Detail
-
getAccount
public AccountService getAccount(Long acctId) throws AccountNotFoundException
Description copied from interface:AccountServiceFactoryThis method provides an AccountService for access to the arg acctId- Specified by:
getAccountin interfaceAccountServiceFactory- Parameters:
acctId- of the expected AccountService- Returns:
- AccountService
- Throws:
AccountNotFoundException- if not acct with acctId found in DB
-
getAccount
public AccountService getAccount(org.duracloud.account.db.model.AccountInfo acctInfo)
Description copied from interface:AccountServiceFactoryThis method provides an AccountService for access to the arg acctInfo- Specified by:
getAccountin interfaceAccountServiceFactory- Parameters:
acctInfo- of the expected AccountService- Returns:
- AccountService
-
-