Package com.soffid.iam.service
Class ACLServiceBase
- java.lang.Object
-
- com.soffid.iam.service.ACLServiceBase
-
- All Implemented Interfaces:
ACLService
- Direct Known Subclasses:
ACLServiceImpl
public abstract class ACLServiceBase extends Object implements ACLService
Spring Service base class for
see com.soffid.iam.service.ACLServicecom.soffid.iam.service.ACLService, provides access to all services and entities referenced by this service.
-
-
Field Summary
-
Fields inherited from interface com.soffid.iam.service.ACLService
SERVICE_NAME
-
-
Constructor Summary
Constructors Constructor Description ACLServiceBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description com.soffid.iam.api.AccessControlListexpandACL(com.soffid.iam.api.AccessControlList acl)Operation expandACLCollection<String>expandACLAccounts(com.soffid.iam.api.AccessControlList acl)Operation expandACLAccountscom.soffid.iam.api.AccessControlListexpandUser(long userId)Operation expandUserAccountEntityDaogetAccountEntityDao()Gets reference toaccountEntityDao.com.soffid.iam.service.ApplicationServicegetApplicationService()Gets reference toaplicacioService.com.soffid.iam.service.DispatcherServicegetDispatcherService()Gets reference todispatcherService.GroupEntityDaogetGroupEntityDao()Gets reference togrupEntityDao.protected PrincipalgetPrincipal()Gets the currentprincipalif one has been set, otherwise returnsnull.RoleEntityDaogetRoleEntityDao()Gets reference torolEntityDao.UserEntityDaogetUserEntityDao()Gets reference tousuariEntityDao.protected abstract com.soffid.iam.api.AccessControlListhandleExpandACL(com.soffid.iam.api.AccessControlList acl)protected abstract Collection<String>handleExpandACLAccounts(com.soffid.iam.api.AccessControlList acl)protected abstract com.soffid.iam.api.AccessControlListhandleExpandUser(long userId)protected abstract booleanhandleIsAccountIncluded(long userId, com.soffid.iam.api.AccessControlList acl)protected abstract booleanhandleIsCurrentUserIncluded(com.soffid.iam.api.AccessControlList acl)protected abstract booleanhandleIsUserIncluded(long userId, com.soffid.iam.api.AccessControlList acl)booleanisAccountIncluded(long userId, com.soffid.iam.api.AccessControlList acl)Operation isAccountIncludedbooleanisCurrentUserIncluded(com.soffid.iam.api.AccessControlList acl)Operation isCurrentUserIncludedbooleanisUserIncluded(long userId, com.soffid.iam.api.AccessControlList acl)Operation isUserIncludedvoidsetAccountEntityDao(AccountEntityDao accountEntityDao)Sets reference toaccountEntityDao.voidsetApplicationService(com.soffid.iam.service.ApplicationService aplicacioService)Sets reference toaplicacioService.voidsetDispatcherService(com.soffid.iam.service.DispatcherService dispatcherService)Sets reference todispatcherService.voidsetGroupEntityDao(GroupEntityDao grupEntityDao)Sets reference togrupEntityDao.voidsetRoleEntityDao(RoleEntityDao rolEntityDao)Sets reference torolEntityDao.voidsetUserEntityDao(UserEntityDao usuariEntityDao)Sets reference tousuariEntityDao.
-
-
-
Method Detail
-
setAccountEntityDao
public void setAccountEntityDao(AccountEntityDao accountEntityDao)
Sets reference toaccountEntityDao.
-
getAccountEntityDao
public AccountEntityDao getAccountEntityDao()
Gets reference toaccountEntityDao.
-
setApplicationService
public void setApplicationService(com.soffid.iam.service.ApplicationService aplicacioService)
Sets reference toaplicacioService.
-
getApplicationService
public com.soffid.iam.service.ApplicationService getApplicationService()
Gets reference toaplicacioService.
-
setDispatcherService
public void setDispatcherService(com.soffid.iam.service.DispatcherService dispatcherService)
Sets reference todispatcherService.
-
getDispatcherService
public com.soffid.iam.service.DispatcherService getDispatcherService()
Gets reference todispatcherService.
-
setGroupEntityDao
public void setGroupEntityDao(GroupEntityDao grupEntityDao)
Sets reference togrupEntityDao.
-
getGroupEntityDao
public GroupEntityDao getGroupEntityDao()
Gets reference togrupEntityDao.
-
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.
-
isAccountIncluded
@Transactional(rollbackFor=java.lang.Exception.class) public boolean isAccountIncluded(long userId, com.soffid.iam.api.AccessControlList acl) throws es.caib.seycon.ng.exception.InternalErrorException
Description copied from interface:ACLServiceOperation isAccountIncluded- Specified by:
isAccountIncludedin interfaceACLService- Returns:
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleIsAccountIncluded
protected abstract boolean handleIsAccountIncluded(long userId, com.soffid.iam.api.AccessControlList acl) throws Exception- Throws:
Exception
-
isCurrentUserIncluded
@Transactional(rollbackFor=java.lang.Exception.class) public boolean isCurrentUserIncluded(com.soffid.iam.api.AccessControlList acl) throws es.caib.seycon.ng.exception.InternalErrorException
Description copied from interface:ACLServiceOperation isCurrentUserIncluded- Specified by:
isCurrentUserIncludedin interfaceACLService- Returns:
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleIsCurrentUserIncluded
protected abstract boolean handleIsCurrentUserIncluded(com.soffid.iam.api.AccessControlList acl) throws Exception- Throws:
Exception
-
isUserIncluded
@Transactional(rollbackFor=java.lang.Exception.class) public boolean isUserIncluded(long userId, com.soffid.iam.api.AccessControlList acl) throws es.caib.seycon.ng.exception.InternalErrorException
Description copied from interface:ACLServiceOperation isUserIncluded- Specified by:
isUserIncludedin interfaceACLService- Returns:
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleIsUserIncluded
protected abstract boolean handleIsUserIncluded(long userId, com.soffid.iam.api.AccessControlList acl) throws Exception- Throws:
Exception
-
expandACL
@Transactional(rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.AccessControlList expandACL(com.soffid.iam.api.AccessControlList acl) throws es.caib.seycon.ng.exception.InternalErrorException
Description copied from interface:ACLServiceOperation expandACL- Specified by:
expandACLin interfaceACLService- Returns:
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleExpandACL
protected abstract com.soffid.iam.api.AccessControlList handleExpandACL(com.soffid.iam.api.AccessControlList acl) throws Exception- Throws:
Exception
-
expandUser
@Transactional(rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.AccessControlList expandUser(long userId) throws es.caib.seycon.ng.exception.InternalErrorException
Description copied from interface:ACLServiceOperation expandUser- Specified by:
expandUserin interfaceACLService- Returns:
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleExpandUser
protected abstract com.soffid.iam.api.AccessControlList handleExpandUser(long userId) throws Exception- Throws:
Exception
-
expandACLAccounts
@Transactional(rollbackFor=java.lang.Exception.class) public Collection<String> expandACLAccounts(com.soffid.iam.api.AccessControlList acl) throws es.caib.seycon.ng.exception.InternalErrorException
Description copied from interface:ACLServiceOperation expandACLAccounts- Specified by:
expandACLAccountsin interfaceACLService- Returns:
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleExpandACLAccounts
protected abstract Collection<String> handleExpandACLAccounts(com.soffid.iam.api.AccessControlList acl) throws Exception
- Throws:
Exception
-
getPrincipal
protected Principal getPrincipal()
Gets the currentprincipalif one has been set, otherwise returnsnull.- Returns:
- the current principal
-
-