com.beasys.commerce.portal.admin.jspbeans
Class UserPersonalizationJspBean
java.lang.Object
|
+--com.beasys.commerce.axiom.jsp.JspBeanBase
|
+--com.beasys.commerce.portal.admin.jspbeans.PortalJspBean
|
+--com.beasys.commerce.portal.admin.jspbeans.PortletJspBean
|
+--com.beasys.commerce.portal.admin.jspbeans.PortalPersonalizationJspBean
|
+--com.beasys.commerce.portal.admin.jspbeans.GroupPersonalizationJspBean
|
+--com.beasys.commerce.portal.admin.jspbeans.UserPersonalizationJspBean
- All Implemented Interfaces:
- java.lang.Cloneable, KeyedObject, Portal, Portlet, java.io.Serializable
- public class UserPersonalizationJspBean
- extends GroupPersonalizationJspBean
- implements Portlet
The <jsp:usebean> used by the Portal End User Tool
_user_add_portlets.jsp.
- Version:
- $Revision: 6$, $Date: 3/7/00 1:38:16 PM$
- Author:
- Steve Willcox
- See Also:
- Serialized Form
| Fields inherited from class com.beasys.commerce.portal.admin.jspbeans.PortletJspBean |
alternateFooterURL, alternateHeaderURL, bannerURL, categoryId, column, editURL, floatable, hasHelp, helpURL, iconURL, isEditable, isMandatory, isMinimized, loginRequired, maximizeable, maximizedURL, minimizeable, moveable, row, titlebarURL, visible |
|
Method Summary |
Portlet[] |
getAvailablePortlets(Portlet[] availablePortlets,
Portlet[][] allMyPortlets)
|
long |
getUserId()
Get user id. |
java.lang.String |
getUserName()
Gets the user name attribute for this bean. |
Portlet[][] |
getVisiblePortlets(Portlet[] availablePortlets,
Portlet[][] allMyPortlets,
int numCols)
Get visible portlets. |
protected void |
sequencePortletsForUser(java.lang.String aPortalName,
java.lang.String aGroupName,
java.lang.String aUserName,
java.util.Vector aPortletVec)
Re-sequences a column of portlets for the user. |
void |
setUserId(long aUserId)
Set user id. |
void |
setUserName(java.lang.String userName)
Sets the user name attribute for this bean. |
boolean |
updatePortletUser(java.lang.String thePortalName,
java.lang.String theGroupName,
java.lang.String theUserName,
Portlet thePortlet)
Adds/removes/updates portlets for a user based in information in the request
params. |
java.lang.String |
updateUserWithPortlets(javax.servlet.http.HttpServletRequest request,
Portal portal,
Portlet[] portlets)
Update user with portlets. |
java.lang.String |
updateUserWithPortlets(javax.servlet.http.HttpServletRequest request,
Portal portal,
java.lang.String[] existingPortlets,
java.lang.String[] schemaPortlets)
Adds/removes portlets to a portal user based in information in the request
params. |
| Methods inherited from class com.beasys.commerce.portal.admin.jspbeans.GroupPersonalizationJspBean |
getAlternateFooterURL, getAlternateHeaderURL, getBannerURL, getGroupId, getGroupName, getMaximizedURL, isAvailable, sequencePortletsForGroup, setAlternateFooterURL, setAlternateHeaderURL, setAvailable, setBannerURL, setGroupId, setGroupName, setMaximizedURL, updateGroupWithPortlet, updateGroupWithPortlets, updatePortletGroup |
| Methods inherited from class com.beasys.commerce.portal.admin.jspbeans.PortletJspBean |
getCategoryId, getColumn, getEditURL, getHelpURL, getIconURL, getRow, getTitlebarURL, hasHelp, isEditable, isFloatable, isLoginRequired, isMandatory, isMaximizeable, isMinimizeable, isMinimized, isMoveable, isVisible, setCategoryId, setColumn, setEditable, setEditURL, setFloatable, setHelp, setHelpURL, setIconURL, setLoginRequired, setMandatory, setMaximizeable, setMinimizeable, setMinimized, setMoveable, setRow<
|
| Methods inherited from class com.beasys.commerce.portal.admin.jspbeans.PortalJspBean |
clone, getContentColumnCount, getContentColumnCountStr, getContentURL, getFooterURL, getHeaderURL, getName, getPK, getSuspendedURL, isSuspended, setContentColumnCount, setContentColumnCountStr, setContentURL, setFooterURL, setHeaderURL, setName, setPK, setSuspended, setSuspendedURL |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.beasys.commerce.portal.Portlet |
clone, getAlternateFooterURL, getAlternateHeaderURL, getBannerURL, getCategoryId, getColumn, getEditURL, getHelpURL, getIconURL, getMaximizedURL, getRow, getTitlebarURL, hasHelp, isAvailable, isEditable, isFloatable, isLoginRequired, isMandatory, isMaximizeable, isMinimizeable, isMinimized, isMoveable, isVisible, setAlternateFooterURL, setAlternateHeaderURL, setAvailable, setBannerURL, setCategoryId, setColumn, setEditable, setEditURL, setFloatable, setHelp, setHelpURL, setIconURL, setLoginRequired, setMandatory, setMaximizeab
|
| Methods inherited from interface com.beasys.commerce.portal.Portal |
getContentColumnCount, getContentURL, getFooterURL, getHeaderURL, getName, getSuspendedURL, isSuspended, setContentColumnCount, setContentURL, setFooterURL, setHeaderURL, setName, setSuspended, setSuspendedURL |
userName
protected java.lang.String userName
- An HTTP request mapping attribute.
This attribute is contained in the HTTP request for
the JSP page associated with this <jsp:usebean>.
userId
protected long userId
ADD_PORTLET_PREFIX
public static final java.lang.String ADD_PORTLET_PREFIX
UserPersonalizationJspBean
public UserPersonalizationJspBean()
getUserName
public java.lang.String getUserName()
- Gets the user name attribute for this bean.
- Returns:
- The user name.
setUserName
public void setUserName(java.lang.String userName)
- Sets the user name attribute for this bean.
- Parameters:
userName - The user name.
getUserId
public long getUserId()
- Get user id.
- Returns:
long
setUserId
public void setUserId(long aUserId)
- Set user id.
- Parameters:
aUserId -
updatePortletUser
public boolean updatePortletUser(java.lang.String thePortalName,
java.lang.String theGroupName,
java.lang.String theUserName,
Portlet thePortlet)
- Adds/removes/updates portlets for a user based in information in the request
params.
- Parameters:
thePortalName - The name of the portal that the
portlet is associated with.theGroupName - The name of the portal group to
associate this portal.theUserName - The name of the user to
associate this portal.- Returns:
- true if successful; false if not.
updateUserWithPortlets
public java.lang.String updateUserWithPortlets(javax.servlet.http.HttpServletRequest request,
Portal portal,
java.lang.String[] existingPortlets,
java.lang.String[] schemaPortlets)
- Adds/removes portlets to a portal user based in information in the request
params.
- Parameters:
request - The HTTP request received by the JSP page associated with
this bean.portal - The Portal object associated with the request.existingPortlets - A String array of portlet names that represent
the existing visible portlets for the portal user.schemaPortlets - A String array of portlet names that represent
the available portlets for the portal user.- Returns:
- true if sucessful, false if not.
updateUserWithPortlets
public java.lang.String updateUserWithPortlets(javax.servlet.http.HttpServletRequest request,
Portal portal,
Portlet[] portlets)
- Update user with portlets.
- Parameters:
request - portal - portlets - - Returns:
String
sequencePortletsForUser
protected void sequencePortletsForUser(java.lang.String aPortalName,
java.lang.String aGroupName,
java.lang.String aUserName,
java.util.Vector aPortletVec)
- Re-sequences a column of portlets for the user.
It removes column 'holes' and duplicate row positions.
- Parameters:
aPortalName - The portal nameaGroupName - The portal group nameaUserName - The portal user nameaPortalVec - A vector of portlet references for all portlets
in the column.
getAvailablePortlets
public Portlet[] getAvailablePortlets(Portlet[] availablePortlets,
Portlet[][] allMyPortlets)
getVisiblePortlets
public Portlet[][] getVisiblePortlets(Portlet[] availablePortlets,
Portlet[][] allMyPortlets,
int numCols)
- Get visible portlets.
- Parameters:
availablePortlets - allMyPortlets - - Returns:
Portlet[][]
Copyright © 2000 BEA Systems, Inc. All Rights Reserved