001: /**
002: * Copyright 2004 Sun Microsystems, Inc. All
003: * rights reserved. Use of this product is subject
004: * to license terms. Federal Acquisitions:
005: * Commercial Software -- Government Users
006: * Subject to Standard License Terms and
007: * Conditions.
008: *
009: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
010: * are trademarks or registered trademarks of Sun Microsystems,
011: * Inc. in the United States and other countries.
012: */package com.sun.portal.search.admin.mbeans;
013:
014: import java.util.*;
015: import com.sun.portal.admin.common.PSMBeanException;
016: import com.sun.portal.search.rdm.RDMClassification;
017:
018: public interface CategoryMBean {
019:
020: // methods for Classification Rule management
021:
022: public ArrayList listClassRules(String ruleID)
023: throws PSMBeanException, java.net.UnknownHostException;
024:
025: public Boolean createClassRule(String source, String method,
026: String criterion, String category, Boolean isCaseSensitive)
027: throws PSMBeanException, java.net.UnknownHostException;
028:
029: public Boolean deleteClassRules(ArrayList ids)
030: throws PSMBeanException, java.net.UnknownHostException;
031:
032: public Boolean deleteClassRule(String ruleID)
033: throws PSMBeanException, java.net.UnknownHostException;
034:
035: public Boolean editClassRule(String ruleID, String source,
036: String method, String criterion, String category,
037: Boolean isCaseSensitive) throws PSMBeanException,
038: java.net.UnknownHostException;
039:
040: public Boolean syncClassConfig() throws PSMBeanException,
041: java.net.UnknownHostException;
042:
043: public Boolean existClassRule(String source, String method,
044: String criterion, String category)
045: throws java.net.UnknownHostException;
046:
047: public Boolean existClassRule(String source, String method,
048: String criterion, String category, String ruleID)
049: throws java.net.UnknownHostException;
050:
051: // method for Taxonomy administration
052:
053: public RDMClassification retrieveTaxTreeRoot()
054: throws PSMBeanException, java.net.UnknownHostException;
055:
056: public RDMClassification getTaxTreeNode(String nodeID)
057: throws PSMBeanException, java.net.UnknownHostException;
058:
059: public String retrieveTaxName() throws PSMBeanException,
060: java.net.UnknownHostException;
061:
062: public String retrieveTaxDesc() throws PSMBeanException,
063: java.net.UnknownHostException;
064:
065: public String retrieveTaxTreeRootName() throws PSMBeanException,
066: java.net.UnknownHostException;
067:
068: public String getTaxTreeNodeName(String nodeID)
069: throws PSMBeanException, java.net.UnknownHostException;
070:
071: public String getTaxTreeNodeDesc(String nodeID)
072: throws PSMBeanException, java.net.UnknownHostException;
073:
074: public String getTaxTreeNodeRule(String nodeID)
075: throws PSMBeanException, java.net.UnknownHostException;
076:
077: public ArrayList getTaxTreeDescendance(String parentID)
078: throws PSMBeanException, java.net.UnknownHostException;
079:
080: public ArrayList getTaxTreeChildren(String nodeID)
081: throws PSMBeanException, java.net.UnknownHostException;
082:
083: public Boolean deleteTaxTreeNode(String nodeID)
084: throws PSMBeanException, java.net.UnknownHostException;
085:
086: public Boolean insertTaxTreeChildNode(String parentID,
087: String nodeID, String nodeDesc, String nodeRule)
088: throws PSMBeanException, java.net.UnknownHostException;
089:
090: public Boolean insertTaxTreeSiblingNode(String nodeID,
091: String siblingID, String siblingDesc, String siblingRule)
092: throws PSMBeanException, java.net.UnknownHostException;
093:
094: public Boolean updateTaxTreeNode(String currentID, String newId,
095: String newDesc, String newRule) throws PSMBeanException,
096: java.net.UnknownHostException;
097:
098: public ArrayList searchTaxTree(String searchserver, String query,
099: String numOfHits, String scope) throws PSMBeanException,
100: java.net.UnknownHostException;
101:
102: public String reindexTaxTree() throws PSMBeanException,
103: java.net.UnknownHostException;
104:
105: public Boolean needReindex() throws PSMBeanException,
106: java.net.UnknownHostException;
107:
108: public Boolean syncTaxFile() throws PSMBeanException,
109: java.net.UnknownHostException;
110:
111: public Boolean isOutOfSync() throws PSMBeanException,
112: java.net.UnknownHostException;
113: }
|