com.plumtree.portaluiinfrastructure.ptlink
Class CommonOpenerFriendlyURL

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.CommonOpenerFriendlyURL
All Implemented Interfaces:
IPTURL, IDataObject

public class CommonOpenerFriendlyURL
extends ACommonOpenerURL

Class for generating friendly Urls in Adaptive Tags

Author:
robertz

Field Summary
static java.lang.String KEY_FRIENDLYURL_CHILDID
           
static java.lang.String KEY_FRIENDLYURL_CHILDNAME
           
static java.lang.String KEY_FRIENDLYURL_CLASSID
          Class ID in the URL
static java.lang.String KEY_FRIENDLYURL_OBJECTID
          Object ID in the URL
static java.lang.String KEY_FRIENDLYURL_OBJECTNAME
          Object Name in the URL
protected  int m_childId
           
protected  java.lang.String m_childName
           
protected  int m_classId
           
protected  java.lang.String m_friendlyURI
           
protected  java.lang.String m_friendlyURL
           
protected  int m_objectId
           
protected  java.lang.String m_objectName
           
 
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_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
CommonOpenerFriendlyURL(java.lang.String label, int classId, int objectId, AActivitySpace space)
           
CommonOpenerFriendlyURL(java.lang.String label, int classId, int objectId, int childId, AActivitySpace space)
           
CommonOpenerFriendlyURL(java.lang.String label, int classId, int objectId, java.lang.String objectName, AActivitySpace space)
           
CommonOpenerFriendlyURL(java.lang.String label, int classId, int objectId, java.lang.String objectName, int childId, AActivitySpace space)
           
CommonOpenerFriendlyURL(java.lang.String label, int classId, int objectId, java.lang.String objectName, int childId, java.lang.String childName, AActivitySpace space)
           
 
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, SetURLImageType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY_FRIENDLYURL_CLASSID

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

See Also:
Constant Field Values

KEY_FRIENDLYURL_OBJECTID

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

See Also:
Constant Field Values

KEY_FRIENDLYURL_OBJECTNAME

public static final java.lang.String KEY_FRIENDLYURL_OBJECTNAME
Object Name in the URL

See Also:
Constant Field Values

KEY_FRIENDLYURL_CHILDNAME

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

KEY_FRIENDLYURL_CHILDID

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

m_classId

protected int m_classId

m_objectId

protected int m_objectId

m_objectName

protected java.lang.String m_objectName

m_childId

protected int m_childId

m_childName

protected java.lang.String m_childName

m_friendlyURL

protected java.lang.String m_friendlyURL

m_friendlyURI

protected java.lang.String m_friendlyURI
Constructor Detail

CommonOpenerFriendlyURL

public CommonOpenerFriendlyURL(java.lang.String label,
                               int classId,
                               int objectId,
                               AActivitySpace space)

CommonOpenerFriendlyURL

public CommonOpenerFriendlyURL(java.lang.String label,
                               int classId,
                               int objectId,
                               java.lang.String objectName,
                               AActivitySpace space)

CommonOpenerFriendlyURL

public CommonOpenerFriendlyURL(java.lang.String label,
                               int classId,
                               int objectId,
                               int childId,
                               AActivitySpace space)

CommonOpenerFriendlyURL

public CommonOpenerFriendlyURL(java.lang.String label,
                               int classId,
                               int objectId,
                               java.lang.String objectName,
                               int childId,
                               AActivitySpace space)

CommonOpenerFriendlyURL

public CommonOpenerFriendlyURL(java.lang.String label,
                               int classId,
                               int objectId,
                               java.lang.String objectName,
                               int childId,
                               java.lang.String childName,
                               AActivitySpace space)
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_FRIENDLYURL_CLASSID KEY_FRIENDLYURL_OBJECTID KEY_COMMONOPENER_OPENERMODE PTURLConstants.KEY_URLTYPE KEY_FRIENDLYURL_CLASSID KEY_FRIENDLYURL_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_FRIENDLYURL_CLASSID KEY_FRIENDLYURL_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.