View Javadoc

1   /*
2    * Copyright 2005 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  package org.apache.pluto.descriptors.portlet;
17  
18  import java.util.List;
19  import java.util.ArrayList;
20  
21  /***
22   * Bare bones implementation of the Portlet descriptor.
23   * Eventually this should be flushed out :), but for the sake
24   * of timing I'll be lazy for now.
25   *
26   * @author <a href="ddewolf@apache.org">David H. DeWolf</a>
27   * @version $Id: PortletDD.java 157475 2005-03-14 22:13:18Z ddewolf $
28   * @since Mar 6, 2005
29   */
30  public class PortletDD {
31  
32      /*** The unique name of the portlet. */
33      private String portletName;
34  
35      /*** The class which implements the portlet interface. */
36      private String portletClass;
37  
38      /*** All security role references. */
39      private List securityRoleRefs = new ArrayList();
40  
41      /***
42       * Default Constructor.
43       */
44      public PortletDD() {
45  
46      }
47  
48      /***
49       * Retrieve the unique name of the portlet.
50       * @return
51       */
52      public String getPortletName() {
53          return portletName;
54      }
55  
56      /***
57       * Set the unique name of the portlet.
58       * @param portletName
59       */
60      public void setPortletName(String portletName) {
61          this.portletName = portletName;
62      }
63  
64      /***
65       * Retrieve the name of the portlet class.
66       * @return the fully qualified portlet class name.
67       */
68      public String getPortletClass() {
69          return portletClass;
70      }
71  
72      /***
73       * Set the name of the portlet class.
74       * @param portletClass
75       */
76      public void setPortletClass(String portletClass) {
77          this.portletClass = portletClass;
78      }
79  
80      /***
81       * Retrieve the security role references for this portlet.
82       * @return
83       */
84      public List getSecurityRoleRefs() {
85          return securityRoleRefs;
86      }
87  
88      /***
89       * Set the security role references for this portlet.
90       * @param securityRoleRefs
91       */
92      public void setSecurityRoleRefs(List securityRoleRefs) {
93          this.securityRoleRefs = securityRoleRefs;
94      }
95  }
96