|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
Client side interface definition for the Ganymede DBBaseCategory class. This interface allows the client to manipulate a category's relationships.
| Method Summary | |
void |
addNodeAfter(CategoryNode node,
java.lang.String previousNodeName)
This method is used to place a Category Node under us. |
void |
addNodeBefore(CategoryNode node,
java.lang.String nextNodeName)
This method is used to place a Category Node under us. |
Category |
getCategory()
This method returns the category that this category node belongs to. |
java.lang.String |
getName()
Returns the name of this category. |
CategoryNode |
getNode(java.lang.String name)
Returns a subcategory of name |
java.util.Vector |
getNodes()
Returns child nodes |
java.lang.String |
getPath()
Returns the full path to this category, with levels in the hierarchy separated by '/'s. |
boolean |
isUnder(Category cat)
This method returns true if this is a subcategory of cat. |
void |
moveCategoryNode(java.lang.String catPath,
java.lang.String previousNodeName)
This method can be used to move a Category from another Category to this Category, or to move a Category around within this Category. |
Category |
newSubCategory()
This creates a new subcategory under this category, with displayOrder after the last item currently in the category. |
void |
removeNode(CategoryNode node)
This method is used to remove a Category Node from under us. |
void |
removeNode(java.lang.String name)
This method is used to remove a Category Node from under us. |
boolean |
setName(java.lang.String newName)
Sets the name of this node. |
| Method Detail |
public java.lang.String getName()
throws java.rmi.RemoteException
public java.lang.String getPath()
throws java.rmi.RemoteException
public boolean setName(java.lang.String newName)
throws java.rmi.RemoteException
public Category getCategory()
throws java.rmi.RemoteException
public java.util.Vector getNodes()
throws java.rmi.RemoteException
public CategoryNode getNode(java.lang.String name)
throws java.rmi.RemoteException
public void addNodeAfter(CategoryNode node,
java.lang.String previousNodeName)
throws java.rmi.RemoteException
node - Node to place under this categorypreviousNodeName - The name of the node to place node after,
must not be path-qualified.
public void addNodeBefore(CategoryNode node,
java.lang.String nextNodeName)
throws java.rmi.RemoteException
This method is used to place a Category Node under us. This method adds a new node into this category, before nextNodeName if nextNodeName is not null, or at the beginning of the category if it is.
node - Node to place under this categoryprevNodeName - the name of the node that the new node is to be added before,
must not be path-qualified
public void moveCategoryNode(java.lang.String catPath,
java.lang.String previousNodeName)
throws java.rmi.RemoteException
catPath - the fully specified path of the node to be movedpreviousNodeName - The name of the node to place node after,
must be fully path-qualified.
public void removeNode(CategoryNode node)
throws java.rmi.RemoteException
This method is used to remove a Category Node from under us.
Note that removeNode assumes that it can recalculate the displayOrder values for other nodes in this category. This method should not be called if other nodes with prefixed displayOrder values are still to be added to this category, as from the DBStore file.
public void removeNode(java.lang.String name)
throws java.rmi.RemoteException
This method is used to remove a Category Node from under us.
Note that removeNode assumes that it can recalculate the displayOrder values for other nodes in this category. This method should not be called if other nodes with prefixed displayOrder values are still to be added to this category, as from the DBStore file.
public Category newSubCategory()
throws java.rmi.RemoteException
public boolean isUnder(Category cat)
throws java.rmi.RemoteException
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||