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 void
addTenantServer(com.soffid.iam.api.Tenant tenant, String server)
com.soffid.iam.api.Tenant
create(com.soffid.iam.api.Tenant tenant)
void
disablePermission(com.soffid.iam.api.Tenant tenant, String permission)
void
enablePermission(com.soffid.iam.api.Tenant tenant, String permission)
void
exportTenant(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.ApplicationBootService
getApplicationBootService()
Gets reference toapplicationBootService
.List<String>
getDisabledPermissions(com.soffid.iam.api.Tenant tenant)
com.soffid.iam.api.Tenant
getMasterTenant()
protected Principal
getPrincipal()
Gets the currentprincipal
if one has been set, otherwise returnsnull
.ServerEntityDao
getServerEntityDao()
Gets reference toserverEntityDao
.com.soffid.iam.api.Tenant
getTenant(Long id)
com.soffid.iam.api.Tenant
getTenant(String name)
TenantDisabledPermissionEntityDao
getTenantDisabledPermissionEntityDao()
Gets reference totenantDisabledPermissionEntityDao
.TenantEntityDao
getTenantEntityDao()
Gets reference totenantEntityDao
.TenantServerEntityDao
getTenantServerEntityDao()
Gets reference totenantServerEntityDao
.List<String>
getTenantServers(com.soffid.iam.api.Tenant tenant)
protected abstract void
handleAddTenantServer(com.soffid.iam.api.Tenant tenant, String server)
protected abstract com.soffid.iam.api.Tenant
handleCreate(com.soffid.iam.api.Tenant tenant)
protected abstract void
handleDisablePermission(com.soffid.iam.api.Tenant tenant, String permission)
protected abstract void
handleEnablePermission(com.soffid.iam.api.Tenant tenant, String permission)
protected abstract void
handleExportTenant(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.Tenant
handleGetMasterTenant()
protected abstract com.soffid.iam.api.Tenant
handleGetTenant(Long id)
protected abstract com.soffid.iam.api.Tenant
handleGetTenant(String name)
protected abstract List<String>
handleGetTenantServers(com.soffid.iam.api.Tenant tenant)
protected abstract com.soffid.iam.api.Tenant
handleImportTenant(InputStream in)
protected abstract Collection<com.soffid.iam.api.Tenant>
handleListTenants()
protected abstract void
handleRemove(com.soffid.iam.api.Tenant tenant)
protected abstract void
handleRemoveTenantServer(com.soffid.iam.api.Tenant tenant, String server)
protected abstract com.soffid.iam.api.Tenant
handleUpdate(com.soffid.iam.api.Tenant tenant)
com.soffid.iam.api.Tenant
importTenant(InputStream in)
Collection<com.soffid.iam.api.Tenant>
listTenants()
void
remove(com.soffid.iam.api.Tenant tenant)
void
removeTenantServer(com.soffid.iam.api.Tenant tenant, String server)
void
setApplicationBootService(com.soffid.iam.service.ApplicationBootService applicationBootService)
Sets reference toapplicationBootService
.void
setServerEntityDao(ServerEntityDao serverEntityDao)
Sets reference toserverEntityDao
.void
setTenantDisabledPermissionEntityDao(TenantDisabledPermissionEntityDao tenantDisabledPermissionEntityDao)
Sets reference totenantDisabledPermissionEntityDao
.void
setTenantEntityDao(TenantEntityDao tenantEntityDao)
Sets reference totenantEntityDao
.void
setTenantServerEntityDao(TenantServerEntityDao tenantServerEntityDao)
Sets reference totenantServerEntityDao
.com.soffid.iam.api.Tenant
update(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:
importTenant
in 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:
create
in 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:
getMasterTenant
in 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:
getTenant
in 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:
getTenant
in 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:
update
in 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:
listTenants
in 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:
find
in 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:
getDisabledPermissions
in 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:
getTenantServers
in 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:
addTenantServer
in 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:
disablePermission
in 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:
enablePermission
in 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:
remove
in 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:
removeTenantServer
in 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:
exportTenant
in 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 currentprincipal
if one has been set, otherwise returnsnull
.- Returns:
- the current principal
-
-