|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FriendlyURL
Generates 'friendly' URLs if possible and otherwise default
EngineURL
that only contain the given selection
node.
The only piece of state information that can be modified on a friendly URL is the target selection.
Method Summary | |
---|---|
ObjectID |
getObjectID()
Returns the object ID of the selection represented by this URL. |
java.lang.String |
getPathInfo()
Returns the extra path information after the friendly name. |
ObjectID |
getSelection()
Returns the ObjectID of the navigation node which is currently
selected. |
void |
setPathInfo(java.lang.String aPathInfo)
Assigns extra path info to the friendly URL that will be appended to the friendly URL. |
void |
setProtected(java.lang.Boolean bFlag)
Defines if the URL points to the private area or to the public area . |
void |
setSecure(java.lang.Boolean bFlag)
Defines the security setting for this URL. |
void |
setSelection(ObjectID nodeID)
Sets the currently selected node into the state holder. |
void |
setSelection(java.lang.String uniqueNameID)
Sets the currently selected node into the state holder. |
Methods inherited from interface com.ibm.portal.state.DisposableURL |
---|
toString, writeCopy, writeDispose |
Methods inherited from interface com.ibm.portal.URL |
---|
write |
Methods inherited from interface com.ibm.portal.Disposable |
---|
dispose |
Method Detail |
---|
ObjectID getObjectID()
getObjectID
in interface Identifiable
ObjectID
of this resource, this can never be
null
Identifiable
java.lang.String getPathInfo()
null
or starts with a
slashObjectID getSelection() throws InvalidSelectionNodeIdException
ObjectID
of the navigation node which is currently
selected. Returns null
if no selection information is
available.
ObjectID
of the currently selected navigation
node or null
.
InvalidSelectionNodeIdException
- If at least one of the specified node identifiers is invalid.void setPathInfo(java.lang.String aPathInfo)
null
or must
start with a slash but must NOT end with a slash. The path info string
must be a syntactically valid path (i.e. properly URL escaped).
aPathInfo
- the extra path info, either null
or starts with a
slashvoid setProtected(java.lang.Boolean bFlag)
bFlag
- Boolean.TRUE
, if the URL should point to the
private area, Boolean.FALSE
if the URL should
point to the public area or null
if the URL
should stay in the context of the current requestvoid setSecure(java.lang.Boolean bFlag)
bFlag
- true, if portlet requests to have a secure connection between
its portlet window and the client; false, if the portlet does
not require a secure connection.void setSelection(ObjectID nodeID) throws CannotInsertSelectionNodeException
ObjectID
of the previous selected node will be overridden.
Passing in null
removes the selection information from the
state holder.
nodeID
- The ObjectID
of the navigation node which has
been selected. May be null
.
CannotInsertSelectionNodeException
- If the given ObjectID
cannot be inserted into
the state holder.void setSelection(java.lang.String uniqueNameID) throws CannotInsertSelectionNodeException, MissingUniqueNameException, UnknownUniqueNameException
ObjectID
of the previous selected node will be overridden.
uniqueNameID
- The unique name of the navigation node which has been
selected. Must not be null
.
UnknownUniqueNameException
- If the unique name could not be mapped to an
ObjectID
.
MissingUniqueNameException
- If the unique name was null
or empty.
CannotInsertSelectionNodeException
- If the given ObjectID
cannot be inserted into
the state holder.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |