View Javadoc

1   /* ===================================================================
2    * Copyright 2002-04 SRI International.
3    * Released under the MOZILLA PUBLIC LICENSE Version 1.1
4    * which can be obtained at http://www.mozilla.org/MPL/MPL-1.1.html
5    * This software is distributed on an "AS IS"
6    * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
7    * See the License for the specific language governing rights and
8    * limitations under the License.
9    * =================================================================== */
10  package com.sri.emo.dbobj;
11  
12  import com.jcorporate.expresso.core.db.DBException;
13  
14  import java.util.ArrayList;
15  
16  
17  /***
18   * @author Larry Hamel
19   */
20  public interface ISetting {
21  
22      ISetting getInstance(String parentId, String nodeId) throws DBException;
23  
24      void setValue(String entry) throws DBException;
25  
26      String getSettingTargetId() throws DBException;
27  
28      Node getSettingTarget() throws DBException;
29  
30      String getDisplayValue() throws DBException;
31  
32      String getComment() throws DBException;
33  
34      boolean canWrite(int uid, boolean valueIfNew)
35              throws DBException;
36  
37      String getTemplateId() throws DBException;
38  
39      void setSettingTargetId(String nodeId) throws DBException;
40  
41      void setTemplateId(String nodeId) throws DBException;
42  
43      void setComment(String s) throws DBException;
44  
45      /***
46       * @return list of found items; never null. ArrayList used to match DBObject prototype
47       */
48      ArrayList searchAndRetrieveList() throws DBException;
49  }