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 class
EntryPointServiceImpl.SchemaLoader
-
Constructor Summary
Constructors Constructor Description EntryPointServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canView(EntryPointEntity puntEntrada)
protected EntryPointIconEntity
createIcona(byte[] b)
byte[]
downloadDefaultIcon(EntryPointExecutableEntity entity)
byte[]
downloadIcon(String icon)
protected String
getCacheKey(com.soffid.iam.common.security.SoffidPrincipal p)
Long
guessGranteeId(com.soffid.iam.api.AccessTreeAuthorization autoritzacio)
String
guessIconName(EntryPointExecutableEntity entity)
protected boolean
handleApplicationAccessTreeHasAnyACL(String codiUsuari)
protected boolean
handleCanAdmin(com.soffid.iam.api.AccessTree puntEntrada)
protected boolean
handleCanExecute(com.soffid.iam.api.AccessTree puntEntrada)
protected boolean
handleCanQuery(com.soffid.iam.api.AccessTree puntEntrada)
protected boolean
handleCanView(com.soffid.iam.api.AccessTree puntEntrada)
protected boolean
handleCopyApplicationAccess(com.soffid.iam.api.AccessTree puntEntradaCopiar, com.soffid.iam.api.AccessTree puntEntradaMenuDesti)
protected boolean
handleCopyApplicationAccessLink(com.soffid.iam.api.AccessTree puntEntradaCopiar, com.soffid.iam.api.AccessTree puntEntradaMenuDesti)
protected com.soffid.iam.api.AccessTree
handleCreate(com.soffid.iam.api.AccessTree puntEntrada)
protected com.soffid.iam.api.AccessTreeAuthorization
handleCreateAuthorization(com.soffid.iam.api.AccessTree puntEntrada, com.soffid.iam.api.AccessTreeAuthorization autoritzacio)
protected com.soffid.iam.api.AccessTreeExecution
handleCreateExecution(com.soffid.iam.api.AccessTree puntEntrada, com.soffid.iam.api.AccessTreeExecution execucio)
protected void
handleDelete(com.soffid.iam.api.AccessTree puntEntrada)
protected void
handleDeleteAuthorization(com.soffid.iam.api.AccessTree puntEntrada, com.soffid.iam.api.AccessTreeAuthorization autoritzacio)
protected void
handleDeleteExecution(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.AccessTree
handleFindApplicationAccessById(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.AccessTree
handleFindRoot()
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 String
handleGetScopeForAddress(String address)
protected boolean
handleIsAuthorized(com.soffid.iam.api.AccessTree puntEntrada, String nivell)
protected boolean
handleIsAuthorized(String codiUsuari, Long idPuntEntrada, String nivell)
Fem un mètode especific per a l'accés des de la Intranet (!!) - s'ha de probarprotected boolean
handleMoveApplicationAccessTreeMenu(com.soffid.iam.api.AccessTree puntEntradaMoure, com.soffid.iam.api.AccessTree puntEntradaMenuDesti)
protected boolean
handleReorderApplicationAccess(com.soffid.iam.api.AccessTree puntEntradaOrdenar, com.soffid.iam.api.AccessTree puntEntradaSeguent)
protected void
handleSortChildren(long entryPointId)
protected com.soffid.iam.api.AccessTree
handleUpdate(com.soffid.iam.api.AccessTree puntEntrada)
protected com.soffid.iam.api.AccessTreeExecution
handleUpdateExecution(com.soffid.iam.api.AccessTree puntEntrada, com.soffid.iam.api.AccessTreeExecution execucio)
protected String
handleValidateXMLApplicationAccess(com.soffid.iam.api.AccessTree puntEntrada)
protected boolean
isAuthorized(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:
handleCreate
in 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:
handleUpdate
in 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:
handleDelete
in 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:
handleFindRoot
in 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:
handleFindChildren
in 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:
handleGetAllMimeTypeExecution
in classEntryPointServiceBase
- Throws:
Exception
-
handleGetAllApplications
protected Collection<com.soffid.iam.api.Application> handleGetAllApplications(Boolean aplicacioBuida) throws Exception
- Specified by:
handleGetAllApplications
in classEntryPointServiceBase
- Throws:
Exception
-
handleGetAuthorizationsApplicationAcessTree
protected Collection<com.soffid.iam.api.AccessTreeAuthorization> handleGetAuthorizationsApplicationAcessTree(com.soffid.iam.api.AccessTree puntEntrada) throws Exception
- Specified by:
handleGetAuthorizationsApplicationAcessTree
in classEntryPointServiceBase
- Throws:
Exception
-
handleCanAdmin
protected boolean handleCanAdmin(com.soffid.iam.api.AccessTree puntEntrada) throws Exception
- Specified by:
handleCanAdmin
in classEntryPointServiceBase
- Throws:
Exception
-
handleCanExecute
protected boolean handleCanExecute(com.soffid.iam.api.AccessTree puntEntrada) throws Exception
- Specified by:
handleCanExecute
in classEntryPointServiceBase
- Throws:
Exception
-
handleCanQuery
protected boolean handleCanQuery(com.soffid.iam.api.AccessTree puntEntrada) throws Exception
- Specified by:
handleCanQuery
in classEntryPointServiceBase
- Throws:
Exception
-
handleCanView
protected boolean handleCanView(com.soffid.iam.api.AccessTree puntEntrada) throws Exception
- Specified by:
handleCanView
in 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:
handleIsAuthorized
in 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:
handleReorderApplicationAccess
in classEntryPointServiceBase
- Throws:
Exception
-
handleMoveApplicationAccessTreeMenu
protected boolean handleMoveApplicationAccessTreeMenu(com.soffid.iam.api.AccessTree puntEntradaMoure, com.soffid.iam.api.AccessTree puntEntradaMenuDesti) throws Exception
- Specified by:
handleMoveApplicationAccessTreeMenu
in classEntryPointServiceBase
- Throws:
Exception
-
handleCopyApplicationAccess
protected boolean handleCopyApplicationAccess(com.soffid.iam.api.AccessTree puntEntradaCopiar, com.soffid.iam.api.AccessTree puntEntradaMenuDesti) throws Exception
- Specified by:
handleCopyApplicationAccess
in classEntryPointServiceBase
- Throws:
Exception
-
handleCopyApplicationAccessLink
protected boolean handleCopyApplicationAccessLink(com.soffid.iam.api.AccessTree puntEntradaCopiar, com.soffid.iam.api.AccessTree puntEntradaMenuDesti) throws Exception
- Specified by:
handleCopyApplicationAccessLink
in 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:
handleCreateAuthorization
in 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:
handleDeleteAuthorization
in 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:
handleCreateExecution
in 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:
handleDeleteExecution
in 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:
handleUpdateExecution
in classEntryPointServiceBase
- Throws:
Exception
-
handleGetExecutions
protected Collection<com.soffid.iam.api.AccessTreeExecution> handleGetExecutions(com.soffid.iam.api.AccessTree puntEntrada) throws Exception
- Specified by:
handleGetExecutions
in classEntryPointServiceBase
- Throws:
Exception
-
handleFindMenuChildren
protected Collection<com.soffid.iam.api.AccessTree> handleFindMenuChildren(com.soffid.iam.api.AccessTree puntEntrada) throws Exception
- Specified by:
handleFindMenuChildren
in classEntryPointServiceBase
- Throws:
Exception
-
handleValidateXMLApplicationAccess
protected String handleValidateXMLApplicationAccess(com.soffid.iam.api.AccessTree puntEntrada) throws Exception
- Specified by:
handleValidateXMLApplicationAccess
in 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:
handleFindApplicationAccessByFilter
in classEntryPointServiceBase
- Throws:
Exception
-
handleGetReverseApplicationAccessTree
protected Collection<String> handleGetReverseApplicationAccessTree(com.soffid.iam.api.AccessTree puntEntrada) throws Exception
- Specified by:
handleGetReverseApplicationAccessTree
in 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:
handleIsAuthorized
in classEntryPointServiceBase
- Parameters:
idPuntEntrada
-nivell
-- Returns:
- Throws:
Exception
-
handleApplicationAccessTreeHasAnyACL
protected boolean handleApplicationAccessTreeHasAnyACL(String codiUsuari) throws Exception
- Specified by:
handleApplicationAccessTreeHasAnyACL
in classEntryPointServiceBase
- Throws:
Exception
-
handleFindApplicationAccessById
protected com.soffid.iam.api.AccessTree handleFindApplicationAccessById(long id) throws Exception
- Specified by:
handleFindApplicationAccessById
in 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:
handleSortChildren
in classEntryPointServiceBase
- Throws:
Exception
-
handleGetScopeForAddress
protected String handleGetScopeForAddress(String address) throws Exception
- Specified by:
handleGetScopeForAddress
in classEntryPointServiceBase
- Throws:
Exception
-
handleFindAccessTreeByTextAndJsonQueryAsync
protected com.soffid.iam.api.AsyncList<com.soffid.iam.api.AccessTree> handleFindAccessTreeByTextAndJsonQueryAsync(String text, String jsonQuery) throws Exception
- Specified by:
handleFindAccessTreeByTextAndJsonQueryAsync
in classEntryPointServiceBase
- Throws:
Exception
-
handleFindAccessTreeByTextAndJsonQuery
protected List<com.soffid.iam.api.AccessTree> handleFindAccessTreeByTextAndJsonQuery(String text, String jsonQuery, Integer start, Integer pageSize) throws Exception
- Specified by:
handleFindAccessTreeByTextAndJsonQuery
in classEntryPointServiceBase
- Throws:
Exception
-
-