Package com.soffid.iam.service
Class EntryPointServiceImpl
- java.lang.Object
-
- com.soffid.iam.service.EntryPointServiceBase
-
- com.soffid.iam.service.EntryPointServiceImpl
-
- All Implemented Interfaces:
com.soffid.iam.service.EntryPointService
public class EntryPointServiceImpl extends EntryPointServiceBase
- See Also:
PuntEntradaService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classEntryPointServiceImpl.SchemaLoader
-
Constructor Summary
Constructors Constructor Description EntryPointServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanView(EntryPointEntity puntEntrada)protected EntryPointIconEntitycreateIcona(byte[] b)byte[]downloadDefaultIcon(EntryPointExecutableEntity entity)byte[]downloadIcon(String icon)protected StringgetCacheKey(com.soffid.iam.common.security.SoffidPrincipal p)LongguessGranteeId(com.soffid.iam.api.AccessTreeAuthorization autoritzacio)StringguessIconName(EntryPointExecutableEntity entity)protected booleanhandleApplicationAccessTreeHasAnyACL(String codiUsuari)protected booleanhandleCanAdmin(com.soffid.iam.api.AccessTree puntEntrada)protected booleanhandleCanExecute(com.soffid.iam.api.AccessTree puntEntrada)protected booleanhandleCanQuery(com.soffid.iam.api.AccessTree puntEntrada)protected booleanhandleCanView(com.soffid.iam.api.AccessTree puntEntrada)protected booleanhandleCopyApplicationAccess(com.soffid.iam.api.AccessTree puntEntradaCopiar, com.soffid.iam.api.AccessTree puntEntradaMenuDesti)protected booleanhandleCopyApplicationAccessLink(com.soffid.iam.api.AccessTree puntEntradaCopiar, com.soffid.iam.api.AccessTree puntEntradaMenuDesti)protected com.soffid.iam.api.AccessTreehandleCreate(com.soffid.iam.api.AccessTree puntEntrada)protected com.soffid.iam.api.AccessTreeAuthorizationhandleCreateAuthorization(com.soffid.iam.api.AccessTree puntEntrada, com.soffid.iam.api.AccessTreeAuthorization autoritzacio)protected com.soffid.iam.api.AccessTreeExecutionhandleCreateExecution(com.soffid.iam.api.AccessTree puntEntrada, com.soffid.iam.api.AccessTreeExecution execucio)protected voidhandleDelete(com.soffid.iam.api.AccessTree puntEntrada)protected voidhandleDeleteAuthorization(com.soffid.iam.api.AccessTree puntEntrada, com.soffid.iam.api.AccessTreeAuthorization autoritzacio)protected voidhandleDeleteExecution(com.soffid.iam.api.AccessTree puntEntrada, com.soffid.iam.api.AccessTreeExecution execucio)protected List<com.soffid.iam.api.AccessTree>handleFindAccessTreeByTextAndJsonQuery(String text, String jsonQuery, Integer start, Integer pageSize)protected com.soffid.iam.api.AsyncList<com.soffid.iam.api.AccessTree>handleFindAccessTreeByTextAndJsonQueryAsync(String text, String jsonQuery)protected Collection<com.soffid.iam.api.AccessTree>handleFindApplicationAccessByFilter(String nomPUE, String codiPUE, String codiAplicacio, String codiRol, String codiGrup, String codiUsuari)protected com.soffid.iam.api.AccessTreehandleFindApplicationAccessById(long id)protected Collection<com.soffid.iam.api.AccessTree>handleFindChildren(com.soffid.iam.api.AccessTree puntEntrada)protected Collection<com.soffid.iam.api.AccessTree>handleFindMenuChildren(com.soffid.iam.api.AccessTree puntEntrada)protected com.soffid.iam.api.AccessTreehandleFindRoot()protected Collection<com.soffid.iam.api.Application>handleGetAllApplications(Boolean aplicacioBuida)protected Collection<com.soffid.iam.api.AccessTreeExecutionType>handleGetAllMimeTypeExecution()protected Collection<com.soffid.iam.api.AccessTreeAuthorization>handleGetAuthorizationsApplicationAcessTree(com.soffid.iam.api.AccessTree puntEntrada)protected Collection<com.soffid.iam.api.AccessTreeExecution>handleGetExecutions(com.soffid.iam.api.AccessTree puntEntrada)protected Collection<String>handleGetReverseApplicationAccessTree(com.soffid.iam.api.AccessTree puntEntrada)protected StringhandleGetScopeForAddress(String address)protected booleanhandleIsAuthorized(com.soffid.iam.api.AccessTree puntEntrada, String nivell)protected booleanhandleIsAuthorized(String codiUsuari, Long idPuntEntrada, String nivell)Fem un mètode especific per a l'accés des de la Intranet (!!) - s'ha de probarprotected booleanhandleMoveApplicationAccessTreeMenu(com.soffid.iam.api.AccessTree puntEntradaMoure, com.soffid.iam.api.AccessTree puntEntradaMenuDesti)protected booleanhandleReorderApplicationAccess(com.soffid.iam.api.AccessTree puntEntradaOrdenar, com.soffid.iam.api.AccessTree puntEntradaSeguent)protected voidhandleSortChildren(long entryPointId)protected com.soffid.iam.api.AccessTreehandleUpdate(com.soffid.iam.api.AccessTree puntEntrada)protected com.soffid.iam.api.AccessTreeExecutionhandleUpdateExecution(com.soffid.iam.api.AccessTree puntEntrada, com.soffid.iam.api.AccessTreeExecution execucio)protected StringhandleValidateXMLApplicationAccess(com.soffid.iam.api.AccessTree puntEntrada)protected booleanisAuthorized(EntryPointEntity entry, String level)-
Methods inherited from class com.soffid.iam.service.EntryPointServiceBase
applicationAccessTreeHasAnyACL, canAdmin, canExecute, canQuery, canView, copyApplicationAccess, copyApplicationAccessLink, create, createAuthorization, createExecution, delete, deleteAuthorization, deleteExecution, findAccessTreeByTextAndJsonQuery, findAccessTreeByTextAndJsonQueryAsync, findApplicationAccessByFilter, findApplicationAccessById, findChildren, findMenuChildren, findRoot, getAccountEntityDao, getAccountService, getAllApplications, getAllMimeTypeExecution, getApplicationService, getAsyncRunnerService, getAuditEntityDao, getAuthorizationsApplicationAcessTree, getDispatcherService, getEntryPointAccountEntityDao, getEntryPointEntityDao, getEntryPointExecutableEntityDao, getEntryPointExecutionTypeEntityDao, getEntryPointGroupEntityDao, getEntryPointIconEntityDao, getEntryPointRoleEntityDao, getEntryPointTreeEntityDao, getEntryPointUserEntityDao, getExecutions, getGroupEntityDao, getHostEntryPointEntityDao, getInformationSystemEntityDao, getNetworkService, getPrincipal, getReverseApplicationAccessTree, getRoleEntityDao, getScopeForAddress, getUserEntityDao, getUserService, isAuthorized, isAuthorized, moveApplicationAccessTreeMenu, reorderApplicationAccess, setAccountEntityDao, setAccountService, setApplicationService, setAsyncRunnerService, setAuditEntityDao, setDispatcherService, setEntryPointAccountEntityDao, setEntryPointEntityDao, setEntryPointExecutableEntityDao, setEntryPointExecutionTypeEntityDao, setEntryPointGroupEntityDao, setEntryPointIconEntityDao, setEntryPointRoleEntityDao, setEntryPointTreeEntityDao, setEntryPointUserEntityDao, setGroupEntityDao, setHostEntryPointEntityDao, setInformationSystemEntityDao, setNetworkService, setRoleEntityDao, setUserEntityDao, setUserService, sortChildren, update, updateExecution, validateXMLApplicationAccess
-
-
-
-
Method Detail
-
handleCreate
protected com.soffid.iam.api.AccessTree handleCreate(com.soffid.iam.api.AccessTree puntEntrada) throws Exception- Specified by:
handleCreatein classEntryPointServiceBase- Throws:
Exception- See Also:
PuntEntradaService.create(es.caib.seycon.ng.comu.PuntEntrada)
-
handleUpdate
protected com.soffid.iam.api.AccessTree handleUpdate(com.soffid.iam.api.AccessTree puntEntrada) throws Exception- Specified by:
handleUpdatein classEntryPointServiceBase- Throws:
Exception- See Also:
PuntEntradaService.update(es.caib.seycon.ng.comu.PuntEntrada)
-
handleDelete
protected void handleDelete(com.soffid.iam.api.AccessTree puntEntrada) throws Exception- Specified by:
handleDeletein classEntryPointServiceBase- Throws:
Exception- See Also:
PuntEntradaService.delete(es.caib.seycon.ng.comu.PuntEntrada)
-
handleFindRoot
protected com.soffid.iam.api.AccessTree handleFindRoot() throws Exception- Specified by:
handleFindRootin classEntryPointServiceBase- Throws:
Exception- See Also:
PuntEntradaService.findRoot()
-
handleFindChildren
protected Collection<com.soffid.iam.api.AccessTree> handleFindChildren(com.soffid.iam.api.AccessTree puntEntrada) throws Exception
- Specified by:
handleFindChildrenin classEntryPointServiceBase- Throws:
Exception- See Also:
PuntEntradaService.findChildren(es.caib.seycon.ng.comu.PuntEntrada)
-
handleGetAllMimeTypeExecution
protected Collection<com.soffid.iam.api.AccessTreeExecutionType> handleGetAllMimeTypeExecution() throws Exception
- Specified by:
handleGetAllMimeTypeExecutionin classEntryPointServiceBase- Throws:
Exception
-
handleGetAllApplications
protected Collection<com.soffid.iam.api.Application> handleGetAllApplications(Boolean aplicacioBuida) throws Exception
- Specified by:
handleGetAllApplicationsin classEntryPointServiceBase- Throws:
Exception
-
handleGetAuthorizationsApplicationAcessTree
protected Collection<com.soffid.iam.api.AccessTreeAuthorization> handleGetAuthorizationsApplicationAcessTree(com.soffid.iam.api.AccessTree puntEntrada) throws Exception
- Specified by:
handleGetAuthorizationsApplicationAcessTreein classEntryPointServiceBase- Throws:
Exception
-
handleCanAdmin
protected boolean handleCanAdmin(com.soffid.iam.api.AccessTree puntEntrada) throws Exception- Specified by:
handleCanAdminin classEntryPointServiceBase- Throws:
Exception
-
handleCanExecute
protected boolean handleCanExecute(com.soffid.iam.api.AccessTree puntEntrada) throws Exception- Specified by:
handleCanExecutein classEntryPointServiceBase- Throws:
Exception
-
handleCanQuery
protected boolean handleCanQuery(com.soffid.iam.api.AccessTree puntEntrada) throws Exception- Specified by:
handleCanQueryin classEntryPointServiceBase- Throws:
Exception
-
handleCanView
protected boolean handleCanView(com.soffid.iam.api.AccessTree puntEntrada) throws Exception- Specified by:
handleCanViewin classEntryPointServiceBase- Throws:
Exception
-
canView
protected boolean canView(EntryPointEntity puntEntrada) throws Exception
- Throws:
Exception
-
handleIsAuthorized
protected boolean handleIsAuthorized(com.soffid.iam.api.AccessTree puntEntrada, String nivell) throws Exception- Specified by:
handleIsAuthorizedin classEntryPointServiceBase- Throws:
Exception
-
isAuthorized
protected boolean isAuthorized(EntryPointEntity entry, String level) throws Exception
- Throws:
Exception
-
getCacheKey
protected String getCacheKey(com.soffid.iam.common.security.SoffidPrincipal p)
-
handleReorderApplicationAccess
protected boolean handleReorderApplicationAccess(com.soffid.iam.api.AccessTree puntEntradaOrdenar, com.soffid.iam.api.AccessTree puntEntradaSeguent) throws Exception- Specified by:
handleReorderApplicationAccessin classEntryPointServiceBase- Throws:
Exception
-
handleMoveApplicationAccessTreeMenu
protected boolean handleMoveApplicationAccessTreeMenu(com.soffid.iam.api.AccessTree puntEntradaMoure, com.soffid.iam.api.AccessTree puntEntradaMenuDesti) throws Exception- Specified by:
handleMoveApplicationAccessTreeMenuin classEntryPointServiceBase- Throws:
Exception
-
handleCopyApplicationAccess
protected boolean handleCopyApplicationAccess(com.soffid.iam.api.AccessTree puntEntradaCopiar, com.soffid.iam.api.AccessTree puntEntradaMenuDesti) throws Exception- Specified by:
handleCopyApplicationAccessin classEntryPointServiceBase- Throws:
Exception
-
handleCopyApplicationAccessLink
protected boolean handleCopyApplicationAccessLink(com.soffid.iam.api.AccessTree puntEntradaCopiar, com.soffid.iam.api.AccessTree puntEntradaMenuDesti) throws Exception- Specified by:
handleCopyApplicationAccessLinkin classEntryPointServiceBase- Throws:
Exception
-
handleCreateAuthorization
protected com.soffid.iam.api.AccessTreeAuthorization handleCreateAuthorization(com.soffid.iam.api.AccessTree puntEntrada, com.soffid.iam.api.AccessTreeAuthorization autoritzacio) throws Exception- Specified by:
handleCreateAuthorizationin classEntryPointServiceBase- Throws:
Exception
-
guessGranteeId
public Long guessGranteeId(com.soffid.iam.api.AccessTreeAuthorization autoritzacio) throws es.caib.seycon.ng.exception.InternalErrorException
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleDeleteAuthorization
protected void handleDeleteAuthorization(com.soffid.iam.api.AccessTree puntEntrada, com.soffid.iam.api.AccessTreeAuthorization autoritzacio) throws Exception- Specified by:
handleDeleteAuthorizationin classEntryPointServiceBase- Throws:
Exception
-
handleCreateExecution
protected com.soffid.iam.api.AccessTreeExecution handleCreateExecution(com.soffid.iam.api.AccessTree puntEntrada, com.soffid.iam.api.AccessTreeExecution execucio) throws Exception- Specified by:
handleCreateExecutionin classEntryPointServiceBase- Throws:
Exception
-
guessIconName
public String guessIconName(EntryPointExecutableEntity entity) throws IOException, MalformedURLException, UnsupportedEncodingException
-
downloadDefaultIcon
public byte[] downloadDefaultIcon(EntryPointExecutableEntity entity) throws IOException, MalformedURLException, UnsupportedEncodingException
-
downloadIcon
public byte[] downloadIcon(String icon) throws IOException, MalformedURLException, UnsupportedEncodingException
-
handleDeleteExecution
protected void handleDeleteExecution(com.soffid.iam.api.AccessTree puntEntrada, com.soffid.iam.api.AccessTreeExecution execucio) throws Exception- Specified by:
handleDeleteExecutionin classEntryPointServiceBase- Throws:
Exception
-
handleUpdateExecution
protected com.soffid.iam.api.AccessTreeExecution handleUpdateExecution(com.soffid.iam.api.AccessTree puntEntrada, com.soffid.iam.api.AccessTreeExecution execucio) throws Exception- Specified by:
handleUpdateExecutionin classEntryPointServiceBase- Throws:
Exception
-
handleGetExecutions
protected Collection<com.soffid.iam.api.AccessTreeExecution> handleGetExecutions(com.soffid.iam.api.AccessTree puntEntrada) throws Exception
- Specified by:
handleGetExecutionsin classEntryPointServiceBase- Throws:
Exception
-
handleFindMenuChildren
protected Collection<com.soffid.iam.api.AccessTree> handleFindMenuChildren(com.soffid.iam.api.AccessTree puntEntrada) throws Exception
- Specified by:
handleFindMenuChildrenin classEntryPointServiceBase- Throws:
Exception
-
handleValidateXMLApplicationAccess
protected String handleValidateXMLApplicationAccess(com.soffid.iam.api.AccessTree puntEntrada) throws Exception
- Specified by:
handleValidateXMLApplicationAccessin classEntryPointServiceBase- Throws:
Exception
-
handleFindApplicationAccessByFilter
protected Collection<com.soffid.iam.api.AccessTree> handleFindApplicationAccessByFilter(String nomPUE, String codiPUE, String codiAplicacio, String codiRol, String codiGrup, String codiUsuari) throws Exception
- Specified by:
handleFindApplicationAccessByFilterin classEntryPointServiceBase- Throws:
Exception
-
handleGetReverseApplicationAccessTree
protected Collection<String> handleGetReverseApplicationAccessTree(com.soffid.iam.api.AccessTree puntEntrada) throws Exception
- Specified by:
handleGetReverseApplicationAccessTreein classEntryPointServiceBase- Throws:
Exception
-
handleIsAuthorized
protected boolean handleIsAuthorized(String codiUsuari, Long idPuntEntrada, String nivell) throws Exception
Fem un mètode especific per a l'accés des de la Intranet (!!) - s'ha de probar- Specified by:
handleIsAuthorizedin classEntryPointServiceBase- Parameters:
idPuntEntrada-nivell-- Returns:
- Throws:
Exception
-
handleApplicationAccessTreeHasAnyACL
protected boolean handleApplicationAccessTreeHasAnyACL(String codiUsuari) throws Exception
- Specified by:
handleApplicationAccessTreeHasAnyACLin classEntryPointServiceBase- Throws:
Exception
-
handleFindApplicationAccessById
protected com.soffid.iam.api.AccessTree handleFindApplicationAccessById(long id) throws Exception- Specified by:
handleFindApplicationAccessByIdin classEntryPointServiceBase- Throws:
Exception
-
createIcona
protected EntryPointIconEntity createIcona(byte[] b) throws es.caib.seycon.ng.exception.InternalErrorException
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleSortChildren
protected void handleSortChildren(long entryPointId) throws Exception- Specified by:
handleSortChildrenin classEntryPointServiceBase- Throws:
Exception
-
handleGetScopeForAddress
protected String handleGetScopeForAddress(String address) throws Exception
- Specified by:
handleGetScopeForAddressin classEntryPointServiceBase- Throws:
Exception
-
handleFindAccessTreeByTextAndJsonQueryAsync
protected com.soffid.iam.api.AsyncList<com.soffid.iam.api.AccessTree> handleFindAccessTreeByTextAndJsonQueryAsync(String text, String jsonQuery) throws Exception
- Specified by:
handleFindAccessTreeByTextAndJsonQueryAsyncin classEntryPointServiceBase- Throws:
Exception
-
handleFindAccessTreeByTextAndJsonQuery
protected List<com.soffid.iam.api.AccessTree> handleFindAccessTreeByTextAndJsonQuery(String text, String jsonQuery, Integer start, Integer pageSize) throws Exception
- Specified by:
handleFindAccessTreeByTextAndJsonQueryin classEntryPointServiceBase- Throws:
Exception
-
-