public class NodeMailDAO extends Object
Modifier and Type | Method and Description |
---|---|
void |
create(NodeMail nMail)
Create node
|
void |
delete(String name,
String uuid,
String trashUuid)
Delete mail
|
List<NodeMail> |
findByCategory(String catUuid)
Search nodes by category
|
List<NodeMail> |
findByKeyword(String keyword)
Search nodes by keyword
|
List<NodeMail> |
findByParent(String parentUuid)
Find by parent
|
NodeMail |
findByPk(String uuid)
Find by path
|
List<NodeMail> |
findByPropertyValue(String group,
String property,
String value)
Search nodes by property value
|
static NodeMailDAO |
getInstance() |
boolean |
hasChildren(String parentUuid)
Check if folder has childs
|
void |
initialize(NodeMail nMail)
Force initialization of a proxy
|
boolean |
isMail(org.hibernate.search.FullTextSession ftSession,
String uuid)
Check if this uuid represents a mail node.
|
boolean |
isValid(String uuid)
Check for a valid mail node.
|
void |
move(String uuid,
String dstUuid)
Move mail
|
void |
purge(String uuid)
Purge in depth
|
void |
purgeHelper(org.hibernate.Session session,
String parentUuid)
Purge in depth helper
|
NodeMail |
rename(String uuid,
String newName)
Rename mail
|
public static NodeMailDAO getInstance()
public void create(NodeMail nMail) throws PathNotFoundException, AccessDeniedException, ItemExistsException, DatabaseException
public List<NodeMail> findByParent(String parentUuid) throws PathNotFoundException, DatabaseException
public NodeMail findByPk(String uuid) throws PathNotFoundException, DatabaseException
public boolean isMail(org.hibernate.search.FullTextSession ftSession, String uuid) throws org.hibernate.HibernateException
org.hibernate.HibernateException
public List<NodeMail> findByCategory(String catUuid) throws PathNotFoundException, DatabaseException
public List<NodeMail> findByKeyword(String keyword) throws DatabaseException
DatabaseException
public List<NodeMail> findByPropertyValue(String group, String property, String value) throws DatabaseException
DatabaseException
public boolean hasChildren(String parentUuid) throws PathNotFoundException, DatabaseException
public NodeMail 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 void purge(String uuid) throws PathNotFoundException, AccessDeniedException, LockException, DatabaseException, IOException
public void purgeHelper(org.hibernate.Session session, String parentUuid) throws PathNotFoundException, AccessDeniedException, LockException, IOException, DatabaseException, org.hibernate.HibernateException
PathNotFoundException
AccessDeniedException
LockException
IOException
DatabaseException
org.hibernate.HibernateException
com.openkm.dao.NodeFolderDAO.purgeHelper(Session, NodeFolder, boolean)
public boolean isValid(String uuid) throws DatabaseException
DatabaseException
public void initialize(NodeMail nMail)
Copyright © 2016. All rights reserved.