| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | |
|
| 16 | |
|
| 17 | |
package org.apache.ws.scout.registry.infomodel; |
| 18 | |
|
| 19 | |
import java.net.URL; |
| 20 | |
import java.util.ArrayList; |
| 21 | |
import java.util.Collection; |
| 22 | |
|
| 23 | |
import javax.xml.registry.JAXRException; |
| 24 | |
import javax.xml.registry.LifeCycleManager; |
| 25 | |
import javax.xml.registry.UnsupportedCapabilityException; |
| 26 | |
import javax.xml.registry.infomodel.Organization; |
| 27 | |
import javax.xml.registry.infomodel.PersonName; |
| 28 | |
import javax.xml.registry.infomodel.User; |
| 29 | |
|
| 30 | |
|
| 31 | |
|
| 32 | |
|
| 33 | |
|
| 34 | |
|
| 35 | |
|
| 36 | |
public class UserImpl extends RegistryObjectImpl implements User |
| 37 | |
{ |
| 38 | 123 | private PersonName personName = null; |
| 39 | |
|
| 40 | 123 | private Collection postalAddresses = new ArrayList(); |
| 41 | 123 | private Collection emailAddresses = new ArrayList(); |
| 42 | 123 | private Collection telnumbers = new ArrayList(); |
| 43 | |
|
| 44 | 123 | private String type = ""; |
| 45 | |
|
| 46 | 123 | private Organization org = null; |
| 47 | |
|
| 48 | |
|
| 49 | |
|
| 50 | |
|
| 51 | |
public UserImpl(LifeCycleManager lifeCycleManager) |
| 52 | |
{ |
| 53 | 123 | super(lifeCycleManager); |
| 54 | 123 | } |
| 55 | |
|
| 56 | |
public Organization getOrganization() throws JAXRException |
| 57 | |
{ |
| 58 | 0 | return org; |
| 59 | |
} |
| 60 | |
|
| 61 | |
public PersonName getPersonName() throws JAXRException |
| 62 | |
{ |
| 63 | 176 | return personName; |
| 64 | |
} |
| 65 | |
|
| 66 | |
public Collection getPostalAddresses() throws JAXRException |
| 67 | |
{ |
| 68 | 34 | return postalAddresses; |
| 69 | |
} |
| 70 | |
|
| 71 | |
public Collection getTelephoneNumbers(String str) |
| 72 | |
throws JAXRException |
| 73 | |
{ |
| 74 | 38 | return telnumbers; |
| 75 | |
} |
| 76 | |
|
| 77 | |
public String getType() throws JAXRException |
| 78 | |
{ |
| 79 | 64 | return type; |
| 80 | |
} |
| 81 | |
|
| 82 | |
public URL getUrl() throws JAXRException |
| 83 | |
{ |
| 84 | 0 | throw new UnsupportedCapabilityException(); |
| 85 | |
} |
| 86 | |
|
| 87 | |
public void setEmailAddresses(Collection collection) |
| 88 | |
throws JAXRException |
| 89 | |
{ |
| 90 | 121 | emailAddresses = collection; |
| 91 | 121 | } |
| 92 | |
|
| 93 | |
public void setPersonName(PersonName pname) throws JAXRException |
| 94 | |
{ |
| 95 | 121 | personName = pname; |
| 96 | 121 | } |
| 97 | |
|
| 98 | |
public void setPostalAddresses(Collection collection) |
| 99 | |
throws JAXRException |
| 100 | |
{ |
| 101 | 121 | postalAddresses = collection; |
| 102 | 121 | } |
| 103 | |
|
| 104 | |
public void setTelephoneNumbers(Collection collection) |
| 105 | |
throws JAXRException |
| 106 | |
{ |
| 107 | 121 | telnumbers = collection; |
| 108 | 121 | } |
| 109 | |
|
| 110 | |
public void setType(String str) throws JAXRException |
| 111 | |
{ |
| 112 | 91 | type = str; |
| 113 | 91 | } |
| 114 | |
|
| 115 | |
public void setUrl(URL uRL) throws JAXRException |
| 116 | |
{ |
| 117 | 0 | throw new UnsupportedCapabilityException(); |
| 118 | |
} |
| 119 | |
|
| 120 | |
public Collection getEmailAddresses() throws JAXRException |
| 121 | |
{ |
| 122 | 38 | return emailAddresses; |
| 123 | |
} |
| 124 | |
|
| 125 | |
|
| 126 | |
public void setOrganization(Organization o) |
| 127 | |
{ |
| 128 | 121 | org = o; |
| 129 | 121 | } |
| 130 | |
} |