View Javadoc

1   /*
2    * Copyright 2003,2004 The Apache Software Foundation.
3    * 
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  
17  package org.apache.pluto.portalImpl.om.servlet.impl;
18  
19  public class ResourceRef  {
20      
21      private String description = "my description";
22      private String name = "name";
23      private String type = "type";
24      private String auth = "container";
25      private String sharing = "shareable";
26      
27      /***
28       * @return description of the resource reference.
29       */
30      public String getDescription() {
31          return description;
32      }
33  
34      /***
35       * @return name of the reference.
36       */
37      public String getName() {
38          return name;
39      }
40  
41      /***
42       * Retrieve the type of resource referenced by this
43       * resource reference.
44       * @return the resource type.
45       */
46      public String getType() {
47          return type;
48      }
49  
50      /***
51       *
52       * @return the authorization type of the resource.
53       */
54      public String getAuth() {
55          return auth;
56      }
57  
58      public String getSharing() {
59          return sharing;
60      }
61  
62      /***
63       * @param string the resource reference description.
64       */
65      public void setDescription(String string) {
66          description = string;
67      }
68  
69      /***
70       * @param string the name of the resource reference
71       */
72      public void setName(String string) {
73          name = string;
74      }
75  
76      public void setType(String string) {
77          type = string;
78      }
79  
80      public void setAuth(String string) {
81          auth = string;
82      }
83  
84      public void setSharing(String string) {
85          sharing = string;
86      }
87  
88  }