@Entity public class CustomReportLibraryNode extends Object implements TreeLibraryNode
| Constructor and Description |
|---|
CustomReportLibraryNode() |
CustomReportLibraryNode(CustomReportTreeDefinition entityType,
Long entityId,
String name,
CustomReportLibrary library) |
public CustomReportLibraryNode()
public CustomReportLibraryNode(CustomReportTreeDefinition entityType, Long entityId, String name, CustomReportLibrary library)
public Long getId()
getId in interface Identifiedpublic TreeLibraryNode getParent()
getParent in interface TreeLibraryNodepublic void setParent(TreeLibraryNode parent)
setParent in interface TreeLibraryNodepublic List<TreeLibraryNode> getChildren()
getChildren in interface TreeLibraryNodepublic GenericTreeLibrary getLibrary()
getLibrary in interface TreeLibraryNodepublic CustomReportLibrary getCustomReportLibrary()
public void setLibrary(CustomReportLibrary library)
public void accept(TreeNodeVisitor visitor)
accept in interface TreeVisitablepublic long getEntityId()
getEntityId in interface TreeLibraryNodepublic String getName()
getName in interface TreeLibraryNodepublic void setName(String name)
TreeLibraryNoderenameNode(String) that double check all constraint for you.setName in interface TreeLibraryNodepublic TreeEntityDefinition getEntityType()
getEntityType in interface TreeLibraryNodepublic void setEntityType(CustomReportTreeDefinition entityType)
setEntityType in interface TreeLibraryNodepublic TreeEntity getEntity()
getEntity in interface TreeLibraryNodepublic void setEntity(TreeEntity treeEntity)
setEntity in interface TreeLibraryNodepublic void addChild(TreeLibraryNode treeLibraryNode)
addChild in interface TreeLibraryNodepublic void isCoherentWithEntity()
TreeLibraryNodeCustomReportLibraryNode is consistent with it's linked TreeEntity.
Throws IllegalArgumentException if not, as user action haven't any way to create this kind of inconsistency.isCoherentWithEntity in interface TreeLibraryNodepublic boolean childNameAlreadyUsed(String newChildName)
public void removeChild(TreeLibraryNode treeLibraryNode)
removeChild in interface TreeLibraryNodepublic boolean hasContent()
hasContent in interface TreeLibraryNodepublic void renameNode(String newName)
TreeLibraryNodeCustomReportLibraryNode. Will also take care of renaming the linked TreeEntity.renameNode in interface TreeLibraryNodeCopyright © 2010–2016 Henix, henix.fr. All rights reserved.