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 StringBEAN_FACTORY_PATH_ENVIRONMENT_KEY
-
Constructor Summary
Constructors Constructor Description TenantServiceBean()
-
Method Summary
All Methods Instance 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)voidejbCreate()Initizlizes beenvoidejbRemove()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)protected org.springframework.beans.factory.BeanFactorygetBeanFactory()List<String>getDisabledPermissions(com.soffid.iam.api.Tenant tenant)com.soffid.iam.api.TenantgetMasterTenant()javax.ejb.SessionContextgetSessionContext()com.soffid.iam.api.TenantgetTenant(Long id)com.soffid.iam.api.TenantgetTenant(String name)List<String>getTenantServers(com.soffid.iam.api.Tenant tenant)com.soffid.iam.api.TenantimportTenant(InputStream in)Collection<com.soffid.iam.api.Tenant>listTenants()protected voidonEjbCreate()protected voidonEjbRemove()voidremove(com.soffid.iam.api.Tenant tenant)voidremoveTenantServer(com.soffid.iam.api.Tenant tenant, String server)voidsetBeanFactoryLocator(org.springframework.beans.factory.access.BeanFactoryLocator arg0)voidsetBeanFactoryLocatorKey(String arg0)voidsetSessionContext(javax.ejb.SessionContext sessionContext)Override default BeanFactoryLocator implementation to provide singleton loading of the application context Bean factory.com.soffid.iam.api.Tenantupdate(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:
importTenantin 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:
createin 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:
getMasterTenantin 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:
getTenantin 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:
getTenantin 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:
updatein 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:
listTenantsin 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:
findin 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:
getDisabledPermissionsin 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:
getTenantServersin 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:
addTenantServerin 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:
disablePermissionin 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:
enablePermissionin 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:
removein 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:
removeTenantServerin 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:
exportTenantin 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:
ejbCreatein classorg.springframework.ejb.support.AbstractStatelessSessionBean- Throws:
javax.ejb.CreateException- See Also:
AbstractStatelessSessionBean.onEjbCreate()
-
onEjbCreate
protected void onEjbCreate()
- Specified by:
onEjbCreatein 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:
setSessionContextin interfacejavax.ejb.SessionBean- See Also:
SessionBean.setSessionContext(javax.ejb.SessionContext)
-
getSessionContext
public final javax.ejb.SessionContext getSessionContext()
- Specified by:
getSessionContextin 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()
-
-