dlestrat 2004/06/07 18:33:13 Modified: components/registry/src/java/org/apache/jetspeed/om/impl UserAttributeRefImpl.java Log: Finalizing http://nagoya.apache.org/jira/browse/JS2-64 Revision Changes Path 1.2 +30 -0 jakarta-jetspeed-2/components/registry/src/java/org/apache/jetspeed/om/impl/UserAttributeRefImpl.java Index: UserAttributeRefImpl.java =================================================================== RCS file: /home/cvs/jakarta-jetspeed-2/components/registry/src/java/org/apache/jetspeed/om/impl/UserAttributeRefImpl.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- UserAttributeRefImpl.java 5 Jun 2004 20:09:50 -0000 1.1 +++ UserAttributeRefImpl.java 8 Jun 2004 01:33:13 -0000 1.2 @@ -14,6 +14,7 @@ */ package org.apache.jetspeed.om.impl; +import org.apache.jetspeed.om.common.UserAttribute; import org.apache.jetspeed.om.common.UserAttributeRef; /** @@ -45,6 +46,17 @@ this.nameLink = nameLink; } + /** + * <p>User attribute ref constructor given a [EMAIL PROTECTED] UserAttribute}.</p> + * @param The user attribute ref name. + * @param The user attribute ref name link. + */ + public UserAttributeRefImpl(UserAttribute userAttribute) + { + this.name = userAttribute.getName(); + this.description = userAttribute.getDescription(); + } + private String name; /** @@ -79,6 +91,24 @@ public void setNameLink(String nameLink) { this.nameLink = nameLink; + } + + private String description; + + /** + * @see org.apache.jetspeed.om.common.UserAttributeRef#getDescription() + */ + public String getDescription() + { + return description; + } + + /** + * @see org.apache.jetspeed.om.common.UserAttributeRef#setDescription(java.lang.String) + */ + public void setDescription(String description) + { + this.description = description; } /**
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]