KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > admin > server > core > ManualChangeStatus


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23
24 package com.sun.enterprise.admin.server.core;
25
26 //Tomcat
27
import com.sun.enterprise.instance.InstanceEnvironment;
28
29 /**
30     This class holds the result of Manual change check for 1 instance.
31     It is a simple bean with getter and setter of all files that are used for checking
32     Note: the list of files should be in sync with InstanceEnvironment.java
33     @author Sridatta
34     @version 1.1
35 */

36
37 public final class ManualChangeStatus {
38     private boolean objectFileChanged = false;
39     private boolean initFileChanged = false;
40     private boolean realmsKeyFileChanged = false;
41     private boolean serverXmlFileChanged = false;
42     private boolean aclFileChanged = false;
43     private boolean mimeFileChanged = false;
44     private boolean virtualServerConfFilesChanged = false;
45     
46     public boolean isObjectFileChanged() {
47         return objectFileChanged;
48     }
49     
50     public boolean isInitFileChanged() {
51         return initFileChanged;
52     }
53         
54     public boolean isRealmsKeyFileChanged() {
55         return realmsKeyFileChanged;
56     }
57             
58     public boolean isServerXmlFileChanged() {
59         return serverXmlFileChanged;
60     }
61                 
62     public boolean isAclFileChanged() {
63         return aclFileChanged;
64     }
65     public boolean isMimeFileChanged() {
66         return mimeFileChanged;
67     }
68
69     public boolean isVirtualServerConfFilesChanged() {
70         return virtualServerConfFilesChanged;
71     }
72
73     public void setObjectFileChanged(boolean value) {
74         objectFileChanged = value;
75     }
76     
77     public void setInitFileChanged(boolean value) {
78         initFileChanged = value;
79     }
80         
81     public void setRealmsKeyFileChanged(boolean value) {
82         realmsKeyFileChanged = value;
83     }
84             
85     public void setServerXmlFileChanged(boolean value) {
86         serverXmlFileChanged = value;
87     }
88                 
89     public void setAclFileChanged(boolean value) {
90         aclFileChanged = value;
91     }
92     public void setMimeFileChanged(boolean value) {
93         mimeFileChanged = value;
94     }
95     
96     public void setVirtualServerConfFilesChanged(boolean value) {
97         virtualServerConfFilesChanged = value;
98     }
99
100     public boolean isChanged() {
101         /* TOMCAT_BEGIN Ramakanth */
102         return (isServerXmlFileChanged() ||
103             isRealmsKeyFileChanged());
104         /* TOMCAT_END Ramakanth */
105     }
106
107     public String JavaDoc toString() {
108         /* TOMCAT_BEGIN Ramakanth */
109         return "ManualChangeStatus:\n" +
110             "\tserverXmlFileChanged = " + serverXmlFileChanged + "\n" +
111             "\trealmsKeyFileChanged = " + realmsKeyFileChanged + "\n";
112         /* TOMCAT_END Ramakanth */
113     }
114     
115 }
116
Popular Tags