001: /******************************************************************************
002: * JBoss, a division of Red Hat *
003: * Copyright 2006, Red Hat Middleware, LLC, and individual *
004: * contributors as indicated by the @authors tag. See the *
005: * copyright.txt in the distribution for a full listing of *
006: * individual contributors. *
007: * *
008: * This is free software; you can redistribute it and/or modify it *
009: * under the terms of the GNU Lesser General Public License as *
010: * published by the Free Software Foundation; either version 2.1 of *
011: * the License, or (at your option) any later version. *
012: * *
013: * This software is distributed in the hope that it will be useful, *
014: * but WITHOUT ANY WARRANTY; without even the implied warranty of *
015: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
016: * Lesser General Public License for more details. *
017: * *
018: * You should have received a copy of the GNU Lesser General Public *
019: * License along with this software; if not, write to the Free *
020: * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
021: * 02110-1301 USA, or see the FSF site: http://www.fsf.org. *
022: ******************************************************************************/package org.jboss.portal.wsrp.core;
023:
024: import java.io.Serializable;
025:
026: public class ServiceDescription implements Serializable {
027: protected boolean requiresRegistration;
028: protected org.jboss.portal.wsrp.core.PortletDescription[] offeredPortlets;
029: protected org.jboss.portal.wsrp.core.ItemDescription[] userCategoryDescriptions;
030: protected org.jboss.portal.wsrp.core.ItemDescription[] customUserProfileItemDescriptions;
031: protected org.jboss.portal.wsrp.core.ItemDescription[] customWindowStateDescriptions;
032: protected org.jboss.portal.wsrp.core.ItemDescription[] customModeDescriptions;
033: protected org.jboss.portal.wsrp.core.CookieProtocol requiresInitCookie;
034: protected org.jboss.portal.wsrp.core.ModelDescription registrationPropertyDescription;
035: protected java.lang.String[] locales;
036: protected org.jboss.portal.wsrp.core.ResourceList resourceList;
037: protected org.jboss.portal.wsrp.core.Extension[] extensions;
038:
039: public ServiceDescription() {
040: }
041:
042: public ServiceDescription(
043: boolean requiresRegistration,
044: org.jboss.portal.wsrp.core.PortletDescription[] offeredPortlets,
045: org.jboss.portal.wsrp.core.ItemDescription[] userCategoryDescriptions,
046: org.jboss.portal.wsrp.core.ItemDescription[] customUserProfileItemDescriptions,
047: org.jboss.portal.wsrp.core.ItemDescription[] customWindowStateDescriptions,
048: org.jboss.portal.wsrp.core.ItemDescription[] customModeDescriptions,
049: org.jboss.portal.wsrp.core.CookieProtocol requiresInitCookie,
050: org.jboss.portal.wsrp.core.ModelDescription registrationPropertyDescription,
051: java.lang.String[] locales,
052: org.jboss.portal.wsrp.core.ResourceList resourceList,
053: org.jboss.portal.wsrp.core.Extension[] extensions) {
054: this .requiresRegistration = requiresRegistration;
055: this .offeredPortlets = offeredPortlets;
056: this .userCategoryDescriptions = userCategoryDescriptions;
057: this .customUserProfileItemDescriptions = customUserProfileItemDescriptions;
058: this .customWindowStateDescriptions = customWindowStateDescriptions;
059: this .customModeDescriptions = customModeDescriptions;
060: this .requiresInitCookie = requiresInitCookie;
061: this .registrationPropertyDescription = registrationPropertyDescription;
062: this .locales = locales;
063: this .resourceList = resourceList;
064: this .extensions = extensions;
065: }
066:
067: public boolean isRequiresRegistration() {
068: return requiresRegistration;
069: }
070:
071: public void setRequiresRegistration(boolean requiresRegistration) {
072: this .requiresRegistration = requiresRegistration;
073: }
074:
075: public org.jboss.portal.wsrp.core.PortletDescription[] getOfferedPortlets() {
076: return offeredPortlets;
077: }
078:
079: public void setOfferedPortlets(
080: org.jboss.portal.wsrp.core.PortletDescription[] offeredPortlets) {
081: this .offeredPortlets = offeredPortlets;
082: }
083:
084: public org.jboss.portal.wsrp.core.ItemDescription[] getUserCategoryDescriptions() {
085: return userCategoryDescriptions;
086: }
087:
088: public void setUserCategoryDescriptions(
089: org.jboss.portal.wsrp.core.ItemDescription[] userCategoryDescriptions) {
090: this .userCategoryDescriptions = userCategoryDescriptions;
091: }
092:
093: public org.jboss.portal.wsrp.core.ItemDescription[] getCustomUserProfileItemDescriptions() {
094: return customUserProfileItemDescriptions;
095: }
096:
097: public void setCustomUserProfileItemDescriptions(
098: org.jboss.portal.wsrp.core.ItemDescription[] customUserProfileItemDescriptions) {
099: this .customUserProfileItemDescriptions = customUserProfileItemDescriptions;
100: }
101:
102: public org.jboss.portal.wsrp.core.ItemDescription[] getCustomWindowStateDescriptions() {
103: return customWindowStateDescriptions;
104: }
105:
106: public void setCustomWindowStateDescriptions(
107: org.jboss.portal.wsrp.core.ItemDescription[] customWindowStateDescriptions) {
108: this .customWindowStateDescriptions = customWindowStateDescriptions;
109: }
110:
111: public org.jboss.portal.wsrp.core.ItemDescription[] getCustomModeDescriptions() {
112: return customModeDescriptions;
113: }
114:
115: public void setCustomModeDescriptions(
116: org.jboss.portal.wsrp.core.ItemDescription[] customModeDescriptions) {
117: this .customModeDescriptions = customModeDescriptions;
118: }
119:
120: public org.jboss.portal.wsrp.core.CookieProtocol getRequiresInitCookie() {
121: return requiresInitCookie;
122: }
123:
124: public void setRequiresInitCookie(
125: org.jboss.portal.wsrp.core.CookieProtocol requiresInitCookie) {
126: this .requiresInitCookie = requiresInitCookie;
127: }
128:
129: public org.jboss.portal.wsrp.core.ModelDescription getRegistrationPropertyDescription() {
130: return registrationPropertyDescription;
131: }
132:
133: public void setRegistrationPropertyDescription(
134: org.jboss.portal.wsrp.core.ModelDescription registrationPropertyDescription) {
135: this .registrationPropertyDescription = registrationPropertyDescription;
136: }
137:
138: public java.lang.String[] getLocales() {
139: return locales;
140: }
141:
142: public void setLocales(java.lang.String[] locales) {
143: this .locales = locales;
144: }
145:
146: public org.jboss.portal.wsrp.core.ResourceList getResourceList() {
147: return resourceList;
148: }
149:
150: public void setResourceList(
151: org.jboss.portal.wsrp.core.ResourceList resourceList) {
152: this .resourceList = resourceList;
153: }
154:
155: public org.jboss.portal.wsrp.core.Extension[] getExtensions() {
156: return extensions;
157: }
158:
159: public void setExtensions(
160: org.jboss.portal.wsrp.core.Extension[] extensions) {
161: this.extensions = extensions;
162: }
163: }
|