com.plumtree.portaluiinfrastructure.ptlink
Class CommonOpenerOpenObjIDURL

java.lang.Object
  extended by com.plumtree.portaluiinfrastructure.ptlink.PTURLConstants
      extended by com.plumtree.portaluiinfrastructure.ptlink.APTURL
          extended by com.plumtree.portaluiinfrastructure.ptlink.ACommonOpenerURL
              extended by com.plumtree.portaluiinfrastructure.ptlink.CommonOpenerOpenObjIDURL
All Implemented Interfaces:
IPTURL, IDataObject, IHierarchicalDataObject

public class CommonOpenerOpenObjIDURL
extends ACommonOpenerURL
implements IDataObject

URL Class for CommonOpenerURL using Object ID and Class ID pair. UPDATE FOR PORTAL 6.5: This class has been repurposed to use friendly URL instead of commonopener URL. Just keep this as a facade so that we don't have to change old code


Field Summary
static java.lang.String KEY_COMMONOPENER_CLASSID
          Class ID in the URL
static java.lang.String KEY_COMMONOPENER_OBJECTID
          Object ID in the URL
static java.lang.String KEY_COMMONOPENER_PAGEID
           
protected  int m_nClassID
           
protected  int m_nObjectID
           
protected  int m_nPageID
           
static java.lang.String URL_TYPE_OBJCOMMONOPENER
           
 
Fields inherited from class com.plumtree.portaluiinfrastructure.ptlink.ACommonOpenerURL
KEY_COMMONOPENER_APPBASEURL, KEY_COMMONOPENER_OPENERMODE, KEY_COMMONOPENER_USERID, m_nOpenerMode, m_nUserID, m_strApplicationBaseURL
 
Fields inherited from class com.plumtree.portaluiinfrastructure.ptlink.APTURL
m_children, m_ClassID, m_IconAlt, m_IconHeight, m_IconImg, m_IconWidth, m_jsaction, m_listParamNames, m_listParamValues, m_MarkedAsCurrent, m_nonControlParamNames, m_nonControlParamValues, m_ObjectID, m_Title
 
Fields inherited from class com.plumtree.portaluiinfrastructure.ptlink.PTURLConstants
KEY_CLASSID, KEY_CURRENTMARKER, KEY_FULLURL, KEY_ICONIMG, KEY_ICONIMGALT, KEY_ICONIMGHEIGHT, KEY_ICONIMGWIDTH, KEY_JAVASCRIPT_ACTION, KEY_OBJECTID, KEY_PARAMS, KEY_TITLE, KEY_URI, KEY_URLTYPE
 
Constructor Summary
CommonOpenerOpenObjIDURL(java.lang.String strTitle, int nClassID, int nObjectID, int nMode, AActivitySpace owner)
           
CommonOpenerOpenObjIDURL(java.lang.String strTitle, java.lang.String strApplicationBaseURL, int nClassID, int nObjectID, int nMode, int nUserID)
          Add Control Parameters ASConstants.PARENTSPACEID and ASConstants.PARENTSPACENAME.
CommonOpenerOpenObjIDURL(java.lang.String strTitle, java.lang.String strApplicationBaseURL, int nClassID, int nObjectID, int nMode, int nUserID, int communityPageID)
          Add Control Parameters ASConstants.PARENTSPACEID and ASConstants.PARENTSPACENAME.
 
Method Summary
 java.lang.String GetData(java.lang.String strKey)
          Gets URL data.
 java.lang.String GetFullURL()
          Returns the entire URL with http:// and server name E.g http://portalserver/portal/server.pt
 java.lang.String GetURI()
          Returns the URI, the part of the URL after sever name E.g /portal/server.pt
 void SetURLData(java.lang.String strKey, java.lang.String strValue)
          Sets URL data.
 
Methods inherited from class com.plumtree.portaluiinfrastructure.ptlink.APTURL
AddControlParameter, AddControlParameter, AddNonControlParameter, GetHierData, SetHierData, SetURLImageType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY_COMMONOPENER_CLASSID

public static final java.lang.String KEY_COMMONOPENER_CLASSID
Class ID in the URL

See Also:
Constant Field Values

KEY_COMMONOPENER_OBJECTID

public static final java.lang.String KEY_COMMONOPENER_OBJECTID
Object ID in the URL

See Also:
Constant Field Values

URL_TYPE_OBJCOMMONOPENER

public static final java.lang.String URL_TYPE_OBJCOMMONOPENER
See Also:
Constant Field Values

m_nClassID

protected int m_nClassID

m_nObjectID

protected int m_nObjectID

KEY_COMMONOPENER_PAGEID

public static final java.lang.String KEY_COMMONOPENER_PAGEID
See Also:
Constant Field Values

m_nPageID

protected int m_nPageID
Constructor Detail

CommonOpenerOpenObjIDURL

public CommonOpenerOpenObjIDURL(java.lang.String strTitle,
                                java.lang.String strApplicationBaseURL,
                                int nClassID,
                                int nObjectID,
                                int nMode,
                                int nUserID)
Add Control Parameters ASConstants.PARENTSPACEID and ASConstants.PARENTSPACENAME.

Parameters:
strTitle -
strApplicationBaseURL -
nClassID -
nObjectID -
nMode -
nUserID -

CommonOpenerOpenObjIDURL

public CommonOpenerOpenObjIDURL(java.lang.String strTitle,
                                java.lang.String strApplicationBaseURL,
                                int nClassID,
                                int nObjectID,
                                int nMode,
                                int nUserID,
                                int communityPageID)
Add Control Parameters ASConstants.PARENTSPACEID and ASConstants.PARENTSPACENAME. Stores the community page id for later use when the portlet selection layout is trying to access the pageid of the community in non-friendyURL mode.

Parameters:
strTitle -
strApplicationBaseURL -
nClassID -
nObjectID -
nMode -
nUserID -
communityPageID -

CommonOpenerOpenObjIDURL

public CommonOpenerOpenObjIDURL(java.lang.String strTitle,
                                int nClassID,
                                int nObjectID,
                                int nMode,
                                AActivitySpace owner)
Parameters:
strTitle -
nClassID -
nObjectID -
nMode -
owner -
Method Detail

GetFullURL

public java.lang.String GetFullURL()
Description copied from class: APTURL
Returns the entire URL with http:// and server name E.g http://portalserver/portal/server.pt

Specified by:
GetFullURL in interface IPTURL
Specified by:
GetFullURL in class ACommonOpenerURL
See Also:
IPTURL.GetFullURL()

GetURI

public java.lang.String GetURI()
Description copied from class: APTURL
Returns the URI, the part of the URL after sever name E.g /portal/server.pt

Specified by:
GetURI in interface IPTURL
Specified by:
GetURI in class ACommonOpenerURL
See Also:
IPTURL.GetURI()

GetData

public java.lang.String GetData(java.lang.String strKey)
Gets URL data. Supports KEY_COMMONOPENER_CLASSID KEY_COMMONOPENER_OBJECTID KEY_COMMONOPENER_OPENERMODE PTURLConstants.KEY_URLTYPE KEY_COMMONOPENER_CLASSID KEY_COMMONOPENER_OBJECTID in addition to the common URL and CommonOpener URL data keys.

Specified by:
GetData in interface IDataObject
Overrides:
GetData in class ACommonOpenerURL
Parameters:
strKey - The key for the requested data
Returns:
String The requested data
See Also:
IDataObject.GetData(java.lang.String)

SetURLData

public void SetURLData(java.lang.String strKey,
                       java.lang.String strValue)
Sets URL data. In addition to the common keys, also Supports these: KEY_COMMONOPENER_CLASSID KEY_COMMONOPENER_OBJECTID KEY_COMMONOPENER_OPENERMODE

Specified by:
SetURLData in interface IPTURL
Overrides:
SetURLData in class ACommonOpenerURL
Parameters:
strKey -
nValue -
See Also:
APTURL.SetURLData(java.lang.String, java.lang.String)



Copyright © 2002,2003,2004,2005 Plumtree Software, Inc., All Rights Reserved.