dlestrat 2004/04/25 09:30:56
Modified: commons/src/java/org/apache/jetspeed/om/common/portlet
PortletDefinitionComposite.java
Log:
This is a start at implementing PLT.17.2 Accessing User Attributes.
Revision Changes Path
1.9 +28 -1
jakarta-jetspeed-2/commons/src/java/org/apache/jetspeed/om/common/portlet/PortletDefinitionComposite.java
Index: PortletDefinitionComposite.java
===================================================================
RCS file:
/home/cvs/jakarta-jetspeed-2/commons/src/java/org/apache/jetspeed/om/common/portlet/PortletDefinitionComposite.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- PortletDefinitionComposite.java 25 Mar 2004 22:20:45 -0000 1.8
+++ PortletDefinitionComposite.java 25 Apr 2004 16:30:56 -0000 1.9
@@ -16,6 +16,7 @@
package org.apache.jetspeed.om.common.portlet;
import java.io.Serializable;
+import java.util.Collection;
import java.util.Locale;
import org.apache.jetspeed.om.common.GenericMetadata;
@@ -30,6 +31,7 @@
import org.apache.pluto.om.common.PreferenceSet;
import org.apache.pluto.om.common.SecurityRoleRef;
import org.apache.pluto.om.common.SecurityRoleRefSet;
+import org.apache.jetspeed.om.common.UserAttribute;
import org.apache.pluto.om.portlet.ContentType;
import org.apache.pluto.om.portlet.ContentTypeSet;
import org.apache.pluto.om.portlet.PortletApplicationDefinition;
@@ -70,6 +72,31 @@
void setInitSecurityRoleRefSet(SecurityRoleRefSet securityRefs);
+ /**
+ * <p>Adds a user attribute to the user attribute set.</p>
+ * @param name The user attribute name.
+ * @param description The user attribute description.
+ */
+ void addUserAttribute(String name, String description);
+
+ /**
+ * <p>Adds a user attribute to the user attribute set.</p>
+ * @param userAttribute The user attribute.
+ */
+ void addUserAttribute(UserAttribute userAttribute);
+
+ /**
+ * <p>Sets a user-attribute to the set of user attributes associated
+ * with this portlet.</p>
+ */
+ void setUserAttributeSet(Collection userAttributeSet);
+
+ /**
+ * <p>Gets the collection of user attributes associated
+ * with this portlet.</p>
+ */
+ Collection getUserAttributeSet();
+
/**
* Convenience method for directly adding init parameters
* to this <code>PortletDefinition.</code>. This has the
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]