Package com.soffid.iam.service
Class TenantServiceBase
- java.lang.Object
-
- com.soffid.iam.service.TenantServiceBase
-
- All Implemented Interfaces:
com.soffid.iam.service.TenantService
- Direct Known Subclasses:
TenantServiceImpl
public abstract class TenantServiceBase extends Object implements com.soffid.iam.service.TenantService
Spring Service base class for
see com.soffid.iam.service.TenantServicecom.soffid.iam.service.TenantService, provides access to all services and entities referenced by this service.
-
-
Constructor Summary
Constructors Constructor Description TenantServiceBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddTenantServer(com.soffid.iam.api.Tenant tenant, String server)com.soffid.iam.api.Tenantcreate(com.soffid.iam.api.Tenant tenant)voiddisablePermission(com.soffid.iam.api.Tenant tenant, String permission)voidenablePermission(com.soffid.iam.api.Tenant tenant, String permission)voidexportTenant(com.soffid.iam.api.Tenant tenant, OutputStream out)List<com.soffid.iam.api.Tenant>find(com.soffid.iam.api.TenantCriteria criteria)com.soffid.iam.service.ApplicationBootServicegetApplicationBootService()Gets reference toapplicationBootService.List<String>getDisabledPermissions(com.soffid.iam.api.Tenant tenant)com.soffid.iam.api.TenantgetMasterTenant()protected PrincipalgetPrincipal()Gets the currentprincipalif one has been set, otherwise returnsnull.ServerEntityDaogetServerEntityDao()Gets reference toserverEntityDao.com.soffid.iam.api.TenantgetTenant(Long id)com.soffid.iam.api.TenantgetTenant(String name)TenantDisabledPermissionEntityDaogetTenantDisabledPermissionEntityDao()Gets reference totenantDisabledPermissionEntityDao.TenantEntityDaogetTenantEntityDao()Gets reference totenantEntityDao.TenantServerEntityDaogetTenantServerEntityDao()Gets reference totenantServerEntityDao.List<String>getTenantServers(com.soffid.iam.api.Tenant tenant)protected abstract voidhandleAddTenantServer(com.soffid.iam.api.Tenant tenant, String server)protected abstract com.soffid.iam.api.TenanthandleCreate(com.soffid.iam.api.Tenant tenant)protected abstract voidhandleDisablePermission(com.soffid.iam.api.Tenant tenant, String permission)protected abstract voidhandleEnablePermission(com.soffid.iam.api.Tenant tenant, String permission)protected abstract voidhandleExportTenant(com.soffid.iam.api.Tenant tenant, OutputStream out)protected abstract List<com.soffid.iam.api.Tenant>handleFind(com.soffid.iam.api.TenantCriteria criteria)protected abstract List<String>handleGetDisabledPermissions(com.soffid.iam.api.Tenant tenant)protected abstract com.soffid.iam.api.TenanthandleGetMasterTenant()protected abstract com.soffid.iam.api.TenanthandleGetTenant(Long id)protected abstract com.soffid.iam.api.TenanthandleGetTenant(String name)protected abstract List<String>handleGetTenantServers(com.soffid.iam.api.Tenant tenant)protected abstract com.soffid.iam.api.TenanthandleImportTenant(InputStream in)protected abstract Collection<com.soffid.iam.api.Tenant>handleListTenants()protected abstract voidhandleRemove(com.soffid.iam.api.Tenant tenant)protected abstract voidhandleRemoveTenantServer(com.soffid.iam.api.Tenant tenant, String server)protected abstract com.soffid.iam.api.TenanthandleUpdate(com.soffid.iam.api.Tenant tenant)com.soffid.iam.api.TenantimportTenant(InputStream in)Collection<com.soffid.iam.api.Tenant>listTenants()voidremove(com.soffid.iam.api.Tenant tenant)voidremoveTenantServer(com.soffid.iam.api.Tenant tenant, String server)voidsetApplicationBootService(com.soffid.iam.service.ApplicationBootService applicationBootService)Sets reference toapplicationBootService.voidsetServerEntityDao(ServerEntityDao serverEntityDao)Sets reference toserverEntityDao.voidsetTenantDisabledPermissionEntityDao(TenantDisabledPermissionEntityDao tenantDisabledPermissionEntityDao)Sets reference totenantDisabledPermissionEntityDao.voidsetTenantEntityDao(TenantEntityDao tenantEntityDao)Sets reference totenantEntityDao.voidsetTenantServerEntityDao(TenantServerEntityDao tenantServerEntityDao)Sets reference totenantServerEntityDao.com.soffid.iam.api.Tenantupdate(com.soffid.iam.api.Tenant tenant)
-
-
-
Method Detail
-
setApplicationBootService
public void setApplicationBootService(com.soffid.iam.service.ApplicationBootService applicationBootService)
Sets reference toapplicationBootService.
-
getApplicationBootService
public com.soffid.iam.service.ApplicationBootService getApplicationBootService()
Gets reference toapplicationBootService.
-
setServerEntityDao
public void setServerEntityDao(ServerEntityDao serverEntityDao)
Sets reference toserverEntityDao.
-
getServerEntityDao
public ServerEntityDao getServerEntityDao()
Gets reference toserverEntityDao.
-
setTenantDisabledPermissionEntityDao
public void setTenantDisabledPermissionEntityDao(TenantDisabledPermissionEntityDao tenantDisabledPermissionEntityDao)
Sets reference totenantDisabledPermissionEntityDao.
-
getTenantDisabledPermissionEntityDao
public TenantDisabledPermissionEntityDao getTenantDisabledPermissionEntityDao()
Gets reference totenantDisabledPermissionEntityDao.
-
setTenantEntityDao
public void setTenantEntityDao(TenantEntityDao tenantEntityDao)
Sets reference totenantEntityDao.
-
getTenantEntityDao
public TenantEntityDao getTenantEntityDao()
Gets reference totenantEntityDao.
-
setTenantServerEntityDao
public void setTenantServerEntityDao(TenantServerEntityDao tenantServerEntityDao)
Sets reference totenantServerEntityDao.
-
getTenantServerEntityDao
public TenantServerEntityDao getTenantServerEntityDao()
Gets reference totenantServerEntityDao.
-
importTenant
@Transactional(rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.Tenant importTenant(InputStream in) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
importTenantin interfacecom.soffid.iam.service.TenantService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleImportTenant
protected abstract com.soffid.iam.api.Tenant handleImportTenant(InputStream in) throws Exception
- Throws:
Exception
-
create
@Transactional(rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.Tenant create(com.soffid.iam.api.Tenant tenant) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
createin interfacecom.soffid.iam.service.TenantService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleCreate
protected abstract com.soffid.iam.api.Tenant handleCreate(com.soffid.iam.api.Tenant tenant) throws Exception- Throws:
Exception
-
getMasterTenant
@Transactional(rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.Tenant getMasterTenant() throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getMasterTenantin interfacecom.soffid.iam.service.TenantService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetMasterTenant
protected abstract com.soffid.iam.api.Tenant handleGetMasterTenant() throws Exception- Throws:
Exception
-
getTenant
@Transactional(rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.Tenant getTenant(Long id) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getTenantin interfacecom.soffid.iam.service.TenantService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetTenant
protected abstract com.soffid.iam.api.Tenant handleGetTenant(Long id) throws Exception
- Throws:
Exception
-
getTenant
@Transactional(rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.Tenant getTenant(String name) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getTenantin interfacecom.soffid.iam.service.TenantService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetTenant
protected abstract com.soffid.iam.api.Tenant handleGetTenant(String name) throws Exception
- Throws:
Exception
-
update
@Transactional(rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.Tenant update(com.soffid.iam.api.Tenant tenant) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
updatein interfacecom.soffid.iam.service.TenantService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleUpdate
protected abstract com.soffid.iam.api.Tenant handleUpdate(com.soffid.iam.api.Tenant tenant) throws Exception- Throws:
Exception
-
listTenants
@Transactional(rollbackFor=java.lang.Exception.class) public Collection<com.soffid.iam.api.Tenant> listTenants() throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
listTenantsin interfacecom.soffid.iam.service.TenantService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleListTenants
protected abstract Collection<com.soffid.iam.api.Tenant> handleListTenants() throws Exception
- Throws:
Exception
-
find
@Transactional(rollbackFor=java.lang.Exception.class) public List<com.soffid.iam.api.Tenant> find(com.soffid.iam.api.TenantCriteria criteria) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findin interfacecom.soffid.iam.service.TenantService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFind
protected abstract List<com.soffid.iam.api.Tenant> handleFind(com.soffid.iam.api.TenantCriteria criteria) throws Exception
- Throws:
Exception
-
getDisabledPermissions
@Transactional(rollbackFor=java.lang.Exception.class) public List<String> getDisabledPermissions(com.soffid.iam.api.Tenant tenant) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getDisabledPermissionsin interfacecom.soffid.iam.service.TenantService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetDisabledPermissions
protected abstract List<String> handleGetDisabledPermissions(com.soffid.iam.api.Tenant tenant) throws Exception
- Throws:
Exception
-
getTenantServers
@Transactional(rollbackFor=java.lang.Exception.class) public List<String> getTenantServers(com.soffid.iam.api.Tenant tenant) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getTenantServersin interfacecom.soffid.iam.service.TenantService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetTenantServers
protected abstract List<String> handleGetTenantServers(com.soffid.iam.api.Tenant tenant) throws Exception
- Throws:
Exception
-
addTenantServer
@Transactional(rollbackFor=java.lang.Exception.class) public void addTenantServer(com.soffid.iam.api.Tenant tenant, String server) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
addTenantServerin interfacecom.soffid.iam.service.TenantService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleAddTenantServer
protected abstract void handleAddTenantServer(com.soffid.iam.api.Tenant tenant, String server) throws Exception- Throws:
Exception
-
disablePermission
@Transactional(rollbackFor=java.lang.Exception.class) public void disablePermission(com.soffid.iam.api.Tenant tenant, String permission) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
disablePermissionin interfacecom.soffid.iam.service.TenantService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleDisablePermission
protected abstract void handleDisablePermission(com.soffid.iam.api.Tenant tenant, String permission) throws Exception- Throws:
Exception
-
enablePermission
@Transactional(rollbackFor=java.lang.Exception.class) public void enablePermission(com.soffid.iam.api.Tenant tenant, String permission) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
enablePermissionin interfacecom.soffid.iam.service.TenantService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleEnablePermission
protected abstract void handleEnablePermission(com.soffid.iam.api.Tenant tenant, String permission) throws Exception- Throws:
Exception
-
remove
@Transactional(rollbackFor=java.lang.Exception.class) public void remove(com.soffid.iam.api.Tenant tenant) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
removein interfacecom.soffid.iam.service.TenantService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleRemove
protected abstract void handleRemove(com.soffid.iam.api.Tenant tenant) throws Exception- Throws:
Exception
-
removeTenantServer
@Transactional(rollbackFor=java.lang.Exception.class) public void removeTenantServer(com.soffid.iam.api.Tenant tenant, String server) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
removeTenantServerin interfacecom.soffid.iam.service.TenantService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleRemoveTenantServer
protected abstract void handleRemoveTenantServer(com.soffid.iam.api.Tenant tenant, String server) throws Exception- Throws:
Exception
-
exportTenant
@Transactional(rollbackFor=java.lang.Exception.class) public void exportTenant(com.soffid.iam.api.Tenant tenant, OutputStream out) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
exportTenantin interfacecom.soffid.iam.service.TenantService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleExportTenant
protected abstract void handleExportTenant(com.soffid.iam.api.Tenant tenant, OutputStream out) throws Exception- Throws:
Exception
-
getPrincipal
protected Principal getPrincipal()
Gets the currentprincipalif one has been set, otherwise returnsnull.- Returns:
- the current principal
-
-