Package com.soffid.iam.service
Class EntitlementDelegationServiceBase
- java.lang.Object
-
- com.soffid.iam.service.EntitlementDelegationServiceBase
-
- All Implemented Interfaces:
com.soffid.iam.service.EntitlementDelegationService
- Direct Known Subclasses:
EntitlementDelegationServiceImpl
public abstract class EntitlementDelegationServiceBase extends Object implements com.soffid.iam.service.EntitlementDelegationService
Spring Service base class for
see com.soffid.iam.service.EntitlementDelegationServicecom.soffid.iam.service.EntitlementDelegationService, provides access to all services and entities referenced by this service.
-
-
Constructor Summary
Constructors Constructor Description EntitlementDelegationServiceBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description com.soffid.iam.api.RoleAccountacceptDelegation(com.soffid.iam.api.RoleAccount ra)com.soffid.iam.api.RoleAccountcancelDelegation(com.soffid.iam.api.RoleAccount rolAccount)com.soffid.iam.api.RoleAccountdelegate(com.soffid.iam.api.RoleAccount rolAccount, String user, String account, Date since, Date until)List<String>findAccountsToDelegate(com.soffid.iam.api.RoleAccount rolAccount, String user)List<com.soffid.iam.api.RoleAccount>findActiveDelegations()List<com.soffid.iam.api.RoleAccount>findDelegationsToAccept()AccountEntityDaogetAccountEntityDao()Gets reference toaccountEntityDao.com.soffid.iam.service.AccountServicegetAccountService()Gets reference toaccountService.com.soffid.iam.service.ApplicationServicegetApplicationService()Gets reference toaplicacioService.AuditEntityDaogetAuditEntityDao()Gets reference toauditoriaEntityDao.protected PrincipalgetPrincipal()Gets the currentprincipalif one has been set, otherwise returnsnull.RoleAccountEntityDaogetRoleAccountEntityDao()Gets reference torolAccountEntityDao.RoleEntityDaogetRoleEntityDao()Gets reference torolEntityDao.SystemEntityDaogetSystemEntityDao()Gets reference todispatcherEntityDao.UserEntityDaogetUserEntityDao()Gets reference tousuariEntityDao.protected abstract com.soffid.iam.api.RoleAccounthandleAcceptDelegation(com.soffid.iam.api.RoleAccount ra)protected abstract com.soffid.iam.api.RoleAccounthandleCancelDelegation(com.soffid.iam.api.RoleAccount rolAccount)protected abstract com.soffid.iam.api.RoleAccounthandleDelegate(com.soffid.iam.api.RoleAccount rolAccount, String user, String account, Date since, Date until)protected abstract List<String>handleFindAccountsToDelegate(com.soffid.iam.api.RoleAccount rolAccount, String user)protected abstract List<com.soffid.iam.api.RoleAccount>handleFindActiveDelegations()protected abstract List<com.soffid.iam.api.RoleAccount>handleFindDelegationsToAccept()protected abstract voidhandleRevertExpiredDelegations()voidrevertExpiredDelegations()voidsetAccountEntityDao(AccountEntityDao accountEntityDao)Sets reference toaccountEntityDao.voidsetAccountService(com.soffid.iam.service.AccountService accountService)Sets reference toaccountService.voidsetApplicationService(com.soffid.iam.service.ApplicationService aplicacioService)Sets reference toaplicacioService.voidsetAuditEntityDao(AuditEntityDao auditoriaEntityDao)Sets reference toauditoriaEntityDao.voidsetRoleAccountEntityDao(RoleAccountEntityDao rolAccountEntityDao)Sets reference torolAccountEntityDao.voidsetRoleEntityDao(RoleEntityDao rolEntityDao)Sets reference torolEntityDao.voidsetSystemEntityDao(SystemEntityDao dispatcherEntityDao)Sets reference todispatcherEntityDao.voidsetUserEntityDao(UserEntityDao usuariEntityDao)Sets reference tousuariEntityDao.
-
-
-
Method Detail
-
setAccountEntityDao
public void setAccountEntityDao(AccountEntityDao accountEntityDao)
Sets reference toaccountEntityDao.
-
getAccountEntityDao
public AccountEntityDao getAccountEntityDao()
Gets reference toaccountEntityDao.
-
setAccountService
public void setAccountService(com.soffid.iam.service.AccountService accountService)
Sets reference toaccountService.
-
getAccountService
public com.soffid.iam.service.AccountService getAccountService()
Gets reference toaccountService.
-
setApplicationService
public void setApplicationService(com.soffid.iam.service.ApplicationService aplicacioService)
Sets reference toaplicacioService.
-
getApplicationService
public com.soffid.iam.service.ApplicationService getApplicationService()
Gets reference toaplicacioService.
-
setAuditEntityDao
public void setAuditEntityDao(AuditEntityDao auditoriaEntityDao)
Sets reference toauditoriaEntityDao.
-
getAuditEntityDao
public AuditEntityDao getAuditEntityDao()
Gets reference toauditoriaEntityDao.
-
setSystemEntityDao
public void setSystemEntityDao(SystemEntityDao dispatcherEntityDao)
Sets reference todispatcherEntityDao.
-
getSystemEntityDao
public SystemEntityDao getSystemEntityDao()
Gets reference todispatcherEntityDao.
-
setRoleAccountEntityDao
public void setRoleAccountEntityDao(RoleAccountEntityDao rolAccountEntityDao)
Sets reference torolAccountEntityDao.
-
getRoleAccountEntityDao
public RoleAccountEntityDao getRoleAccountEntityDao()
Gets reference torolAccountEntityDao.
-
setRoleEntityDao
public void setRoleEntityDao(RoleEntityDao rolEntityDao)
Sets reference torolEntityDao.
-
getRoleEntityDao
public RoleEntityDao getRoleEntityDao()
Gets reference torolEntityDao.
-
setUserEntityDao
public void setUserEntityDao(UserEntityDao usuariEntityDao)
Sets reference tousuariEntityDao.
-
getUserEntityDao
public UserEntityDao getUserEntityDao()
Gets reference tousuariEntityDao.
-
acceptDelegation
@Transactional(rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.RoleAccount acceptDelegation(com.soffid.iam.api.RoleAccount ra) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
acceptDelegationin interfacecom.soffid.iam.service.EntitlementDelegationService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleAcceptDelegation
protected abstract com.soffid.iam.api.RoleAccount handleAcceptDelegation(com.soffid.iam.api.RoleAccount ra) throws Exception- Throws:
Exception
-
cancelDelegation
@Transactional(rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.RoleAccount cancelDelegation(com.soffid.iam.api.RoleAccount rolAccount) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
cancelDelegationin interfacecom.soffid.iam.service.EntitlementDelegationService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleCancelDelegation
protected abstract com.soffid.iam.api.RoleAccount handleCancelDelegation(com.soffid.iam.api.RoleAccount rolAccount) throws Exception- Throws:
Exception
-
delegate
@Transactional(rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.RoleAccount delegate(com.soffid.iam.api.RoleAccount rolAccount, String user, String account, Date since, Date until) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
delegatein interfacecom.soffid.iam.service.EntitlementDelegationService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleDelegate
protected abstract com.soffid.iam.api.RoleAccount handleDelegate(com.soffid.iam.api.RoleAccount rolAccount, String user, String account, Date since, Date until) throws Exception- Throws:
Exception
-
findAccountsToDelegate
@Transactional(rollbackFor=java.lang.Exception.class) public List<String> findAccountsToDelegate(com.soffid.iam.api.RoleAccount rolAccount, String user) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findAccountsToDelegatein interfacecom.soffid.iam.service.EntitlementDelegationService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindAccountsToDelegate
protected abstract List<String> handleFindAccountsToDelegate(com.soffid.iam.api.RoleAccount rolAccount, String user) throws Exception
- Throws:
Exception
-
findActiveDelegations
@Transactional(rollbackFor=java.lang.Exception.class) public List<com.soffid.iam.api.RoleAccount> findActiveDelegations() throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findActiveDelegationsin interfacecom.soffid.iam.service.EntitlementDelegationService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindActiveDelegations
protected abstract List<com.soffid.iam.api.RoleAccount> handleFindActiveDelegations() throws Exception
- Throws:
Exception
-
findDelegationsToAccept
@Transactional(rollbackFor=java.lang.Exception.class) public List<com.soffid.iam.api.RoleAccount> findDelegationsToAccept() throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findDelegationsToAcceptin interfacecom.soffid.iam.service.EntitlementDelegationService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindDelegationsToAccept
protected abstract List<com.soffid.iam.api.RoleAccount> handleFindDelegationsToAccept() throws Exception
- Throws:
Exception
-
revertExpiredDelegations
@Transactional(rollbackFor=java.lang.Exception.class) public void revertExpiredDelegations() throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
revertExpiredDelegationsin interfacecom.soffid.iam.service.EntitlementDelegationService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleRevertExpiredDelegations
protected abstract void handleRevertExpiredDelegations() throws Exception- Throws:
Exception
-
getPrincipal
protected Principal getPrincipal()
Gets the currentprincipalif one has been set, otherwise returnsnull.- Returns:
- the current principal
-
-