01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: package org.apache.cocoon.portal.pluto.om.common;
18:
19: /**
20: *
21: * @version $Id: ResourceRef.java 433543 2006-08-22 06:22:54Z crossley $
22: */
23: public class ResourceRef {
24:
25: private String description = "my description";
26: private String name = "name";
27: private String type = "type";
28: private String auth = "container";
29: private String sharing = "shareable";
30:
31: /**
32: * @return description of the resource reference.
33: */
34: public String getDescription() {
35: return description;
36: }
37:
38: /**
39: * @return name of the reference.
40: */
41: public String getName() {
42: return name;
43: }
44:
45: /**
46: * Retrieve the type of resource referenced by this
47: * resource reference.
48: * @return the resource type.
49: */
50: public String getType() {
51: return type;
52: }
53:
54: /**
55: *
56: * @return the authorization type of the resource.
57: */
58: public String getAuth() {
59: return auth;
60: }
61:
62: public String getSharing() {
63: return sharing;
64: }
65:
66: /**
67: * @param string the resource reference description.
68: */
69: public void setDescription(String string) {
70: description = string;
71: }
72:
73: /**
74: * @param string the name of the resource reference
75: */
76: public void setName(String string) {
77: name = string;
78: }
79:
80: public void setType(String string) {
81: type = string;
82: }
83:
84: public void setAuth(String string) {
85: auth = string;
86: }
87:
88: public void setSharing(String string) {
89: sharing = string;
90: }
91: }
|