Java Doc for TaxonomyTreeModel.java in  » Portal » Open-Portal » com » sun » portal » search » admin » model » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Portal » Open Portal » com.sun.portal.search.admin.model 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.sun.portal.search.admin.model.TaxonomyTreeModel

TaxonomyTreeModel
public class TaxonomyTreeModel extends TreeModelBase implements Serializable(Code)


Field Summary
final public static  StringFIELD_CONCEPTS
    
final public static  StringFIELD_DESCRIPTION
    
final public static  StringFIELD_FILES
    
final public static  StringFIELD_ID
    
final public static  StringFIELD_NAME
    
final public static  StringFIELD_VIEWBEAN_CLASS
    
final public static  StringMODEL_NAME
    
public  LocaleuserLocale
    

Constructor Summary
public  TaxonomyTreeModel()
    

Method Summary
public  voidbeforeRoot()
    
public  voiddeleteNode(String nodeID)
    
public  voiddump(RDMClassification rc)
    
public  voiddumpChildren(RDMClassification rc, int level)
    
public  booleanfirstChild()
    
public  ListgetChildren(String nodeId)
    
public  ObjectgetCurrentNode()
    
public  ArrayListgetDescendance(String parentID)
    
public  StringgetErrorMsg()
    
public  DategetLastActionDate()
    
public  StringgetLocalizedString(String key)
    
public  booleangetModifiedState()
    
public  StringgetName()
    
public  RDMClassificationgetNode(String nodeID)
    
public  StringgetNodeDesc(String nodeId)
    
public  StringgetNodeID()
    
public  StringgetNodeName(String nodeId)
    
public  StringgetNodeName()
    
public  StringgetNodeRule(String nodeId)
    
public  StringgetNodeType()
    
public  intgetNumDescendant(String nodeId)
    
public  RDMClassificationgetRoot()
    
public  StringgetTaxonomyDescription()
    
public  ObjectgetValue(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  StringhashNodeId(String nodeId)
    
public  voidinsertChildNode(String parentId, String childId, String childDesc, String childRule)
    
public  voidinsertChildNode(RDMClassification rc, String childId, String childDesc, String childRule)
    
public  voidinsertSiblingNode(String nodeId, String siblingId, String childDesc, String childRule)
    
public  booleanisChildNode()
    
public  booleanisConfigNewer()
    
public  booleanisLastChild(RDMClassification parent, RDMClassification child)
    
public  booleanisLastChild()
    
public  booleanisParentNode(String nodeId)
    
public  booleanisParentNode()
    
public  booleanisValidName(String catName)
    
public static  StringlastNode(String nodeID)
    
public  voidload()
    
public  intnChildren(String nodeId)
    
 RDMClassificationnewChild(RDMClassification parent, String childId, String childDesc, String childRule, String taxonomyId)
    
public  booleannextSibling()
    
public  booleanparent()
    
public  voidrecurseUpdateNode(RDMClassification node, String currentId, String newId)
    
public  voidrecurseUpdateNodeTaxonomy(RDMClassification rc, String newId)
    
public  voidroot()
    
public  voidsave()
     1.
public  voidsetCurrentNode(String nodeID)
    
public  voidsetErrorMsg(String errMsg)
    
public  voidsetName(String value)
    
public  voidsetValue(String name, Object value)
     Sets a named value in this model.
public  voidsetValues(String name, Object[] values)
    
public  voidupdateNode(String currentId, String newId, String newDesc, String newRule)
    
public  voidupdateTaxonomy(String newId, String newDesc)
    
public  voidwrite(SOIFOutputStream ss)
    

Field Detail
FIELD_CONCEPTS
final public static String FIELD_CONCEPTS(Code)



FIELD_DESCRIPTION
final public static String FIELD_DESCRIPTION(Code)



FIELD_FILES
final public static String FIELD_FILES(Code)



FIELD_ID
final public static String FIELD_ID(Code)



FIELD_NAME
final public static String FIELD_NAME(Code)



FIELD_VIEWBEAN_CLASS
final public static String FIELD_VIEWBEAN_CLASS(Code)



MODEL_NAME
final public static String MODEL_NAME(Code)



userLocale
public Locale userLocale(Code)




Constructor Detail
TaxonomyTreeModel
public TaxonomyTreeModel()(Code)
Creates new TaxonomyTreeModel




Method Detail
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



dump
public void dump(RDMClassification rc)(Code)



dumpChildren
public void dumpChildren(RDMClassification rc, int level)(Code)



firstChild
public boolean firstChild() throws ModelControlException(Code)
The implementation of this method should call incrementNodeLevel()



getChildren
public List getChildren(String nodeId)(Code)



getCurrentNode
public Object getCurrentNode()(Code)



getDescendance
public ArrayList getDescendance(String parentID) throws ModelControlException(Code)



getErrorMsg
public String getErrorMsg()(Code)



getLastActionDate
public Date getLastActionDate()(Code)



getLocalizedString
public String getLocalizedString(String key)(Code)



getModifiedState
public boolean getModifiedState()(Code)



getName
public String getName()(Code)



getNode
public RDMClassification getNode(String nodeID)(Code)



getNodeDesc
public String getNodeDesc(String nodeId) throws ModelControlException(Code)



getNodeID
public String getNodeID()(Code)
this is the actual method that fills in the name of the node



getNodeName
public String getNodeName(String nodeId) throws ModelControlException(Code)



getNodeName
public String getNodeName() throws ModelControlException(Code)



getNodeRule
public String getNodeRule(String nodeId) throws ModelControlException(Code)



getNodeType
public String getNodeType() throws ModelControlException(Code)



getNumDescendant
public int getNumDescendant(String nodeId)(Code)



getRoot
public RDMClassification getRoot()(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.



hashNodeId
public static String hashNodeId(String nodeId)(Code)



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(RDMClassification parent, RDMClassification child) 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



lastNode
public static String lastNode(String nodeID)(Code)



load
public void load()(Code)
load Taxonomy from taxonomy.rdm config file



nChildren
public int nChildren(String nodeId)(Code)



newChild
RDMClassification newChild(RDMClassification parent, String childId, String childDesc, String childRule, String taxonomyId)(Code)



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)



setErrorMsg
public void setErrorMsg(String errMsg)(Code)



setName
public void setName(String value)(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)



write
public void write(SOIFOutputStream ss)(Code)



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.