Class AccountServiceFactoryImpl
java.lang.Object
org.duracloud.account.db.util.impl.AccountServiceFactoryImpl
- All Implemented Interfaces:
AccountServiceFactory
@Component("accountServiceFactory")
public class AccountServiceFactoryImpl
extends Object
implements AccountServiceFactory
This class creates security-wrapped instances of AccountService.
- Author:
- Andrew Woods Date: 4/7/11
-
Constructor Summary
ConstructorsConstructorDescriptionAccountServiceFactoryImpl(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
Modifier and TypeMethodDescriptiongetAccount(Long acctId) This method provides an AccountService for access to the arg acctIdgetAccount(org.duracloud.account.db.model.AccountInfo acctInfo) This method provides an AccountService for access to the arg acctInfo
-
Constructor Details
-
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 Details
-
getAccount
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
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
-