A
- public abstract class TreeDBManagerTreeHandler<A extends AbstractNode<A>> extends SecuredRemoteServiceServlet implements RPCTreeManager, RPCTreeLoader
Constructor and Description |
---|
TreeDBManagerTreeHandler(TreeDBManager<A> treeDBManager,
DtoService dtoGenerator,
SecurityService securityService,
EntityClonerService entityClonerService) |
Modifier and Type | Method and Description |
---|---|
void |
deleteNode(AbstractNodeDto node,
Dto state)
Deletes the specified node
|
void |
deleteNodeWithForce(AbstractNodeDto node,
Dto state)
Deletes the specified node
|
AbstractNodeDto |
duplicateNode(AbstractNodeDto toDuplicate,
Dto state) |
java.util.List<AbstractNodeDto> |
getChildren(AbstractNodeDto node,
Dto state,
java.util.Collection<Dto2PosoMapper> wlFilters,
java.util.Collection<Dto2PosoMapper> blFilters) |
java.lang.String[][] |
getChildrenAsFto(AbstractNodeDto node,
Dto state,
java.util.Collection<Dto2PosoMapper> wlFilters,
java.util.Collection<Dto2PosoMapper> blFilters) |
java.util.List<AbstractNodeDto> |
getRoot(Dto state) |
AbstractNodeDto |
insertNode(AbstractNodeDto objectTypeToInsert,
AbstractNodeDto node,
Dto state)
inserts an object of the specified type
|
EntireTreeDTO |
loadAll(Dto state) |
EntireTreeDTO |
loadAll(Dto state,
java.util.Collection<Dto2PosoMapper> wlFilters,
java.util.Collection<Dto2PosoMapper> blFilters) |
java.lang.String[][] |
loadAllAsFto(Dto state) |
AbstractNodeDto |
loadFullViewNode(AbstractNodeDto node,
Dto state) |
AbstractNodeDto |
loadNodeById(java.lang.Long id,
Dto state) |
AbstractNodeDto |
moveNodeAppend(AbstractNodeDto node,
AbstractNodeDto reference,
Dto state) |
AbstractNodeDto |
moveNodeInsert(AbstractNodeDto node,
AbstractNodeDto reference,
int index,
Dto state) |
java.util.List<AbstractNodeDto> |
moveNodesAppend(java.util.List<AbstractNodeDto> nodes,
AbstractNodeDto reference,
Dto state) |
AbstractNodeDto |
refreshNode(AbstractNodeDto node,
Dto state) |
AbstractNodeDto |
setFlag(AbstractNodeDto node,
long flagToSet,
long flagToUnset,
boolean updateNode,
Dto state) |
AbstractNodeDto |
updateNode(AbstractNodeDto nodeDto,
Dto state) |
getRequest
public TreeDBManagerTreeHandler(TreeDBManager<A> treeDBManager, DtoService dtoGenerator, SecurityService securityService, EntityClonerService entityClonerService)
public final java.util.List<AbstractNodeDto> getChildren(AbstractNodeDto node, Dto state, java.util.Collection<Dto2PosoMapper> wlFilters, java.util.Collection<Dto2PosoMapper> blFilters) throws ServerCallFailedException
getChildren
in interface RPCTreeLoader
ServerCallFailedException
public java.util.List<AbstractNodeDto> getRoot(Dto state) throws ServerCallFailedException
getRoot
in interface RPCTreeLoader
ServerCallFailedException
public AbstractNodeDto loadFullViewNode(AbstractNodeDto node, Dto state) throws ServerCallFailedException
loadFullViewNode
in interface RPCTreeLoader
loadFullViewNode
in interface RPCTreeManager
ServerCallFailedException
public AbstractNodeDto loadNodeById(java.lang.Long id, Dto state) throws ServerCallFailedException
loadNodeById
in interface RPCTreeLoader
ServerCallFailedException
public EntireTreeDTO loadAll(Dto state) throws ServerCallFailedException
loadAll
in interface RPCTreeLoader
ServerCallFailedException
public java.lang.String[][] loadAllAsFto(Dto state) throws ServerCallFailedException
loadAllAsFto
in interface RPCTreeLoader
ServerCallFailedException
public final java.lang.String[][] getChildrenAsFto(AbstractNodeDto node, Dto state, java.util.Collection<Dto2PosoMapper> wlFilters, java.util.Collection<Dto2PosoMapper> blFilters) throws ServerCallFailedException
getChildrenAsFto
in interface RPCTreeLoader
ServerCallFailedException
public EntireTreeDTO loadAll(Dto state, java.util.Collection<Dto2PosoMapper> wlFilters, java.util.Collection<Dto2PosoMapper> blFilters) throws ServerCallFailedException
loadAll
in interface RPCTreeLoader
ServerCallFailedException
public void deleteNode(AbstractNodeDto node, Dto state) throws ServerCallFailedException, NeedForcefulDeleteClientException
deleteNode
in interface RPCTreeManager
ServerCallFailedException
NeedForcefulDeleteClientException
public void deleteNodeWithForce(AbstractNodeDto node, Dto state) throws ServerCallFailedException, NeedForcefulDeleteClientException
deleteNodeWithForce
in interface RPCTreeManager
ServerCallFailedException
NeedForcefulDeleteClientException
public AbstractNodeDto refreshNode(AbstractNodeDto node, Dto state) throws ServerCallFailedException
refreshNode
in interface RPCTreeManager
ServerCallFailedException
public AbstractNodeDto setFlag(AbstractNodeDto node, long flagToSet, long flagToUnset, boolean updateNode, Dto state) throws ServerCallFailedException
setFlag
in interface RPCTreeManager
ServerCallFailedException
public AbstractNodeDto insertNode(AbstractNodeDto objectTypeToInsert, AbstractNodeDto node, Dto state) throws ServerCallFailedException
insertNode
in interface RPCTreeManager
ServerCallFailedException
public AbstractNodeDto duplicateNode(AbstractNodeDto toDuplicate, Dto state) throws ServerCallFailedException
duplicateNode
in interface RPCTreeManager
ServerCallFailedException
public AbstractNodeDto moveNodeAppend(AbstractNodeDto node, AbstractNodeDto reference, Dto state) throws ServerCallFailedException
moveNodeAppend
in interface RPCTreeManager
ServerCallFailedException
public java.util.List<AbstractNodeDto> moveNodesAppend(java.util.List<AbstractNodeDto> nodes, AbstractNodeDto reference, Dto state) throws ServerCallFailedException
moveNodesAppend
in interface RPCTreeManager
ServerCallFailedException
public AbstractNodeDto moveNodeInsert(AbstractNodeDto node, AbstractNodeDto reference, int index, Dto state) throws ServerCallFailedException
moveNodeInsert
in interface RPCTreeManager
ServerCallFailedException
public AbstractNodeDto updateNode(AbstractNodeDto nodeDto, Dto state) throws ServerCallFailedException
updateNode
in interface RPCTreeManager
ServerCallFailedException