View Javadoc

1   /**
2    * Copyright (C) 2005-2009 Alfresco Software Limited.
3    *
4    * This file is part of the Spring Surf Extension project.
5    *
6    * Licensed under the Apache License, Version 2.0 (the "License");
7    * you may not use this file except in compliance with the License.
8    * You may obtain a copy of the License at
9    *
10   *  http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing, software
13   * distributed under the License is distributed on an "AS IS" BASIS,
14   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   * See the License for the specific language governing permissions and
16   * limitations under the License.
17   */
18  
19  package org.springframework.extensions.webscripts;
20  
21  
22  /**
23   * Script / Template Model representing the server hosting the Web Script Framework
24   * 
25   * @author davidc
26   */
27  public interface ServerModel
28  {
29      /**
30       * Gets the Container Name
31       * 
32       * @return  container name
33       */
34      public String getContainerName();
35  
36      /**
37       * Gets the Id of the server instance
38       * 
39       * @return  id
40       */
41      public String getId();
42      
43      /**
44       * Gets the Name of the server instance
45       */
46      public String getName();
47      
48      /**
49       * Gets the major version number, e.g. <u>1</u>.2.3
50       * 
51       * @return  major version number
52       */
53      public String getVersionMajor();
54      
55      /**
56       * Gets the minor version number, e.g. 1.<u>2</u>.3
57       * 
58       * @return  minor version number
59       */
60      public String getVersionMinor();
61      
62      /**
63       * Gets the version revision number, e.g. 1.2.<u>3</u>
64       * 
65       * @return  revision number
66       */
67      public String getVersionRevision();
68  
69      /**
70       * Gets the version label
71       * 
72       * @return  the version label
73       */
74      public String getVersionLabel();
75      
76      /**
77       * Gets the build number 
78       * 
79       * @return  the build number i.e. build-1
80       */
81      public String getVersionBuild();
82  
83      /**
84       * Gets the full version number
85       * 
86       * @return  full version number as major.minor.revision (label)
87       */
88      public String getVersion();
89      
90      /**
91       * Gets the edition
92       *  
93       * @return  the edition
94       */
95      public String getEdition();
96      
97      /**
98       * Gets the schema number
99       * 
100      * @return a positive integer
101      */
102     public int getSchema();
103 
104 }