Package com.soffid.iam.service.ejb
Class TenantServiceBean
- java.lang.Object
-
- org.springframework.ejb.support.AbstractStatelessSessionBean
-
- com.soffid.iam.service.ejb.TenantServiceBean
-
- All Implemented Interfaces:
com.soffid.iam.service.ejb.TenantService
,Serializable
,javax.ejb.EnterpriseBean
,javax.ejb.SessionBean
,org.springframework.ejb.support.SmartSessionBean
public class TenantServiceBean extends org.springframework.ejb.support.AbstractStatelessSessionBean implements com.soffid.iam.service.ejb.TenantService
- See Also:
com.soffid.iam.service.TenantService
,,com.soffid.iam.service.TenantService
,, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
BEAN_FACTORY_PATH_ENVIRONMENT_KEY
-
Constructor Summary
Constructors Constructor Description TenantServiceBean()
-
Method Summary
All Methods Instance 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
ejbCreate()
Initizlizes beenvoid
ejbRemove()
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)
protected org.springframework.beans.factory.BeanFactory
getBeanFactory()
List<String>
getDisabledPermissions(com.soffid.iam.api.Tenant tenant)
com.soffid.iam.api.Tenant
getMasterTenant()
javax.ejb.SessionContext
getSessionContext()
com.soffid.iam.api.Tenant
getTenant(Long id)
com.soffid.iam.api.Tenant
getTenant(String name)
List<String>
getTenantServers(com.soffid.iam.api.Tenant tenant)
com.soffid.iam.api.Tenant
importTenant(InputStream in)
Collection<com.soffid.iam.api.Tenant>
listTenants()
protected void
onEjbCreate()
protected void
onEjbRemove()
void
remove(com.soffid.iam.api.Tenant tenant)
void
removeTenantServer(com.soffid.iam.api.Tenant tenant, String server)
void
setBeanFactoryLocator(org.springframework.beans.factory.access.BeanFactoryLocator arg0)
void
setBeanFactoryLocatorKey(String arg0)
void
setSessionContext(javax.ejb.SessionContext sessionContext)
Override default BeanFactoryLocator implementation to provide singleton loading of the application context Bean factory.com.soffid.iam.api.Tenant
update(com.soffid.iam.api.Tenant tenant)
-
Methods inherited from class org.springframework.ejb.support.AbstractStatelessSessionBean
ejbActivate, ejbPassivate
-
-
-
-
Field Detail
-
BEAN_FACTORY_PATH_ENVIRONMENT_KEY
public static final String BEAN_FACTORY_PATH_ENVIRONMENT_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
importTenant
@PermitAll public com.soffid.iam.api.Tenant importTenant(InputStream in) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
importTenant
in interfacecom.soffid.iam.service.ejb.TenantService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
create
@PermitAll 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.ejb.TenantService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
getMasterTenant
@PermitAll public com.soffid.iam.api.Tenant getMasterTenant() throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getMasterTenant
in interfacecom.soffid.iam.service.ejb.TenantService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
getTenant
@PermitAll public com.soffid.iam.api.Tenant getTenant(Long id) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getTenant
in interfacecom.soffid.iam.service.ejb.TenantService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
getTenant
@PermitAll public com.soffid.iam.api.Tenant getTenant(String name) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getTenant
in interfacecom.soffid.iam.service.ejb.TenantService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
update
@PermitAll 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.ejb.TenantService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
listTenants
@PermitAll public Collection<com.soffid.iam.api.Tenant> listTenants() throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
listTenants
in interfacecom.soffid.iam.service.ejb.TenantService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
find
@PermitAll 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.ejb.TenantService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
getDisabledPermissions
@PermitAll 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.ejb.TenantService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
getTenantServers
@PermitAll 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.ejb.TenantService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
addTenantServer
@PermitAll 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.ejb.TenantService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
disablePermission
@PermitAll 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.ejb.TenantService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
enablePermission
@PermitAll 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.ejb.TenantService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
remove
@PermitAll public void remove(com.soffid.iam.api.Tenant tenant) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
remove
in interfacecom.soffid.iam.service.ejb.TenantService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
removeTenantServer
@PermitAll 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.ejb.TenantService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
exportTenant
@PermitAll 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.ejb.TenantService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
ejbCreate
@PostConstruct public void ejbCreate() throws javax.ejb.CreateException
Initizlizes been- Overrides:
ejbCreate
in classorg.springframework.ejb.support.AbstractStatelessSessionBean
- Throws:
javax.ejb.CreateException
- See Also:
AbstractStatelessSessionBean.onEjbCreate()
-
onEjbCreate
protected void onEjbCreate()
- Specified by:
onEjbCreate
in classorg.springframework.ejb.support.AbstractStatelessSessionBean
-
setSessionContext
public void setSessionContext(javax.ejb.SessionContext sessionContext)
Override default BeanFactoryLocator implementation to provide singleton loading of the application context Bean factory.- Specified by:
setSessionContext
in interfacejavax.ejb.SessionBean
- See Also:
SessionBean.setSessionContext(javax.ejb.SessionContext)
-
getSessionContext
public final javax.ejb.SessionContext getSessionContext()
- Specified by:
getSessionContext
in interfaceorg.springframework.ejb.support.SmartSessionBean
-
setBeanFactoryLocator
public void setBeanFactoryLocator(org.springframework.beans.factory.access.BeanFactoryLocator arg0)
-
setBeanFactoryLocatorKey
public void setBeanFactoryLocatorKey(String arg0)
-
getBeanFactory
protected org.springframework.beans.factory.BeanFactory getBeanFactory()
-
ejbRemove
public void ejbRemove()
-
onEjbRemove
protected void onEjbRemove()
-
-