|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
com.bea.netuix.application.identifier.CommunityURI
public class CommunityURI
The CommunityURI is a convenience object for combining the webapp name, portal path, and desktop path which together uniquely identify a community. This is the most portable way to refer to a specific community (as opposed to a CommunityDefinitionId). A CommunityURI can be converted to a single String for easier storage or use as a URL parameter and can be reconstituted from the String. <p/> Note that if the context-root for a webapp is "/", the webapp name will be "/" and this will result in a CommunityURI beginning with two slashes. As long as this CommunityURI class is used to encode and decode CommunityURI values from strings, this is not a problem and is handled correctly. However, a URI beginning with two slashes is technically not a valid URI by the definition of a URI. <p/>The overview of community functionality contains a description of the community framework.
| Constructor Summary | |
|---|---|
CommunityURI(String webAppName, PortalPath portalPath, DesktopPath desktopPath)Construct a new CommunityURI. |
|
CommunityURI(String webAppName, String portalPath, String desktopPath)Construct a new CommunityURI. |
|
| Method Summary | |
|---|---|
static CommunityURI |
createCommunityURI(DesktopDefinitionId desktopDefinitionId)Creates a CommunityURI from the specified DesktopDefinitionId. |
static CommunityURI |
createCommunityURI(String uri)Creates a CommunityURI object from the specified String, which has the format webAppName/portalPath/desktopPath and is of the same format as the String returned by CommunityURI.toString(). |
boolean |
equals(Object o) |
String |
getDesktopPath()Returns the desktop path portion of this CommunityURI. |
String |
getPortalPath()Returns the portal path portion of this CommunityURI. |
String |
getWebAppName()Returns the webapp name portion of this CommunityURI. |
int |
hashCode() |
String |
toString()Returns a String representation of this CommunityURI object suitable for use with the CommunityURI.createCommunityUri() method. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CommunityURI(String webAppName,
String portalPath,
String desktopPath)
webAppName - the name of the webapp where the community will reside.portalPath - the part of the url that identifies this community's portal.desktopPath - the part of the url that identifies this community's desktop.
public CommunityURI(String webAppName,
PortalPath portalPath,
DesktopPath desktopPath)
webAppName - the name of the webapp where the community will reside.portalPath - the part of the url that identifies this community's portal.desktopPath - the part of the url that identifies this community's desktop.| Method Detail |
|---|
public static CommunityURI createCommunityURI(String uri)
webAppName/portalPath/desktopPath and is of the same format as the String returned by CommunityURI.toString(). It is always safest to use this method only with a String returned by CommunityURI.toString(). This method exists to provide a convenient mechanism for passing a CommunityURI as a URL parameter or storing it in a database.uri - the String to create a new CommunityURI from.IllegalArgumentException - if the uri parameter is not appropriately formatted.public static CommunityURI createCommunityURI(DesktopDefinitionId desktopDefinitionId)
CommunityURI from the specified DesktopDefinitionId.desktopDefinitionId - the DesktopDefinitionId to create the CommunityURI from.CommunityURI appropriate for the specified DesktopDefinitionIdpublic String getWebAppName()
CommunityURI.CommunityURI.public String getPortalPath()
CommunityURI.CommunityURIpublic String getDesktopPath()
CommunityURI.CommunityURI.public boolean equals(Object o)
equals in class Objecto - a DesktopDefinitionId object to compare to this DesktopDefinitionId.true if this DesktopDefinitionId is the same as the DesktopDefinitionId object passed in; false otherwise.public int hashCode()
hashCode in class Objectpublic String toString()
CommunityURI object suitable for use with the CommunityURI.createCommunityUri() method.toString in class Object
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright © 2010, Oracle. All rights reserved.