© 2004 BEA Systems, Inc.

com.bea.netuix.application.identifier
Class DesktopDefinitionId

java.lang.Object
  extended bycom.bea.netuix.application.identifier.DesktopDefinitionId
All Implemented Interfaces:
Serializable

public class DesktopDefinitionId
extends Object
implements Serializable

The DesktopDefinitionId is the webapp name, portal path, and desktop path together that uniquely identifies a portal desktop. They are used in the url of a customized portal desktop.

An example of what the DesktopDefinitionId is can be derived from the example url below.

http://host:port/webappName/appmanager/portalPath/desktopPath

The DesktopDefinitionId is the aggregation of the webappName, portalPath, and desktopPath from the url above.

See Also:
Serialized Form

Constructor Summary
DesktopDefinitionId(String webAppName, PortalPath portalPath, DesktopPath desktopPath)
           
 
Method Summary
protected  Object clone()
           
static DesktopDefinitionId clone(DesktopDefinitionId desktopDefinitionId)
           
static DesktopDefinitionId createDesktopDefinitionId(String webAppName, String portalPathStr, String desktopPathStr)
           
 boolean equals(Object o)
           
 DesktopPath getDesktopPath()
           
 PortalPath getPortalPath()
           
 String getWebAppName()
           
 int hashCode()
           
 void setDesktopPath(DesktopPath desktopPath)
           
 void setPortalPath(PortalPath portalPath)
           
 void setWebAppName(String webAppName)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DesktopDefinitionId

public DesktopDefinitionId(String webAppName,
                           PortalPath portalPath,
                           DesktopPath desktopPath)
Method Detail

clone

protected Object clone()
Returns:
a new DesktopDefinitionId with the exact same parameters as this DesktopDefinitionId.

clone

public static DesktopDefinitionId clone(DesktopDefinitionId desktopDefinitionId)
Parameters:
desktopDefinitionId - the DesktopDefinitionId to clone.
Returns:
a new DesktopDefinitionId with the exact same parameters as the DesktopDefinitionId passed in.

createDesktopDefinitionId

public static DesktopDefinitionId createDesktopDefinitionId(String webAppName,
                                                            String portalPathStr,
                                                            String desktopPathStr)
Parameters:
webAppName - the name of the webapp where this desktop will reside.
portalPathStr - the part of the url that identifies this portal.
desktopPathStr - the part of the url that identifies this desktop.
Returns:
a new DesktopDefinitionId with the webapp name, portal path, and desktop path set to the values passed in.

equals

public boolean equals(Object o)
Parameters:
o - a DesktopDefinitionId object to compare to this DesktopDefinitionId.
Returns:
true if this DesktopDefinitionId is the same as the DesktopDefinitionId object passed in; false otherwise.

getDesktopPath

public DesktopPath getDesktopPath()
Returns:
the DesktopPath that is basically a string representing a part of the url for the customized portal desktop.

getPortalPath

public PortalPath getPortalPath()
Returns:
the PortalPath that is basically a string representing a part of the url for the customized portal desktop.

getWebAppName

public String getWebAppName()
Returns:
the webapp name where the desktop resides.

hashCode

public int hashCode()
Returns:
a hash code value for this object.

setDesktopPath

public void setDesktopPath(DesktopPath desktopPath)
Parameters:
desktopPath - an object representing a part of the url for the customized portal desktop.

setPortalPath

public void setPortalPath(PortalPath portalPath)
Parameters:
portalPath - an object representing a part of the url for the customized portal desktop.

setWebAppName

public void setWebAppName(String webAppName)
Parameters:
webAppName - the webapp name where the desktop resides.

toString

public String toString()
Returns:
the name of the webapp with the PortalPath and DesktopPath appended.

© 2004 BEA Systems, Inc.

Copyright © 2004 BEA Systems, Inc. All Rights Reserved