|
BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.beasys.commerce.axiom.jsp.JspBeanBase
|
+--com.beasys.commerce.portal.admin.jspbeans.PortalLayoutJspBean
The class that includes various portlet layout algorithms used by the various layout.jsp (Administration Tool) pages.
| Field Summary | |
protected static boolean |
debug
Debugging flag. |
| Fields inherited from class com.beasys.commerce.axiom.jsp.JspBeanBase |
DEFAULT_CATEGORY |
| Constructor Summary | |
PortalLayoutJspBean()
Creates a new instance. |
|
| Method Summary | |
void |
calcXYForNewPortlets(java.util.LinkedList addList,
java.util.LinkedList sortedColumnList,
PortalColumnInformation[] columnInfo)
Calculates the X and Y for each portal in an 'add set' of portlets. |
protected int |
findFirstNarrowColumn(PortalColumnInformation[] columnInfo)
Returns the index of the first narrow column for a portal. |
protected int |
findFirstWideColumn(PortalColumnInformation[] columnInfo)
Returns the index of the first wide column for a portal. |
protected int |
findNextNarrowColumn(int curIdx,
PortalColumnInformation[] columnInfo)
Returns the index of the next narrow column for a portal. |
Portlet[][] |
getAllPortletsFor(java.lang.String aPortalName,
java.lang.String aGroupName,
java.lang.String aUserName)
Returns an 2 dimensional array (sorted in row/column) of AVAILABLE portlets for a portal for a portal, group, and user. |
Portlet[] |
getAvailablePortletsForPortal(java.lang.String aPortalName)
Returns an array of available portlets for a portal at the portal level. |
PortalColumnInformation[] |
getPortalColumnInfo(java.lang.String portalName)
Returns the column information for a portal. |
Portlet |
getPortletFor(java.lang.String layoutScope,
java.lang.String portalName,
java.lang.String groupName,
java.lang.String userName,
java.lang.String portletName)
Returns the visible portlets based upon the scope of the request. |
Portlet[][] |
getPortletRC(int numCols,
java.util.Hashtable aMap)
Redo the Row/Column representation of the portlets based on the new layout. |
java.lang.String[] |
getVisiblePortletNamesFor(java.lang.String layoutScope,
java.lang.String portalName,
java.lang.String groupName,
java.lang.String userName)
Returns the visible portlet names based upon the scope of the request. |
void |
processMoveCommand(java.lang.String theCommand,
Portlet thePortlet)
Processes a move command from the layout tool. |
boolean |
removePortletFor(java.lang.String layoutScope,
java.lang.String portalName,
java.lang.String groupName,
java.lang.String userName,
Portlet aPortlet)
Removes (turns off the visible bit) a portlet for the scope of the request. |
void |
resequencePortletsFor(java.lang.String layoutScope,
java.lang.String portalName,
java.lang.String groupName,
java.lang.String userName,
int thePortalColumn,
Portlet theMovedPortlet,
java.lang.String moveCmd)
Re-sequences the portlets for a given layout scope. |
void |
sequencePortlets(java.lang.String layoutScope,
java.lang.String portalName,
java.lang.String groupName,
java.lang.String userName,
java.util.Vector aPortletVec)
Sequences the portlets in a column for a given layout scope. |
void |
setPortalColumnInfo(Portal aPortal,
PortalColumnInformation[] colInfo)
Sets the portal column information for a portal. |
java.util.LinkedList |
sortIntoColumns(Portlet[] portlets,
PortalColumnInformation[] columnInfo)
Sorts an array of portlets into columns. |
void |
sortPortlets(java.util.ArrayList thePortletArrayList)
Sorts an ArrayList of portlets |
void |
sortPortlets(java.util.Vector thePortletVec)
Sorts a vector of portlets |
boolean |
updateColumnInfo(java.util.HashMap bufferedColWidthHashMap,
javax.servlet.http.HttpServletRequest request,
Portal thePortal)
Updates the column information for a Portal. |
boolean |
updatePortletFor(java.lang.String layoutScope,
java.lang.String portalName,
java.lang.String groupName,
java.lang.String userName,
Portlet aPortlet)
Updates a portlet for the scope of the request. |
boolean |
updatePortlets(java.util.HashMap thePortletHashMap,
javax.servlet.http.HttpServletRequest request,
java.lang.String layoutScope,
java.lang.String portalName,
java.lang.String groupName,
java.lang.String userName)
Updates a portlet for the scope of the request. |
boolean |
updatePortlets(java.util.HashMap thePortletHashMap,
javax.servlet.http.HttpServletRequest request,
java.lang.String layoutScope,
java.lang.String portalName,
java.lang.String groupName,
java.lang.String userName,
java.util.Hashtable originalMap)
Updates a portlet for the scope of the request. |
| Methods inherited from class com.beasys.commerce.axiom.jsp.JspBeanBase |
findStringInArray, hasSpecialHTMLChars, isStringLetterOrDigit, validateDoubleValue, validateDoubleValue, validateGroupName, validateIntValue, validateIntValue, validateLength, validateUserName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final boolean debug
| Constructor Detail |
public PortalLayoutJspBean()
| Method Detail |
public void sortPortlets(java.util.Vector thePortletVec)
thePortletVec - A vector of portlet references
that represent a column.public void sortPortlets(java.util.ArrayList thePortletArrayList)
thePortletArrayList - The array list of portlets
that represent a column.public Portlet[] getAvailablePortletsForPortal(java.lang.String aPortalName)
aPortalName - The portal name.
public Portlet[][] getAllPortletsFor(java.lang.String aPortalName,
java.lang.String aGroupName,
java.lang.String aUserName)
aPortalName - The portal name.aGroupName - The group name.aUserName - The user name.
public void resequencePortletsFor(java.lang.String layoutScope,
java.lang.String portalName,
java.lang.String groupName,
java.lang.String userName,
int thePortalColumn,
Portlet theMovedPortlet,
java.lang.String moveCmd)
layoutScope - The scope of the layout (portal, group, user)portalName - The name of the portal.groupName - The name of the group.userName - The name of the user.thePortalColumn - The position of the portal column affected.theMovedPortlet - The portlet that has moved.moveCmd - The move comand (MoveDown, MoveUp, MoveLeft, MoveRight, Remove).
public void sequencePortlets(java.lang.String layoutScope,
java.lang.String portalName,
java.lang.String groupName,
java.lang.String userName,
java.util.Vector aPortletVec)
layoutScope - The scope of the layout (portal, group, user)portalName - The name of the portal.groupName - The name of the group.userName - The name of the user.aPortletVec - A vector of portlets representing all portlets in a
column.
public java.util.LinkedList sortIntoColumns(Portlet[] portlets,
PortalColumnInformation[] columnInfo)
Portlets - An array of portlets to be sorted.columnInfo - The column information for the portal that
contains the portlets.
public void calcXYForNewPortlets(java.util.LinkedList addList,
java.util.LinkedList sortedColumnList,
PortalColumnInformation[] columnInfo)
addSet - a Set of Portlet references.sortedColumnSet - a Set of vectors containing portlets sorted
into columns.columnInfo - The column information for the portal.
Each vector is a column.protected int findFirstWideColumn(PortalColumnInformation[] columnInfo)
columnInfo - The portal's column information.protected int findFirstNarrowColumn(PortalColumnInformation[] columnInfo)
columnInfo - The portal's column information.
protected int findNextNarrowColumn(int curIdx,
PortalColumnInformation[] columnInfo)
curIdx - The current column index.columnInfo - The portal's column information.
public java.lang.String[] getVisiblePortletNamesFor(java.lang.String layoutScope,
java.lang.String portalName,
java.lang.String groupName,
java.lang.String userName)
layoutScope - The scope of the layout (portal, group, user)portalName - The name of the portal.groupName - The name of the group.userName - The name of the user.PortalFinderJspBean
public Portlet getPortletFor(java.lang.String layoutScope,
java.lang.String portalName,
java.lang.String groupName,
java.lang.String userName,
java.lang.String portletName)
layoutScope - The scope of the layout (portal, group, user)portalName - The name of the portal.groupName - The name of the group.userName - The name of the user.PortalFinderJspBean
public boolean removePortletFor(java.lang.String layoutScope,
java.lang.String portalName,
java.lang.String groupName,
java.lang.String userName,
Portlet aPortlet)
layoutScope - The scope of the layout (portal, group, user)portalName - The name of the portal.groupName - The name of the group.userName - The name of the user.aPortlet - The portlet to remove (make invisible).PortalFinderJspBean
public boolean updatePortletFor(java.lang.String layoutScope,
java.lang.String portalName,
java.lang.String groupName,
java.lang.String userName,
Portlet aPortlet)
layoutScope - The scope of the layout (portal, group, user)portalName - The name of the portal.groupName - The name of the group.userName - The name of the user.aPortlet - The portlet to remove (make invisible).PortalFinderJspBeanpublic PortalColumnInformation[] getPortalColumnInfo(java.lang.String portalName)
portalName - The name of the portal.
public void setPortalColumnInfo(Portal aPortal,
PortalColumnInformation[] colInfo)
aPortal - The Portal.colInfo - The column information.
public void processMoveCommand(java.lang.String theCommand,
Portlet thePortlet)
theCommand - The command to process
(MoveDown, MoveUp, MoveLeft, MoveRight, Remove).thePortlet - The portlet for the command.
public boolean updatePortlets(java.util.HashMap thePortletHashMap,
javax.servlet.http.HttpServletRequest request,
java.lang.String layoutScope,
java.lang.String portalName,
java.lang.String groupName,
java.lang.String userName)
request - The HTTP request.layoutScope - The scope of the layout (portal, group, user)portalName - The name of the portal.groupName - The name of the group.userName - The name of the user.
public boolean updateColumnInfo(java.util.HashMap bufferedColWidthHashMap,
javax.servlet.http.HttpServletRequest request,
Portal thePortal)
bufferedColWidthHashMap - The column widths.request - The HTTP request.thePortal - The portal.
public boolean updatePortlets(java.util.HashMap thePortletHashMap,
javax.servlet.http.HttpServletRequest request,
java.lang.String layoutScope,
java.lang.String portalName,
java.lang.String groupName,
java.lang.String userName,
java.util.Hashtable originalMap)
request - The HTTP request.layoutScope - The scope of the layout (portal, group, user)portalName - The name of the portal.groupName - The name of the group.userName - The name of the user.originalMap - the original values of the portlets. This will
be changed to match the new layout.
public Portlet[][] getPortletRC(int numCols,
java.util.Hashtable aMap)
aMap - numCols - Portlet[][]
|
BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||