@Service @Transactional(readOnly=false) public class TermNodeServiceImpl extends VersionableServiceBase<TermNode,ITermNodeDao> implements ITermNodeService
commonService
appContext, dao, INCLUDE_UNPUBLISHED, NO_UNPUBLISHED
Constructor and Description |
---|
TermNodeServiceImpl() |
Modifier and Type | Method and Description |
---|---|
UpdateResult |
addChildNode(java.util.UUID nodeUUID,
java.util.UUID termChildUuid)
Adds the specified term as a child node to the given term node
|
UpdateResult |
addChildNode(java.util.UUID nodeUUID,
java.util.UUID termChildUuid,
int position)
Adds the specified term as a child node to the given term node at the given position
|
UpdateResult |
createChildNode(java.util.UUID parentNodeUuid,
DefinedTermBase term,
java.util.UUID vocabularyUuid)
Saves and adds the specified term as a child node to the given term node.
|
DeleteResult |
deleteNode(java.util.UUID nodeUuid,
TermNodeDeletionConfigurator config) |
DeleteResult |
isDeletable(java.util.UUID nodeUuid,
TermNodeDeletionConfigurator config) |
java.util.List<TermNode> |
list(TermType termType,
java.lang.Integer limit,
java.lang.Integer start,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths) |
UpdateResult |
moveNode(java.util.UUID movedNodeUuid,
java.util.UUID targetNodeUuid)
Moves a given
TermNode to the target node; |
UpdateResult |
moveNode(java.util.UUID movedNodeUuid,
java.util.UUID targetNodeUuid,
int position)
Moves a given
TermNode to the target node at the given position; |
protected void |
setDao(ITermNodeDao dao) |
getNextAuditEvent, getPreviousAuditEvent, isDeletable, pageAuditEvents, pageAuditEvents
checkPublished, clear, count, delete, delete, delete, exists, find, find, find, find, findById, findWithoutFlush, getSession, group, list, list, load, load, load, load, loadByIds, loadByIds, loadWithUpdate, lock, merge, merge, merge, merge, page, page, page, pageByParamWithRestrictions, refresh, refresh, save, save, saveOrUpdate, saveOrUpdate, setApplicationContext, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNextAuditEvent, getPreviousAuditEvent, isDeletable, pageAuditEvents, pageAuditEvents
clear, count, delete, delete, delete, exists, find, find, find, find, findById, findWithoutFlush, getSession, group, list, list, load, load, load, load, loadByIds, loadByIds, loadWithUpdate, lock, merge, merge, merge, merge, page, page, page, pageByParamWithRestrictions, refresh, refresh, save, save, saveOrUpdate, saveOrUpdate, update
@Autowired protected void setDao(ITermNodeDao dao)
setDao
in class ServiceBase<TermNode,ITermNodeDao>
public java.util.List<TermNode> list(TermType termType, java.lang.Integer limit, java.lang.Integer start, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
list
in interface ITermNodeService
@Transactional(readOnly=false) public DeleteResult deleteNode(java.util.UUID nodeUuid, TermNodeDeletionConfigurator config)
deleteNode
in interface ITermNodeService
public UpdateResult createChildNode(java.util.UUID parentNodeUuid, DefinedTermBase term, java.util.UUID vocabularyUuid)
ITermNodeService
createChildNode
in interface ITermNodeService
parentNodeUuid
- the term node to which the new term should be addedterm
- the term which should be saved and added to the given term nodevocabularyUuid
- the UUID of the vocabulary where the term should be savedITermNodeService#addChildNode(TermNode, DefinedTermBase)
public UpdateResult addChildNode(java.util.UUID nodeUUID, java.util.UUID termChildUuid)
ITermNodeService
addChildNode
in interface ITermNodeService
nodeUUID
- the UUID of the term node to which the new term should be addedtermChildUuid
- the UUID of the term which should be added to the given term nodepublic UpdateResult addChildNode(java.util.UUID nodeUUID, java.util.UUID termChildUuid, int position)
ITermNodeService
addChildNode
in interface ITermNodeService
nodeUUID
- the UUID of the term node to which the new term should be addedtermChildUuid
- the UUID of the term which should be added to the given term nodeposition
- the position where the child node should be addedpublic DeleteResult isDeletable(java.util.UUID nodeUuid, TermNodeDeletionConfigurator config)
isDeletable
in interface ITermNodeService
public UpdateResult moveNode(java.util.UUID movedNodeUuid, java.util.UUID targetNodeUuid, int position)
TermNode
to the target node at the given position;moveNode
in interface ITermNodeService
movedNodeUuid
- the node to movetargetNodeUuid
- the target nodeposition
- the position in the list of children of the target nodepublic UpdateResult moveNode(java.util.UUID movedNodeUuid, java.util.UUID targetNodeUuid)
TermNode
to the target node;moveNode
in interface ITermNodeService
movedNodeUuid
- the node to movetargetNodeUuid
- the target nodeCopyright © 2007-2020 EDIT. All Rights Reserved.