001: /*
002: * Copyright 2005 Sun Microsystems, Inc. All
003: * rights reserved. Use of this product is subject
004: * to license terms. Federal Acquisitions:
005: * Commercial Software -- Government Users
006: * Subject to Standard License Terms and
007: * Conditions.
008: *
009: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
010: * are trademarks or registered trademarks of Sun Microsystems,
011: * Inc. in the United States and other countries.
012: * You can then make changes to the template in the Source Editor.
013: */
014:
015: package com.sun.portal.wsrp.common.registry.ebxml;
016:
017: import com.sun.portal.wsrp.common.registry.WSRPOrganization;
018: import com.sun.portal.wsrp.common.registry.WSRPProducer;
019: import com.sun.portal.wsrp.common.registry.WSRPPortlet;
020:
021: import java.util.List;
022: import java.util.ArrayList;
023:
024: public class WSRPOrganizationImpl implements WSRPOrganization {
025:
026: private String name = null;
027: private String description = null;
028: private String key = null;
029: private List portlets = new ArrayList();
030: private List producers = new ArrayList();
031: private String personName = null;
032: private String personPhoneNo = null;
033: private String personEmail = null;
034:
035: public WSRPOrganizationImpl() {
036: }
037:
038: public void addPortlet(WSRPPortlet portlet) {
039: portlets.add(portlet);
040: }
041:
042: public void addProducer(WSRPProducer producer) {
043: producers.add(producer);
044: }
045:
046: public String getDescription() {
047: return this .description;
048: }
049:
050: public String getName() {
051: return this .name;
052: }
053:
054: public void removePortlet(WSRPPortlet portlet) {
055: portlets.remove(portlet);
056: }
057:
058: public void removeProducer(WSRPProducer producer) {
059: producers.remove(producer);
060: }
061:
062: public void setDescription(String description) {
063: this .description = description;
064: }
065:
066: public void setName(String name) {
067: this .name = name;
068: }
069:
070: public String getKey() {
071: return this .key;
072: }
073:
074: public void setKey(String key) {
075: this .key = key;
076: }
077:
078: public List getProducers() {
079: return producers;
080: }
081:
082: public List getPortlets() {
083: return portlets;
084: }
085:
086: public String getEmail() {
087: return personEmail;
088: }
089:
090: public String getPersonName() {
091: return personName;
092: }
093:
094: public String getPersonPhoneNo() {
095: return personPhoneNo;
096: }
097:
098: public void setPersonName(String personName) {
099: this .personName = personName;
100: }
101:
102: public void setPersonPhoneNo(String phoneNo) {
103: this .personPhoneNo = phoneNo;
104: }
105:
106: public void setEmail(String email) {
107: this.personEmail = email;
108: }
109:
110: }
|