Package com.soffid.iam.service.ejb
Class EntryPointServiceBean
- java.lang.Object
-
- org.springframework.ejb.support.AbstractStatelessSessionBean
-
- com.soffid.iam.service.ejb.EntryPointServiceBean
-
- All Implemented Interfaces:
com.soffid.iam.service.ejb.EntryPointService
,Serializable
,javax.ejb.EnterpriseBean
,javax.ejb.SessionBean
,org.springframework.ejb.support.SmartSessionBean
public class EntryPointServiceBean extends org.springframework.ejb.support.AbstractStatelessSessionBean implements com.soffid.iam.service.ejb.EntryPointService
- See Also:
com.soffid.iam.service.EntryPointService
,,es.caib.seycon.ng.servei.PuntEntradaService
,, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
BEAN_FACTORY_PATH_ENVIRONMENT_KEY
-
Constructor Summary
Constructors Constructor Description EntryPointServiceBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
applicationAccessTreeHasAnyACL(String codiUsuari)
boolean
canAdmin(com.soffid.iam.api.AccessTree puntEntrada)
boolean
canExecute(com.soffid.iam.api.AccessTree puntEntrada)
boolean
canQuery(com.soffid.iam.api.AccessTree puntEntrada)
boolean
canView(com.soffid.iam.api.AccessTree puntEntrada)
boolean
copyApplicationAccess(com.soffid.iam.api.AccessTree puntEntradaCopiar, com.soffid.iam.api.AccessTree puntEntradaMenuDesti)
boolean
copyApplicationAccessLink(com.soffid.iam.api.AccessTree puntEntradaCopiar, com.soffid.iam.api.AccessTree puntEntradaMenuDesti)
com.soffid.iam.api.AccessTree
create(com.soffid.iam.api.AccessTree puntEntrada)
com.soffid.iam.api.AccessTreeAuthorization
createAuthorization(com.soffid.iam.api.AccessTree puntEntrada, com.soffid.iam.api.AccessTreeAuthorization autoritzacio)
com.soffid.iam.api.AccessTreeExecution
createExecution(com.soffid.iam.api.AccessTree puntEntrada, com.soffid.iam.api.AccessTreeExecution execucio)
void
delete(com.soffid.iam.api.AccessTree puntEntrada)
void
deleteAuthorization(com.soffid.iam.api.AccessTree puntEntrada, com.soffid.iam.api.AccessTreeAuthorization autoritzacio)
void
deleteExecution(com.soffid.iam.api.AccessTree puntEntrada, com.soffid.iam.api.AccessTreeExecution execucio)
void
ejbCreate()
Initizlizes beenvoid
ejbRemove()
List<com.soffid.iam.api.AccessTree>
findAccessTreeByTextAndJsonQuery(String text, String jsonQuery, Integer start, Integer pageSize)
com.soffid.iam.api.AsyncList<com.soffid.iam.api.AccessTree>
findAccessTreeByTextAndJsonQueryAsync(String text, String jsonQuery)
Collection<com.soffid.iam.api.AccessTree>
findApplicationAccessByFilter(String nomPUE, String codiPUE, String codiAplicacio, String codiRol, String codiGrup, String codiUsuari)
com.soffid.iam.api.AccessTree
findApplicationAccessById(long id)
Collection<com.soffid.iam.api.AccessTree>
findChildren(com.soffid.iam.api.AccessTree puntEntrada)
Collection<com.soffid.iam.api.AccessTree>
findMenuChildren(com.soffid.iam.api.AccessTree puntEntrada)
com.soffid.iam.api.AccessTree
findRoot()
Collection<com.soffid.iam.api.Application>
getAllApplications(Boolean aplicacioBuida)
Collection<com.soffid.iam.api.AccessTreeExecutionType>
getAllMimeTypeExecution()
Collection<com.soffid.iam.api.AccessTreeAuthorization>
getAuthorizationsApplicationAcessTree(com.soffid.iam.api.AccessTree puntEntrada)
protected org.springframework.beans.factory.BeanFactory
getBeanFactory()
Collection<com.soffid.iam.api.AccessTreeExecution>
getExecutions(com.soffid.iam.api.AccessTree puntEntrada)
Collection<String>
getReverseApplicationAccessTree(com.soffid.iam.api.AccessTree puntEntrada)
String
getScopeForAddress(String address)
javax.ejb.SessionContext
getSessionContext()
boolean
isAuthorized(com.soffid.iam.api.AccessTree puntEntrada, String nivell)
boolean
isAuthorized(String codiUsuari, Long idPuntEntrada, String nivell)
boolean
moveApplicationAccessTreeMenu(com.soffid.iam.api.AccessTree puntEntradaMoure, com.soffid.iam.api.AccessTree puntEntradaMenuDesti)
protected void
onEjbCreate()
protected void
onEjbRemove()
boolean
reorderApplicationAccess(com.soffid.iam.api.AccessTree puntEntradaOrdenar, com.soffid.iam.api.AccessTree puntEntradaSeguent)
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.void
sortChildren(long entryPointId)
com.soffid.iam.api.AccessTree
update(com.soffid.iam.api.AccessTree puntEntrada)
com.soffid.iam.api.AccessTreeExecution
updateExecution(com.soffid.iam.api.AccessTree puntEntrada, com.soffid.iam.api.AccessTreeExecution execucio)
String
validateXMLApplicationAccess(com.soffid.iam.api.AccessTree puntEntrada)
-
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
-
canAdmin
@PermitAll public boolean canAdmin(com.soffid.iam.api.AccessTree puntEntrada) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
canAdmin
in interfacecom.soffid.iam.service.ejb.EntryPointService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
canExecute
@PermitAll public boolean canExecute(com.soffid.iam.api.AccessTree puntEntrada) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
canExecute
in interfacecom.soffid.iam.service.ejb.EntryPointService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
canQuery
@PermitAll public boolean canQuery(com.soffid.iam.api.AccessTree puntEntrada) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
canQuery
in interfacecom.soffid.iam.service.ejb.EntryPointService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
canView
@PermitAll public boolean canView(com.soffid.iam.api.AccessTree puntEntrada) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
canView
in interfacecom.soffid.iam.service.ejb.EntryPointService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
copyApplicationAccessLink
@PermitAll public boolean copyApplicationAccessLink(com.soffid.iam.api.AccessTree puntEntradaCopiar, com.soffid.iam.api.AccessTree puntEntradaMenuDesti) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
copyApplicationAccessLink
in interfacecom.soffid.iam.service.ejb.EntryPointService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
copyApplicationAccess
@PermitAll public boolean copyApplicationAccess(com.soffid.iam.api.AccessTree puntEntradaCopiar, com.soffid.iam.api.AccessTree puntEntradaMenuDesti) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
copyApplicationAccess
in interfacecom.soffid.iam.service.ejb.EntryPointService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
isAuthorized
@PermitAll public boolean isAuthorized(com.soffid.iam.api.AccessTree puntEntrada, String nivell) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
isAuthorized
in interfacecom.soffid.iam.service.ejb.EntryPointService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
isAuthorized
@PermitAll public boolean isAuthorized(String codiUsuari, Long idPuntEntrada, String nivell) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
isAuthorized
in interfacecom.soffid.iam.service.ejb.EntryPointService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
applicationAccessTreeHasAnyACL
@PermitAll public boolean applicationAccessTreeHasAnyACL(String codiUsuari) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
applicationAccessTreeHasAnyACL
in interfacecom.soffid.iam.service.ejb.EntryPointService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
moveApplicationAccessTreeMenu
@PermitAll public boolean moveApplicationAccessTreeMenu(com.soffid.iam.api.AccessTree puntEntradaMoure, com.soffid.iam.api.AccessTree puntEntradaMenuDesti) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
moveApplicationAccessTreeMenu
in interfacecom.soffid.iam.service.ejb.EntryPointService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
reorderApplicationAccess
@PermitAll public boolean reorderApplicationAccess(com.soffid.iam.api.AccessTree puntEntradaOrdenar, com.soffid.iam.api.AccessTree puntEntradaSeguent) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
reorderApplicationAccess
in interfacecom.soffid.iam.service.ejb.EntryPointService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
findAccessTreeByTextAndJsonQueryAsync
@PermitAll public com.soffid.iam.api.AsyncList<com.soffid.iam.api.AccessTree> findAccessTreeByTextAndJsonQueryAsync(String text, String jsonQuery) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findAccessTreeByTextAndJsonQueryAsync
in interfacecom.soffid.iam.service.ejb.EntryPointService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
createAuthorization
@PermitAll public com.soffid.iam.api.AccessTreeAuthorization createAuthorization(com.soffid.iam.api.AccessTree puntEntrada, com.soffid.iam.api.AccessTreeAuthorization autoritzacio) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
createAuthorization
in interfacecom.soffid.iam.service.ejb.EntryPointService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
createExecution
@PermitAll public com.soffid.iam.api.AccessTreeExecution createExecution(com.soffid.iam.api.AccessTree puntEntrada, com.soffid.iam.api.AccessTreeExecution execucio) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
createExecution
in interfacecom.soffid.iam.service.ejb.EntryPointService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
updateExecution
@PermitAll public com.soffid.iam.api.AccessTreeExecution updateExecution(com.soffid.iam.api.AccessTree puntEntrada, com.soffid.iam.api.AccessTreeExecution execucio) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
updateExecution
in interfacecom.soffid.iam.service.ejb.EntryPointService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
create
@PermitAll public com.soffid.iam.api.AccessTree create(com.soffid.iam.api.AccessTree puntEntrada) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
create
in interfacecom.soffid.iam.service.ejb.EntryPointService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
findApplicationAccessById
@PermitAll public com.soffid.iam.api.AccessTree findApplicationAccessById(long id) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findApplicationAccessById
in interfacecom.soffid.iam.service.ejb.EntryPointService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
findRoot
@PermitAll public com.soffid.iam.api.AccessTree findRoot() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findRoot
in interfacecom.soffid.iam.service.ejb.EntryPointService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
update
@PermitAll public com.soffid.iam.api.AccessTree update(com.soffid.iam.api.AccessTree puntEntrada) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
update
in interfacecom.soffid.iam.service.ejb.EntryPointService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
getScopeForAddress
@PermitAll public String getScopeForAddress(String address) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getScopeForAddress
in interfacecom.soffid.iam.service.ejb.EntryPointService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
validateXMLApplicationAccess
@PermitAll public String validateXMLApplicationAccess(com.soffid.iam.api.AccessTree puntEntrada) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
validateXMLApplicationAccess
in interfacecom.soffid.iam.service.ejb.EntryPointService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
findChildren
@PermitAll public Collection<com.soffid.iam.api.AccessTree> findChildren(com.soffid.iam.api.AccessTree puntEntrada) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findChildren
in interfacecom.soffid.iam.service.ejb.EntryPointService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
findMenuChildren
@PermitAll public Collection<com.soffid.iam.api.AccessTree> findMenuChildren(com.soffid.iam.api.AccessTree puntEntrada) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findMenuChildren
in interfacecom.soffid.iam.service.ejb.EntryPointService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
findApplicationAccessByFilter
@PermitAll public Collection<com.soffid.iam.api.AccessTree> findApplicationAccessByFilter(String nomPUE, String codiPUE, String codiAplicacio, String codiRol, String codiGrup, String codiUsuari) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findApplicationAccessByFilter
in interfacecom.soffid.iam.service.ejb.EntryPointService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
getAllApplications
@PermitAll public Collection<com.soffid.iam.api.Application> getAllApplications(Boolean aplicacioBuida) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getAllApplications
in interfacecom.soffid.iam.service.ejb.EntryPointService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
getAllMimeTypeExecution
@PermitAll public Collection<com.soffid.iam.api.AccessTreeExecutionType> getAllMimeTypeExecution() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getAllMimeTypeExecution
in interfacecom.soffid.iam.service.ejb.EntryPointService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
getReverseApplicationAccessTree
@PermitAll public Collection<String> getReverseApplicationAccessTree(com.soffid.iam.api.AccessTree puntEntrada) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getReverseApplicationAccessTree
in interfacecom.soffid.iam.service.ejb.EntryPointService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
getAuthorizationsApplicationAcessTree
@PermitAll public Collection<com.soffid.iam.api.AccessTreeAuthorization> getAuthorizationsApplicationAcessTree(com.soffid.iam.api.AccessTree puntEntrada) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getAuthorizationsApplicationAcessTree
in interfacecom.soffid.iam.service.ejb.EntryPointService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
getExecutions
@PermitAll public Collection<com.soffid.iam.api.AccessTreeExecution> getExecutions(com.soffid.iam.api.AccessTree puntEntrada) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getExecutions
in interfacecom.soffid.iam.service.ejb.EntryPointService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
findAccessTreeByTextAndJsonQuery
@PermitAll public List<com.soffid.iam.api.AccessTree> findAccessTreeByTextAndJsonQuery(String text, String jsonQuery, Integer start, Integer pageSize) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findAccessTreeByTextAndJsonQuery
in interfacecom.soffid.iam.service.ejb.EntryPointService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
delete
@PermitAll public void delete(com.soffid.iam.api.AccessTree puntEntrada) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
delete
in interfacecom.soffid.iam.service.ejb.EntryPointService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
deleteAuthorization
@PermitAll public void deleteAuthorization(com.soffid.iam.api.AccessTree puntEntrada, com.soffid.iam.api.AccessTreeAuthorization autoritzacio) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
deleteAuthorization
in interfacecom.soffid.iam.service.ejb.EntryPointService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
deleteExecution
@PermitAll public void deleteExecution(com.soffid.iam.api.AccessTree puntEntrada, com.soffid.iam.api.AccessTreeExecution execucio) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
deleteExecution
in interfacecom.soffid.iam.service.ejb.EntryPointService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
sortChildren
@PermitAll public void sortChildren(long entryPointId) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
sortChildren
in interfacecom.soffid.iam.service.ejb.EntryPointService
- 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()
-
-