|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NodeBm
This is the Node BM interface.
Method Summary | |
---|---|
void |
createIndex(NodeDetail nodeDetail)
Method declaration |
NodePK |
createNode(NodeDetail nodeDetail)
Create a new Node object |
NodePK |
createNode(NodeDetail nodeDetail,
NodeDetail fatherDetail)
Create a new Node object |
void |
deleteIndex(NodePK pk)
Method declaration |
Collection<NodeDetail> |
getAllNodes(NodePK nodePK)
Method declaration |
Collection<NodeDetail> |
getAnotherPath(NodePK nodePK)
Get the path from root to a node |
Collection<NodeDetail> |
getChildrenDetails(NodePK pk)
Get the header of each child of the node. |
int |
getChildrenNumber(NodePK pk)
Get the children number of this node |
Collection<NodePK> |
getChildrenPKs(NodePK nodePK)
Get children node PKs of a node |
List<NodeDetail> |
getDescendantDetails(NodeDetail node)
Get descendant nodeDetails of a node |
List<NodeDetail> |
getDescendantDetails(NodePK nodePK)
Get descendant nodeDetails of a node |
Collection<NodePK> |
getDescendantPKs(NodePK nodePK)
Get descendant node PKs of a node |
NodeDetail |
getDetail(NodePK pk)
Get the attributes of a node and of its children |
NodeDetail |
getDetailByNameAndFatherId(NodePK pk,
String name,
int nodeFatherId)
|
NodeDetail |
getDetailTransactionally(NodePK pk)
|
Collection<NodeDetail> |
getFrequentlyAskedChildrenDetails(NodePK pk)
Get the header of each child of the node this function is to be used with frequently used nodes because for each child, an ejb will be instanciated (nodes next to the root will be frequently used) For less used nodes, choose the getChildrenDetails() method |
NodeDetail |
getFrequentlyAskedDetail(NodePK pk)
Method declaration |
NodeDetail |
getHeader(NodePK pk)
Get the attributes of THIS node |
NodeDetail |
getHeader(NodePK pk,
boolean getTranslations)
|
List<NodeDetail> |
getHeadersByLevel(NodePK pk,
int level)
Method declaration |
Collection<NodeDetail> |
getPath(NodePK pk)
Get the path of this node from this node to root |
ArrayList<NodeDetail> |
getSubTree(NodePK pk)
|
ArrayList<NodeDetail> |
getSubTree(NodePK pk,
String sorting)
|
ArrayList<NodeDetail> |
getSubTree(NodePK pk,
String status,
int level,
String sorting)
|
ArrayList<NodeDetail> |
getSubTreeByLevel(NodePK pk,
int level)
|
ArrayList<NodeDetail> |
getSubTreeByLevel(NodePK pk,
int level,
String sorting)
|
ArrayList<NodeDetail> |
getSubTreeByStatus(NodePK pk,
String status)
|
ArrayList<NodeDetail> |
getSubTreeByStatus(NodePK pk,
String status,
String sorting)
|
ArrayList<NodeDetail> |
getTree(NodePK pk)
|
NodeDetail |
getTwoLevelDetails(NodePK pk)
Method declaration |
boolean |
isSameNameSameLevelOnCreation(NodeDetail nd)
On node creation, check if another node have got the same name with same father |
boolean |
isSameNameSameLevelOnUpdate(NodeDetail nd)
On node update, check if another node have got the same name with same father |
void |
moveNode(NodePK nodePK,
NodePK toNode)
|
void |
processWysiwyg(NodePK nodePK)
A wysiwyg's content has been added or modified to a node. |
void |
removeNode(NodePK pk)
Remove a node and its descendants |
void |
setDetail(NodeDetail nodeDetail)
Update the attributes of the node |
void |
sortNodes(List<NodePK> nodePKs)
|
void |
updateRightsDependency(NodeDetail nodeDetail)
|
Method Detail |
---|
NodeDetail getHeader(NodePK pk)
pk
- the node primary key.
NodeDetail getHeader(NodePK pk, boolean getTranslations)
NodeDetail getDetail(NodePK pk)
pk
- the node primary key.
NodeDetail getDetailTransactionally(NodePK pk)
NodeDetail getDetailByNameAndFatherId(NodePK pk, String name, int nodeFatherId)
ArrayList<NodeDetail> getTree(NodePK pk)
ArrayList<NodeDetail> getSubTree(NodePK pk)
ArrayList<NodeDetail> getSubTree(NodePK pk, String sorting)
ArrayList<NodeDetail> getSubTreeByStatus(NodePK pk, String status)
ArrayList<NodeDetail> getSubTreeByStatus(NodePK pk, String status, String sorting)
ArrayList<NodeDetail> getSubTreeByLevel(NodePK pk, int level)
ArrayList<NodeDetail> getSubTreeByLevel(NodePK pk, int level, String sorting)
ArrayList<NodeDetail> getSubTree(NodePK pk, String status, int level, String sorting)
NodeDetail getTwoLevelDetails(NodePK pk)
pk
- the node primary key.
NodeDetail getFrequentlyAskedDetail(NodePK pk)
pk
- the node primary key.
List<NodeDetail> getHeadersByLevel(NodePK pk, int level)
pk
- the node primary key.level
-
Collection<NodeDetail> getAllNodes(NodePK nodePK)
nodePK
-
Collection<NodeDetail> getPath(NodePK pk)
pk
- the node primary key.
Collection<NodeDetail> getChildrenDetails(NodePK pk)
pk
- the node primary key.
Collection<NodeDetail> getFrequentlyAskedChildrenDetails(NodePK pk)
pk
- the node primary key.
int getChildrenNumber(NodePK pk)
pk
- the node primary key.
void setDetail(NodeDetail nodeDetail)
nodeDetail
- the NodeDetail which contains updated dataNodePK createNode(NodeDetail nodeDetail, NodeDetail fatherDetail)
nodeDetail
- the NodeDetail which contains datafatherDetail
- the parent of node to be added
NodePK createNode(NodeDetail nodeDetail)
nodeDetail
- the NodeDetail which contains data
void removeNode(NodePK pk)
pk
- the node PK to deleteNodePK
void moveNode(NodePK nodePK, NodePK toNode)
boolean isSameNameSameLevelOnCreation(NodeDetail nd)
nd
- A NodeDetail contains new node data to compare
boolean isSameNameSameLevelOnUpdate(NodeDetail nd)
nd
- A NodeDetail contains new node data to compare
Collection<NodePK> getChildrenPKs(NodePK nodePK)
nodePK
- A NodePK
NodePK
Collection<NodePK> getDescendantPKs(NodePK nodePK)
nodePK
- A NodePK
NodePK
List<NodeDetail> getDescendantDetails(NodePK nodePK)
nodePK
- A NodePK
NodePK
List<NodeDetail> getDescendantDetails(NodeDetail node)
node
- A NodeDetail
Collection<NodeDetail> getAnotherPath(NodePK nodePK)
nodePK
- A NodePK
NodePK
void processWysiwyg(NodePK nodePK)
nodePK
- the identifier of the node associated to the wysiwygvoid updateRightsDependency(NodeDetail nodeDetail)
void createIndex(NodeDetail nodeDetail)
nodeDetail
- void deleteIndex(NodePK pk)
pk
- void sortNodes(List<NodePK> nodePKs)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |