@Entity public class CustomReportLibraryNode extends Object implements TreeLibraryNode
MAX_NAME_SIZE| Constructor and Description |
|---|
CustomReportLibraryNode() |
CustomReportLibraryNode(CustomReportTreeDefinition entityType,
Long entityId,
String name,
CustomReportLibrary library) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(TreeNodeVisitor visitor) |
void |
addChild(TreeLibraryNode treeLibraryNode) |
List<TreeLibraryNode> |
getChildren() |
CustomReportLibrary |
getCustomReportLibrary()
concrete class getter for @AclConstrainedObject
|
TreeEntity |
getEntity()
See private attribute entity in this class.
|
long |
getEntityId() |
TreeEntityDefinition |
getEntityType() |
Long |
getId() |
GenericTreeLibrary |
getLibrary() |
String |
getName() |
TreeLibraryNode |
getParent() |
boolean |
hasContent() |
void |
isCoherentWithEntity()
Check if a
CustomReportLibraryNode is consistent with it's linked TreeEntity. |
void |
removeChild(TreeLibraryNode treeLibraryNode) |
void |
renameNode(String newName)
Rename a
CustomReportLibraryNode. |
void |
setEntity(TreeEntity treeEntity) |
void |
setLibrary(CustomReportLibrary library) |
void |
setName(String name)
Don't forget to update ENTITY name.
|
void |
setParent(TreeLibraryNode parent) |
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 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 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.