001: package com.sun.portal.search.admin.mbeans;
002:
003: import java.util.*;
004:
005: import com.sun.portal.admin.common.util.AdminUtil;
006: import com.sun.portal.admin.common.PSMBeanException;
007:
008: public interface SearchServerMBean {
009:
010: public static final String TYPE = AdminUtil.SEARCHSERVER_MBEAN_TYPE;
011:
012: public String getID();
013:
014: public String getHost();
015:
016: public String getPort();
017:
018: public String getInstance();
019:
020: public String getSearchServerID();
021:
022: public String getSearchServerRoot();
023:
024: public String getSearchServerURL();
025:
026: public void loadConfig();
027:
028: public void storeConfig();
029:
030: public String getConfigValue(String key);
031:
032: public void setConfigValue(String key, String value);
033:
034: public void removeConfigValue(String key);
035:
036: public String getBinDir();
037:
038: public String getLibDir();
039:
040: public String getConfigDir();
041:
042: public String getLogDir();
043:
044: public String getTmpDir();
045:
046: public String getDatabaseDir();
047:
048: public String getLibPath();
049:
050: public HashMap getConfigMap();
051:
052: public Properties retrieveVitals() throws PSMBeanException,
053: java.net.UnknownHostException;
054:
055: public Boolean retrieveDocumentLevelSecurity()
056: throws PSMBeanException, java.net.UnknownHostException;
057:
058: public void enableDocumentLevelSecurity() throws PSMBeanException,
059: java.net.UnknownHostException;
060:
061: public void disableDocumentLevelSecurity() throws PSMBeanException,
062: java.net.UnknownHostException;
063:
064: public void createImportAgent(String fileData,
065: String destinationDatabase) throws PSMBeanException,
066: java.net.UnknownHostException;
067:
068: public void createImportAgent(Properties p,
069: String destinationDatabase) throws PSMBeanException,
070: java.net.UnknownHostException;
071:
072: public void deleteImportAgents(List ids) throws PSMBeanException,
073: java.net.UnknownHostException;
074:
075: public ArrayList getAllImportAgents(List attributes)
076: throws PSMBeanException, java.net.UnknownHostException;
077:
078: public Properties getImportAgent(String id, List attributes)
079: throws PSMBeanException, java.net.UnknownHostException;
080:
081: public void editImportAgent(String id, String fileName,
082: String destinationDatabase) throws PSMBeanException,
083: java.net.UnknownHostException;
084:
085: public void editImportAgent(String id, Properties p,
086: String destinationDatabase) throws PSMBeanException,
087: java.net.UnknownHostException;
088:
089: public void enableImportAgents(List ids) throws PSMBeanException,
090: java.net.UnknownHostException;
091:
092: public void disableImportAgents(List ids) throws PSMBeanException,
093: java.net.UnknownHostException;
094:
095: public void runImportAgents() throws PSMBeanException,
096: java.net.UnknownHostException;
097:
098: public Boolean isImportAgentsRunning() throws PSMBeanException,
099: java.net.UnknownHostException;
100:
101: public void createResourceDescription(byte[] fileData,
102: String database) throws PSMBeanException,
103: java.net.UnknownHostException;
104:
105: public void createResourceDescription(Map attributes,
106: String database) throws PSMBeanException,
107: java.net.UnknownHostException;
108:
109: public void deleteResourceDescriptions(List urls, String database)
110: throws PSMBeanException, java.net.UnknownHostException;
111:
112: public ArrayList getAllResourceDescriptions(String searchType,
113: String query, List viewAttributes, Integer startPage,
114: Integer hitsPerPage, String database)
115: throws PSMBeanException, java.net.UnknownHostException;
116:
117: public void editResourceDescriptions(List urls, Map attributes,
118: String database) throws PSMBeanException,
119: java.net.UnknownHostException;
120:
121: public void editResourceDescriptions(String fileData,
122: String database) throws PSMBeanException,
123: java.net.UnknownHostException;
124:
125: public void createSchema(String name, String description,
126: String aliases, Boolean editable, Boolean indexable,
127: String scoreMultiplier, String dataType)
128: throws PSMBeanException, java.net.UnknownHostException;
129:
130: public void deleteSchema(String name) throws PSMBeanException,
131: java.net.UnknownHostException;
132:
133: public ArrayList retrieveAllSchema() throws PSMBeanException,
134: java.net.UnknownHostException;
135:
136: public Properties getSchemaAttributes(String name)
137: throws PSMBeanException, java.net.UnknownHostException;
138:
139: public void setSchemaAttributes(String schemaName, String name,
140: String description, String aliases, Boolean editable,
141: Boolean indexable, String scoreMultiplier, String dataType)
142: throws PSMBeanException, java.net.UnknownHostException;
143:
144: public void restoreSchema() throws PSMBeanException,
145: java.net.UnknownHostException;
146:
147: public String getReport(String logType, Integer lineLimit)
148: throws PSMBeanException, java.net.UnknownHostException;
149:
150: public ArrayList getPopularSearch(Boolean cache, Boolean skipBrowse)
151: throws PSMBeanException, java.net.UnknownHostException;
152:
153: public String runRDManager(String arguments)
154: throws PSMBeanException, java.net.UnknownHostException;
155:
156: public String retrieveStartRobotCommand() throws PSMBeanException,
157: java.net.UnknownHostException;
158:
159: public String retrieveStopRobotCommand() throws PSMBeanException,
160: java.net.UnknownHostException;
161:
162: public String retrieveStartImportAgentCommand()
163: throws PSMBeanException, java.net.UnknownHostException;
164:
165: public String retrieveStartAutoclassifyCommand()
166: throws PSMBeanException, java.net.UnknownHostException;
167:
168: }
|