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.AccessControlList
expandACL(com.soffid.iam.api.AccessControlList acl)
Operation expandACLCollection<String>
expandACLAccounts(com.soffid.iam.api.AccessControlList acl)
Operation expandACLAccountscom.soffid.iam.api.AccessControlList
expandUser(long userId)
Operation expandUserAccountEntityDao
getAccountEntityDao()
Gets reference toaccountEntityDao
.com.soffid.iam.service.ApplicationService
getApplicationService()
Gets reference toaplicacioService
.com.soffid.iam.service.DispatcherService
getDispatcherService()
Gets reference todispatcherService
.GroupEntityDao
getGroupEntityDao()
Gets reference togrupEntityDao
.protected Principal
getPrincipal()
Gets the currentprincipal
if one has been set, otherwise returnsnull
.RoleEntityDao
getRoleEntityDao()
Gets reference torolEntityDao
.UserEntityDao
getUserEntityDao()
Gets reference tousuariEntityDao
.protected abstract com.soffid.iam.api.AccessControlList
handleExpandACL(com.soffid.iam.api.AccessControlList acl)
protected abstract Collection<String>
handleExpandACLAccounts(com.soffid.iam.api.AccessControlList acl)
protected abstract com.soffid.iam.api.AccessControlList
handleExpandUser(long userId)
protected abstract boolean
handleIsAccountIncluded(long userId, com.soffid.iam.api.AccessControlList acl)
protected abstract boolean
handleIsCurrentUserIncluded(com.soffid.iam.api.AccessControlList acl)
protected abstract boolean
handleIsUserIncluded(long userId, com.soffid.iam.api.AccessControlList acl)
boolean
isAccountIncluded(long userId, com.soffid.iam.api.AccessControlList acl)
Operation isAccountIncludedboolean
isCurrentUserIncluded(com.soffid.iam.api.AccessControlList acl)
Operation isCurrentUserIncludedboolean
isUserIncluded(long userId, com.soffid.iam.api.AccessControlList acl)
Operation isUserIncludedvoid
setAccountEntityDao(AccountEntityDao accountEntityDao)
Sets reference toaccountEntityDao
.void
setApplicationService(com.soffid.iam.service.ApplicationService aplicacioService)
Sets reference toaplicacioService
.void
setDispatcherService(com.soffid.iam.service.DispatcherService dispatcherService)
Sets reference todispatcherService
.void
setGroupEntityDao(GroupEntityDao grupEntityDao)
Sets reference togrupEntityDao
.void
setRoleEntityDao(RoleEntityDao rolEntityDao)
Sets reference torolEntityDao
.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
.
-
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:ACLService
Operation isAccountIncluded- Specified by:
isAccountIncluded
in 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:ACLService
Operation isCurrentUserIncluded- Specified by:
isCurrentUserIncluded
in 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:ACLService
Operation isUserIncluded- Specified by:
isUserIncluded
in 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:ACLService
Operation expandACL- Specified by:
expandACL
in 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:ACLService
Operation expandUser- Specified by:
expandUser
in 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:ACLService
Operation expandACLAccounts- Specified by:
expandACLAccounts
in 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 currentprincipal
if one has been set, otherwise returnsnull
.- Returns:
- the current principal
-
-