Package net.datenwerke.security.server
Class TreeDBManagerTreeHandler<A extends AbstractNode<A>>
RemoteServiceServlet<A>
net.datenwerke.gf.base.server.DwRemoteServiceServlet
net.datenwerke.security.server.SecuredRemoteServiceServlet
net.datenwerke.security.server.TreeDBManagerTreeHandler<A>
- Type Parameters:
A-
- All Implemented Interfaces:
RemoteRequest,RPCTreeLoader,RPCTreeManager
- Direct Known Subclasses:
DashboardTreeRpcServiceImpl,DatasinkManagerTreeHandlerRpcServiceImpl,DatasourceManagerTreeHandlerRpcServiceImpl,FileServerRpcServiceImpl,RemoteServerManagerTreeHandlerRpcServiceImpl,ReportManagerTreeHandlerImpl,TransportManagerTreeHandlerRpcServiceImpl,UserManagerTreeHandlerImpl
public abstract class TreeDBManagerTreeHandler<A extends AbstractNode<A>>
extends SecuredRemoteServiceServlet
implements RPCTreeManager, RPCTreeLoader
-
Constructor Summary
ConstructorsConstructorDescriptionTreeDBManagerTreeHandler(TreeDBManager<A> treeDBManager, DtoService dtoGenerator, SecurityService securityService, EntityClonerService entityClonerService, KeyNameGeneratorService keyGeneratorService) -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteNode(AbstractNodeDto node, Dto state) Deletes the specified nodevoiddeleteNodeWithForce(AbstractNodeDto node, Dto state) Deletes the specified nodeAbstractNodeDtoduplicateNode(AbstractNodeDto toDuplicate, Dto state) final List<AbstractNodeDto> getChildren(AbstractNodeDto node, Dto state, Collection<Dto2PosoMapper> wlFilters, Collection<Dto2PosoMapper> blFilters) final String[][]getChildrenAsFto(AbstractNodeDto node, Dto state, Collection<Dto2PosoMapper> wlFilters, Collection<Dto2PosoMapper> blFilters) List<AbstractNodeDto> getRoot(Dto state) AbstractNodeDtoinsertNode(AbstractNodeDto objectTypeToInsert, AbstractNodeDto node, Dto state) inserts an object of the specified typeloadAll(Dto state) loadAll(Dto state, Collection<Dto2PosoMapper> wlFilters, Collection<Dto2PosoMapper> blFilters) String[][]loadAllAsFto(Dto state) AbstractNodeDtoloadFullViewNode(AbstractNodeDto node, Dto state) AbstractNodeDtoloadNodeById(Long id, Dto state) AbstractNodeDtomoveNodeAppend(AbstractNodeDto node, AbstractNodeDto reference, Dto state) AbstractNodeDtomoveNodeInsert(AbstractNodeDto node, AbstractNodeDto reference, int index, Dto state) List<AbstractNodeDto> moveNodesAppend(List<AbstractNodeDto> nodes, AbstractNodeDto reference, Dto state) AbstractNodeDtorefreshNode(AbstractNodeDto node, Dto state) AbstractNodeDtosetFlag(AbstractNodeDto node, long flagToSet, long flagToUnset, boolean updateNode, Dto state) AbstractNodeDtoupdateNode(AbstractNodeDto nodeDto, Dto state) Methods inherited from class net.datenwerke.security.server.SecuredRemoteServiceServlet
getRequest
-
Constructor Details
-
TreeDBManagerTreeHandler
public TreeDBManagerTreeHandler(TreeDBManager<A> treeDBManager, DtoService dtoGenerator, SecurityService securityService, EntityClonerService entityClonerService, KeyNameGeneratorService keyGeneratorService)
-
-
Method Details
-
getChildren
public final List<AbstractNodeDto> getChildren(AbstractNodeDto node, Dto state, Collection<Dto2PosoMapper> wlFilters, Collection<Dto2PosoMapper> blFilters) throws ServerCallFailedException - Specified by:
getChildrenin interfaceRPCTreeLoader- Throws:
ServerCallFailedException
-
getRoot
- Specified by:
getRootin interfaceRPCTreeLoader- Throws:
ServerCallFailedException
-
loadFullViewNode
public AbstractNodeDto loadFullViewNode(AbstractNodeDto node, Dto state) throws ServerCallFailedException - Specified by:
loadFullViewNodein interfaceRPCTreeLoader- Specified by:
loadFullViewNodein interfaceRPCTreeManager- Throws:
ServerCallFailedException
-
loadNodeById
- Specified by:
loadNodeByIdin interfaceRPCTreeLoader- Throws:
ServerCallFailedException
-
loadAll
- Specified by:
loadAllin interfaceRPCTreeLoader- Throws:
ServerCallFailedException
-
loadAllAsFto
- Specified by:
loadAllAsFtoin interfaceRPCTreeLoader- Throws:
ServerCallFailedException
-
getChildrenAsFto
public final String[][] getChildrenAsFto(AbstractNodeDto node, Dto state, Collection<Dto2PosoMapper> wlFilters, Collection<Dto2PosoMapper> blFilters) throws ServerCallFailedException - Specified by:
getChildrenAsFtoin interfaceRPCTreeLoader- Throws:
ServerCallFailedException
-
loadAll
public EntireTreeDTO loadAll(Dto state, Collection<Dto2PosoMapper> wlFilters, Collection<Dto2PosoMapper> blFilters) throws ServerCallFailedException - Specified by:
loadAllin interfaceRPCTreeLoader- Throws:
ServerCallFailedException
-
deleteNode
public void deleteNode(AbstractNodeDto node, Dto state) throws ServerCallFailedException, NeedForcefulDeleteClientException Deletes the specified node- Specified by:
deleteNodein interfaceRPCTreeManager- Throws:
ServerCallFailedExceptionNeedForcefulDeleteClientException
-
deleteNodeWithForce
public void deleteNodeWithForce(AbstractNodeDto node, Dto state) throws ServerCallFailedException, NeedForcefulDeleteClientException Deletes the specified node- Specified by:
deleteNodeWithForcein interfaceRPCTreeManager- Throws:
ServerCallFailedExceptionNeedForcefulDeleteClientException
-
refreshNode
public AbstractNodeDto refreshNode(AbstractNodeDto node, Dto state) throws ServerCallFailedException - Specified by:
refreshNodein interfaceRPCTreeManager- Throws:
ServerCallFailedException
-
setFlag
public AbstractNodeDto setFlag(AbstractNodeDto node, long flagToSet, long flagToUnset, boolean updateNode, Dto state) throws ServerCallFailedException - Specified by:
setFlagin interfaceRPCTreeManager- Throws:
ServerCallFailedException
-
insertNode
public AbstractNodeDto insertNode(AbstractNodeDto objectTypeToInsert, AbstractNodeDto node, Dto state) throws ServerCallFailedException inserts an object of the specified type- Specified by:
insertNodein interfaceRPCTreeManager- Throws:
ServerCallFailedException
-
duplicateNode
public AbstractNodeDto duplicateNode(AbstractNodeDto toDuplicate, Dto state) throws ServerCallFailedException - Specified by:
duplicateNodein interfaceRPCTreeManager- Throws:
ServerCallFailedException
-
moveNodeAppend
public AbstractNodeDto moveNodeAppend(AbstractNodeDto node, AbstractNodeDto reference, Dto state) throws ServerCallFailedException - Specified by:
moveNodeAppendin interfaceRPCTreeManager- Throws:
ServerCallFailedException
-
moveNodesAppend
public List<AbstractNodeDto> moveNodesAppend(List<AbstractNodeDto> nodes, AbstractNodeDto reference, Dto state) throws ServerCallFailedException - Specified by:
moveNodesAppendin interfaceRPCTreeManager- Throws:
ServerCallFailedException
-
moveNodeInsert
public AbstractNodeDto moveNodeInsert(AbstractNodeDto node, AbstractNodeDto reference, int index, Dto state) throws ServerCallFailedException - Specified by:
moveNodeInsertin interfaceRPCTreeManager- Throws:
ServerCallFailedException
-
updateNode
public AbstractNodeDto updateNode(AbstractNodeDto nodeDto, Dto state) throws ServerCallFailedException - Specified by:
updateNodein interfaceRPCTreeManager- Throws:
ServerCallFailedException
-