~ubuntu-branches/ubuntu/utopic/389-admin-console/utopic

« back to all changes in this revision

Viewing changes to src/com/netscape/management/admserv/config/IConfigDataModel.java

  • Committer: Package Import Robot
  • Author(s): Timo Aaltonen
  • Date: 2011-10-12 11:05:09 UTC
  • Revision ID: package-import@ubuntu.com-20111012110509-ybd1jr5xeat2ug1i
Tags: upstream-1.1.8
ImportĀ upstreamĀ versionĀ 1.1.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/** BEGIN COPYRIGHT BLOCK
 
2
 * Copyright (C) 2001 Sun Microsystems, Inc.  Used by permission.
 
3
 * Copyright (C) 2005 Red Hat, Inc.
 
4
 * All rights reserved.
 
5
 * 
 
6
 * This program is free software; you can redistribute it and/or
 
7
 * modify it under the terms of the GNU General Public License
 
8
 * as published by the Free Software Foundation; version 2
 
9
 * of the License.
 
10
 * 
 
11
 * This program is distributed in the hope that it will be useful,
 
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
 * GNU General Public License for more details.
 
15
 * 
 
16
 * You should have received a copy of the GNU General Public License
 
17
 * along with this program; if not, write to the Free Software
 
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
19
 * 
 
20
 * END COPYRIGHT BLOCK **/
 
21
package com.netscape.management.admserv.config;
 
22
 
 
23
/**
 
24
 * A generic interface for config dialog data model
 
25
 */
 
26
public interface IConfigDataModel {
 
27
 
 
28
    /**
 
29
     * Returns true id data model is loaded with server data
 
30
    */
 
31
    public boolean isLoaded();
 
32
 
 
33
    /**
 
34
     * Load data model from the server
 
35
     * @exception RemoteRequestException
 
36
    */
 
37
    public void load() throws RemoteRequestException;
 
38
 
 
39
    /**
 
40
     * Returns true is data model is modified
 
41
    */
 
42
    public boolean isModified();
 
43
 
 
44
    /**
 
45
     * Save data model to the server
 
46
     * @exception RemoteRequestException
 
47
    */
 
48
    public void save() throws RemoteRequestException;
 
49
 
 
50
    /**
 
51
     * Returns enumeration for attributes
 
52
     * @return Enumeration for attributes
 
53
    */
 
54
    public java.util.Enumeration getAttributes();
 
55
 
 
56
    /**
 
57
     * Get Value for the attribute with the specified name
 
58
     * @param attr the name of an attribute
 
59
     * @return value for the attribute
 
60
    */
 
61
    public String getAttribute(String attr);
 
62
 
 
63
    /**
 
64
     * Set the value for an attribute
 
65
     * @param attr the name for an attribute
 
66
     * @param val the value for the attribute
 
67
    */
 
68
    public void setAttribute(String attr,
 
69
            String val) throws ValidationException;
 
70
 
 
71
    /**
 
72
     * Return the model name. This can be the server name.
 
73
     * @return the identifier for the data model
 
74
    */
 
75
    public String getModelName();
 
76
}