@Service @Transactional(readOnly=false) public class FeatureNodeServiceImpl extends VersionableServiceBase<TermNode,ITermNodeDao> implements IFeatureNodeService
commonService
appContext, dao, INCLUDE_UNPUBLISHED, NO_UNPUBLISHED
Constructor and Description |
---|
FeatureNodeServiceImpl() |
Modifier and Type | Method and Description |
---|---|
UpdateResult |
addChildFeatureNode(java.util.UUID nodeUUID,
java.util.UUID termChildUuid)
Adds the specified feature as a child node to the given feature node
|
UpdateResult |
addChildFeatureNode(java.util.UUID nodeUUID,
java.util.UUID termChildUuid,
int position)
Adds the specified feature as a child node to the given feature node at the given position
|
UpdateResult |
createChildFeatureNode(java.util.UUID parentNodeUuid,
DefinedTermBase term,
java.util.UUID vocabularyUuid)
Saves and adds the specified feature as a child node to the given feature node.
|
DeleteResult |
deleteFeatureNode(java.util.UUID nodeUuid,
TermNodeDeletionConfigurator config) |
DeleteResult |
isDeletable(java.util.UUID nodeUuid,
TermNodeDeletionConfigurator config) |
UpdateResult |
moveFeatureNode(java.util.UUID movedNodeUuid,
java.util.UUID targetNodeUuid)
Moves a given
TermNode to the target node; |
UpdateResult |
moveFeatureNode(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>
@Transactional(readOnly=false) public DeleteResult deleteFeatureNode(java.util.UUID nodeUuid, TermNodeDeletionConfigurator config)
deleteFeatureNode
in interface IFeatureNodeService
public UpdateResult createChildFeatureNode(java.util.UUID parentNodeUuid, DefinedTermBase term, java.util.UUID vocabularyUuid)
IFeatureNodeService
createChildFeatureNode
in interface IFeatureNodeService
parentNodeUuid
- the feature node where the new feature should be addedterm
- the term which should be saved and added to the given feature nodevocabularyUuid
- the UUID of the vocabulary where the term should be savedITermNodeService#addChildFeatureNode(FeatureNode, DefinedTermBase)
public UpdateResult addChildFeatureNode(java.util.UUID nodeUUID, java.util.UUID termChildUuid)
IFeatureNodeService
addChildFeatureNode
in interface IFeatureNodeService
nodeUUID
- the UUID of the feature node where the new feature should be addedtermChildUuid
- the UUID of the term which should be added to the given feature nodepublic UpdateResult addChildFeatureNode(java.util.UUID nodeUUID, java.util.UUID termChildUuid, int position)
IFeatureNodeService
addChildFeatureNode
in interface IFeatureNodeService
nodeUUID
- the UUID of the feature node where the new feature should be addedtermChildUuid
- the UUID of the term which should be added to the given feature nodeposition
- the position where the child node should be addedpublic DeleteResult isDeletable(java.util.UUID nodeUuid, TermNodeDeletionConfigurator config)
isDeletable
in interface IFeatureNodeService
public UpdateResult moveFeatureNode(java.util.UUID movedNodeUuid, java.util.UUID targetNodeUuid, int position)
TermNode
to the target node at the given position;moveFeatureNode
in interface IFeatureNodeService
movedNodeUuid
- the node to movetargetNodeUuid
- the target nodeposition
- the position in the list of children of the target nodepublic UpdateResult moveFeatureNode(java.util.UUID movedNodeUuid, java.util.UUID targetNodeUuid)
TermNode
to the target node;moveFeatureNode
in interface IFeatureNodeService
movedNodeUuid
- the node to movetargetNodeUuid
- the target nodeCopyright © 2007-2020 EDIT. All Rights Reserved.