|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jetspeed.util.URILookup
URI lookup related functions.
Functions to get an URI based on a type like info, edit, save and to identify the type of an URI.
To overwrite the default behaviour, specify one of the following parameters in the JR.p file. URILookup will then return the uri specified in the properties file.
all possible property parameters:
Field Summary | |
static int |
SUBTYPE_ACCEPT_LOGIN
trues to login, after entering username and password |
static int |
SUBTYPE_LOGOUT
logs out the user |
static int |
SUBTYPE_MARK
mark the current page before processing portlet |
static int |
SUBTYPE_MAXIMIZE
show the current portlet maximized additionally, the current page is marked for restoring |
static int |
SUBTYPE_NONE
apply no subtype to the url |
static int |
SUBTYPE_RESTORE
restore portlet to default size |
static int |
SUBTYPE_SAVE
save user settings before processing portlet |
static int |
TYPE_BACK
show the marked page only used in function getURI, not in getURIType |
static int |
TYPE_CUSTOMIZE
show portlet customization |
static int |
TYPE_EDIT_ACCOUNT
show the edit page of the account |
static int |
TYPE_ENROLLMENT
creates new account allowed Subtypes: SUBTYPE_NONE |
static int |
TYPE_HOME
show Jetspeed Home page allowed Subtypes: SUBTYPE_NONE SUBTYPE_RESTORE SUBTYPE_MAXIMIZE SUBTYPE_LOGOUT SUBTYPE_ACCEPT_LOGIN |
static int |
TYPE_INFO
show some additional information about the portlet |
static int |
TYPE_LOGIN
show login screen |
Constructor Summary | |
URILookup()
|
Method Summary | |
static PortletEntry |
getEntry(org.apache.turbine.util.ParameterParser params)
Given a ParameterParser, get a PortletEntry. |
static java.lang.String |
getMarkedPage(org.apache.turbine.util.RunData rundata)
Gets the previous marked page as relative url. If no page was marked, the Jetspeed Home page is returned. |
static java.lang.String |
getMarkedPage(org.apache.turbine.util.RunData rundata,
boolean relative)
Gets the previous marked page. If no page was marked, the Jetspeed Home page is returned. |
static java.lang.String |
getURI(int aType,
int aSubType,
Portlet aPortlet,
org.apache.turbine.util.RunData rundata)
Gets the URI of the specified portlet with the specified type |
static java.lang.String |
getURI(int aType,
int aSubType,
org.apache.turbine.util.RunData rundata)
Gets the URI for the specified type |
static java.lang.String |
getURI(int aType,
int aSubType,
java.lang.String userData,
Portlet aPortlet,
org.apache.turbine.util.RunData rundata)
Gets the URI of the specified portlet with the specified type and adds given user data. |
static java.lang.String |
getURI(int aType,
int aSubType,
java.lang.String aPortletName,
org.apache.turbine.util.RunData rundata)
Gets the URI of the specified portlet with the specified type |
static java.lang.String |
getURI(int aType,
int aSubType,
java.lang.String userData,
java.lang.String aPortletName,
org.apache.turbine.util.RunData rundata)
Gets the URI of the specified portlet with the specified type and adds given user data. |
static int |
getURISubType(Portlet aPortlet,
org.apache.turbine.util.RunData rundata)
Gets the subtype of the URI (e.g. |
static int |
getURIType(Portlet aPortlet,
org.apache.turbine.util.RunData rundata)
Gets the type of the URI (e.g. |
static int |
getURIType(org.apache.turbine.util.RunData rundata)
Gets the type of the URI (e.g. |
static java.lang.String |
getURIUserData(org.apache.turbine.util.RunData rundata)
Gets the user specific data stored in the URI. |
static java.lang.String |
getWebAppBaseDirURI(org.apache.turbine.util.RunData rundata)
returns the WebApplication base directory. |
static void |
markCurrentPage(org.apache.turbine.util.RunData rundata)
Marks the current URI and stores it internally for later usage. |
static void |
markPage(java.lang.String aURI,
org.apache.turbine.util.RunData rundata)
Marks the URI and stores it internally for later usage. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int TYPE_HOME
show Jetspeed Home page
allowed Subtypes:
public static final int TYPE_INFO
show some additional information about the portlet
allowed Subtypes:
public static final int TYPE_EDIT_ACCOUNT
show the edit page of the account
allowed Subtypes:
public static final int TYPE_CUSTOMIZE
show portlet customization
allowed Subtypes:
public static final int TYPE_LOGIN
show login screen
allowed Subtypes:
public static final int TYPE_BACK
show the marked page
only used in function getURI, not in getURIType
public static final int TYPE_ENROLLMENT
creates new account
allowed Subtypes:
public static final int SUBTYPE_NONE
public static final int SUBTYPE_RESTORE
public static final int SUBTYPE_MAXIMIZE
public static final int SUBTYPE_MARK
public static final int SUBTYPE_LOGOUT
public static final int SUBTYPE_ACCEPT_LOGIN
public static final int SUBTYPE_SAVE
Constructor Detail |
public URILookup()
Method Detail |
public static java.lang.String getURI(int aType, int aSubType, org.apache.turbine.util.RunData rundata) throws JetspeedException
aType
- type of the URIaSubType
- subtype of the URIrundata
- the RunData object
JetspeedException
public static java.lang.String getURI(int aType, int aSubType, Portlet aPortlet, org.apache.turbine.util.RunData rundata) throws JetspeedException
aType
- type of the URIaSubType
- subtype of the URIaPortlet
- Portlet the URI points torundata
- the RunData object
JetspeedException
public static java.lang.String getURI(int aType, int aSubType, java.lang.String aPortletName, org.apache.turbine.util.RunData rundata) throws JetspeedException
aType
- type of the URIaSubType
- subtype of the URIaPortletName
- Portlet the URI points torundata
- the RunData object
JetspeedException
public static java.lang.String getURI(int aType, int aSubType, java.lang.String userData, Portlet aPortlet, org.apache.turbine.util.RunData rundata) throws JetspeedException
aType
- type of the URIaSubType
- subtype of the URIuserData
- string which should be added to the URLaPortlet
- Portlet the URI points torundata
- the RunData object
JetspeedException
public static java.lang.String getURI(int aType, int aSubType, java.lang.String userData, java.lang.String aPortletName, org.apache.turbine.util.RunData rundata) throws JetspeedException
aType
- type of the URIaSubType
- subtype of the URIuserData
- string which should be added to the URLaPortletName
- Portlet the URI points torundata
- the RunData object
JetspeedException
public static int getURIType(org.apache.turbine.util.RunData rundata)
rundata
- the RunData object
public static int getURIType(Portlet aPortlet, org.apache.turbine.util.RunData rundata)
Hint:
Portlets should check for TYPE_EDIT_PORTLET and in any other case render the content
aPortlet
- the associated portletrundata
- the RunData object
public static int getURISubType(Portlet aPortlet, org.apache.turbine.util.RunData rundata) throws JetspeedException
Gets the subtype of the URI (e.g. SUBTYPE_SAVE).
returns only the values
aPortlet
- the related portletrundata
- the RunData object
JetspeedException
public static java.lang.String getURIUserData(org.apache.turbine.util.RunData rundata)
rundata
- the RunData object
getURI(int, int, org.apache.turbine.util.RunData)
public static java.lang.String getWebAppBaseDirURI(org.apache.turbine.util.RunData rundata)
rundata
- the rundata object
public static void markCurrentPage(org.apache.turbine.util.RunData rundata)
rundata
- the RunData objectpublic static void markPage(java.lang.String aURI, org.apache.turbine.util.RunData rundata)
aURI
- the URI to storerundata
- the RunData objectpublic static java.lang.String getMarkedPage(org.apache.turbine.util.RunData rundata)
public static java.lang.String getMarkedPage(org.apache.turbine.util.RunData rundata, boolean relative)
relative
- specifies whether the returing URI should be relative
public static final PortletEntry getEntry(org.apache.turbine.util.ParameterParser params) throws java.lang.Exception
Given a ParameterParser, get a PortletEntry. This is used so that when you have a URI created from PortletURIManager you can get back the PortletEntry that created it originally.
Return null if we aren't able to figure out the PortletEntry
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |