public class NodeFolderDAO extends Object
Modifier and Type | Method and Description |
---|---|
void |
create(NodeFolder nFolder)
Create node
|
void |
createBase(NodeFolder nFolder)
Create base node
|
void |
delete(String name,
String uuid,
String trashUuid)
Delete folder
|
List<NodeFolder> |
findByCategory(String catUuid)
Search nodes by category
|
List<NodeFolder> |
findByKeyword(String keyword)
Search nodes by keyword
|
List<NodeFolder> |
findByParent(String parentUuid)
Find by parent
|
NodeFolder |
findByPk(String uuid)
Find by pk
|
List<NodeFolder> |
findByPropertyValue(String group,
String property,
String value)
Search nodes by property value
|
static NodeFolderDAO |
getInstance() |
boolean |
hasChildren(String parentUuid)
Check if folder has childs
|
void |
initialize(NodeFolder nFolder)
Force initialization of a proxy
|
boolean |
isValid(String uuid)
Check for a valid folder node.
|
void |
move(String uuid,
String dstUuid)
Move folder
|
void |
purge(String uuid,
boolean deleteBase)
Purge in depth.
|
NodeFolder |
rename(String uuid,
String newName)
Rename folder
|
Set<NodeFolder> |
resolveCategories(Set<String> categories)
Get categories from node
|
public static NodeFolderDAO getInstance()
public void createBase(NodeFolder nFolder) throws DatabaseException
DatabaseException
public void create(NodeFolder nFolder) throws PathNotFoundException, AccessDeniedException, ItemExistsException, DatabaseException
public List<NodeFolder> findByParent(String parentUuid) throws PathNotFoundException, DatabaseException
public NodeFolder findByPk(String uuid) throws PathNotFoundException, DatabaseException
public List<NodeFolder> findByCategory(String catUuid) throws PathNotFoundException, DatabaseException
public List<NodeFolder> findByKeyword(String keyword) throws DatabaseException
DatabaseException
public List<NodeFolder> findByPropertyValue(String group, String property, String value) throws DatabaseException
DatabaseException
public boolean hasChildren(String parentUuid) throws PathNotFoundException, DatabaseException
public NodeFolder rename(String uuid, String newName) throws PathNotFoundException, AccessDeniedException, ItemExistsException, DatabaseException
public void move(String uuid, String dstUuid) throws PathNotFoundException, AccessDeniedException, ItemExistsException, DatabaseException
public void delete(String name, String uuid, String trashUuid) throws PathNotFoundException, AccessDeniedException, DatabaseException
public Set<NodeFolder> resolveCategories(Set<String> categories) throws DatabaseException
DatabaseException
public void purge(String uuid, boolean deleteBase) throws PathNotFoundException, AccessDeniedException, LockException, DatabaseException, IOException
public boolean isValid(String uuid) throws DatabaseException
DatabaseException
public void initialize(NodeFolder nFolder)
Copyright © 2016. All rights reserved.