| com.sun.portal.search.admin.model.TaxonomyTreeModel
TaxonomyTreeModel | public class TaxonomyTreeModel extends TreeModelBase implements Serializable(Code) | | |
Method Summary | |
public void | beforeRoot() | public void | deleteNode(String nodeID) | public void | dump(RDMClassification rc) | public void | dumpChildren(RDMClassification rc, int level) | public boolean | firstChild() | public List | getChildren(String nodeId) | public Object | getCurrentNode() | public ArrayList | getDescendance(String parentID) | public String | getErrorMsg() | public Date | getLastActionDate() | public String | getLocalizedString(String key) | public boolean | getModifiedState() | public String | getName() | public RDMClassification | getNode(String nodeID) | public String | getNodeDesc(String nodeId) | public String | getNodeID() | public String | getNodeName(String nodeId) | public String | getNodeName() | public String | getNodeRule(String nodeId) | public String | getNodeType() | public int | getNumDescendant(String nodeId) | public RDMClassification | getRoot() | public String | getTaxonomyDescription() | public Object | getValue(String name) Returns a named value from this model
Parameters: name - The name of the value to return The specified value. | public Object[] | getValues(String name) Returns a named set of values from this model
Parameters: name - The name of the value set to return The specified set of values. | public static String | hashNodeId(String nodeId) | public void | insertChildNode(String parentId, String childId, String childDesc, String childRule) | public void | insertChildNode(RDMClassification rc, String childId, String childDesc, String childRule) | public void | insertSiblingNode(String nodeId, String siblingId, String childDesc, String childRule) | public boolean | isChildNode() | public boolean | isConfigNewer() | public boolean | isLastChild(RDMClassification parent, RDMClassification child) | public boolean | isLastChild() | public boolean | isParentNode(String nodeId) | public boolean | isParentNode() | public boolean | isValidName(String catName) | public static String | lastNode(String nodeID) | public void | load() | public int | nChildren(String nodeId) | RDMClassification | newChild(RDMClassification parent, String childId, String childDesc, String childRule, String taxonomyId) | public boolean | nextSibling() | public boolean | parent() | public void | recurseUpdateNode(RDMClassification node, String currentId, String newId) | public void | recurseUpdateNodeTaxonomy(RDMClassification rc, String newId) | public void | root() | public void | save() 1. | public void | setCurrentNode(String nodeID) | public void | setErrorMsg(String errMsg) | public void | setName(String value) | public void | setValue(String name, Object value) Sets a named value in this model. | public void | setValues(String name, Object[] values) | public void | updateNode(String currentId, String newId, String newDesc, String newRule) | public void | updateTaxonomy(String newId, String newDesc) | public void | write(SOIFOutputStream ss) |
FIELD_CONCEPTS | final public static String FIELD_CONCEPTS(Code) | | |
FIELD_DESCRIPTION | final public static String FIELD_DESCRIPTION(Code) | | |
FIELD_VIEWBEAN_CLASS | final public static String FIELD_VIEWBEAN_CLASS(Code) | | |
TaxonomyTreeModel | public TaxonomyTreeModel()(Code) | | Creates new TaxonomyTreeModel
|
beforeRoot | public void beforeRoot() throws ModelControlException(Code) | | In addition to making the root node the current node, this method
should set the node level to ROOT_NODE_LEVEL and call
setIterationComplete(false)
|
deleteNode | public void deleteNode(String nodeID) throws ModelControlException(Code) | | Delete a node and its children
Parameters: id - The id of the RDMClassification |
firstChild | public boolean firstChild() throws ModelControlException(Code) | | The implementation of this method should call
incrementNodeLevel()
|
getLastActionDate | public Date getLastActionDate()(Code) | | |
getModifiedState | public boolean getModifiedState()(Code) | | |
getNodeID | public String getNodeID()(Code) | | this is the actual method that fills in the name of the node
|
getNodeName | public String getNodeName() throws ModelControlException(Code) | | |
getNodeType | public String getNodeType() throws ModelControlException(Code) | | |
getNumDescendant | public int getNumDescendant(String nodeId)(Code) | | |
getTaxonomyDescription | public String getTaxonomyDescription()(Code) | | |
getValue | public Object getValue(String name)(Code) | | Returns a named value from this model
Parameters: name - The name of the value to return The specified value. If the model has multiple values for thespecified name, the first value is returned. If there is no valuefor the specified name, this method returns null. |
getValues | public Object[] getValues(String name)(Code) | | Returns a named set of values from this model
Parameters: name - The name of the value set to return The specified set of values. If there is no value for thespecified name, this method returns an array of zero length. |
insertChildNode | public void insertChildNode(String parentId, String childId, String childDesc, String childRule) throws ModelControlException(Code) | | Insert a child node
Parameters: id - The id of the RDMClassification |
insertChildNode | public void insertChildNode(RDMClassification rc, String childId, String childDesc, String childRule) throws ModelControlException(Code) | | Insert a child node
Parameters: id - The id of the RDMClassificationreturn true if successfulreturn false if already a equivalent child existthrowseException in case of failure |
insertSiblingNode | public void insertSiblingNode(String nodeId, String siblingId, String childDesc, String childRule) throws ModelControlException(Code) | | Insert a sibling node
Parameters: id - The id of the RDMClassification |
isChildNode | public boolean isChildNode()(Code) | | |
isConfigNewer | public boolean isConfigNewer() throws ModelControlException(Code) | | |
isLastChild | public boolean isLastChild() throws ModelControlException(Code) | | |
isParentNode | public boolean isParentNode(String nodeId)(Code) | | |
isParentNode | public boolean isParentNode()(Code) | | |
isValidName | public boolean isValidName(String catName) throws ModelControlException(Code) | | method that verifies if a Category name is composed of only valid characters
|
load | public void load()(Code) | | load Taxonomy from taxonomy.rdm config file
|
nextSibling | public boolean nextSibling() throws ModelControlException(Code) | | The implementation of this method should leave the node level
unchanged
|
parent | public boolean parent() throws ModelControlException(Code) | | The implementation of this method should call
decrementNodeLevel()
|
recurseUpdateNode | public void recurseUpdateNode(RDMClassification node, String currentId, String newId) throws ModelControlException(Code) | | Update a node's children's 'Id' and 'parentId'
Parameters: id - The id of the RDMClassification |
recurseUpdateNodeTaxonomy | public void recurseUpdateNodeTaxonomy(RDMClassification rc, String newId) throws ModelControlException(Code) | | Updates all classification node's taxonomyID value
Parameters: newId - |
root | public void root() throws ModelControlException(Code) | | In addition to making the root node the current node, this method
should set the node level to ROOT_NODE_LEVEL and call
setIterationComplete(false)
|
save | public void save() throws ModelControlException(Code) | | 1. save current Taxonomy
|
setCurrentNode | public void setCurrentNode(String nodeID) throws ModelControlException(Code) | | |
setValue | public void setValue(String name, Object value) throws ValidationException(Code) | | Sets a named value in this model. This method overwrites any current
value or values. If multiple values were present previously, they
are all discarded.
Parameters: name - The name of the value to set Parameters: value - The value to set in this model |
setValues | public void setValues(String name, Object[] values) throws ValidationException(Code) | | Sets a named set of values in this model
Parameters: name - The name of the value set to set in the model Parameters: values - The set of values to set in this model |
updateNode | public void updateNode(String currentId, String newId, String newDesc, String newRule) throws ModelControlException(Code) | | Update a node
Parameters: id - The id of the RDMClassification |
updateTaxonomy | public void updateTaxonomy(String newId, String newDesc) throws ModelControlException(Code) | | |
|
|