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.RoleAccount
acceptDelegation(com.soffid.iam.api.RoleAccount ra)
com.soffid.iam.api.RoleAccount
cancelDelegation(com.soffid.iam.api.RoleAccount rolAccount)
com.soffid.iam.api.RoleAccount
delegate(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()
AccountEntityDao
getAccountEntityDao()
Gets reference toaccountEntityDao
.com.soffid.iam.service.AccountService
getAccountService()
Gets reference toaccountService
.com.soffid.iam.service.ApplicationService
getApplicationService()
Gets reference toaplicacioService
.AuditEntityDao
getAuditEntityDao()
Gets reference toauditoriaEntityDao
.protected Principal
getPrincipal()
Gets the currentprincipal
if one has been set, otherwise returnsnull
.RoleAccountEntityDao
getRoleAccountEntityDao()
Gets reference torolAccountEntityDao
.RoleEntityDao
getRoleEntityDao()
Gets reference torolEntityDao
.SystemEntityDao
getSystemEntityDao()
Gets reference todispatcherEntityDao
.UserEntityDao
getUserEntityDao()
Gets reference tousuariEntityDao
.protected abstract com.soffid.iam.api.RoleAccount
handleAcceptDelegation(com.soffid.iam.api.RoleAccount ra)
protected abstract com.soffid.iam.api.RoleAccount
handleCancelDelegation(com.soffid.iam.api.RoleAccount rolAccount)
protected abstract com.soffid.iam.api.RoleAccount
handleDelegate(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 void
handleRevertExpiredDelegations()
void
revertExpiredDelegations()
void
setAccountEntityDao(AccountEntityDao accountEntityDao)
Sets reference toaccountEntityDao
.void
setAccountService(com.soffid.iam.service.AccountService accountService)
Sets reference toaccountService
.void
setApplicationService(com.soffid.iam.service.ApplicationService aplicacioService)
Sets reference toaplicacioService
.void
setAuditEntityDao(AuditEntityDao auditoriaEntityDao)
Sets reference toauditoriaEntityDao
.void
setRoleAccountEntityDao(RoleAccountEntityDao rolAccountEntityDao)
Sets reference torolAccountEntityDao
.void
setRoleEntityDao(RoleEntityDao rolEntityDao)
Sets reference torolEntityDao
.void
setSystemEntityDao(SystemEntityDao dispatcherEntityDao)
Sets reference todispatcherEntityDao
.void
setUserEntityDao(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:
acceptDelegation
in 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:
cancelDelegation
in 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:
delegate
in 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:
findAccountsToDelegate
in 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:
findActiveDelegations
in 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:
findDelegationsToAccept
in 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:
revertExpiredDelegations
in 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 currentprincipal
if one has been set, otherwise returnsnull
.- Returns:
- the current principal
-
-