lumis.portal.servicecontainer
Class ServiceContainerUrl

Package class diagram package ServiceContainerUrl
java.lang.Object
  extended by lumis.portal.servicecontainer.ServiceContainerUrl
All Implemented Interfaces:
PortletURL, IServiceInterfaceUrl

Deprecated. This class will be removed in a future release. Use IServiceInterfaceUrl instead.

@Deprecated
public class ServiceContainerUrl
extends Object
implements IServiceInterfaceUrl

Since:
4.0.0
See Also:
IServiceInterfaceResponse.createActionURL(), IServiceInterfaceResponse.createRenderURL()

Field Summary
 
Fields inherited from interface lumis.portal.serviceinterface.IServiceInterfaceUrl
ACTION_URL, EXTERNAL_URL, RENDER_URL, TARGET_SCOPE_PAGE, TARGET_SCOPE_SERVICE, TARGET_SCOPE_SERVICEINSTANCE, TARGET_SCOPE_SERVICEINTERFACE, TARGET_SCOPE_SERVICEINTERFACEINSTANCE
 
Constructor Summary
ServiceContainerUrl(int urlType)
          Deprecated. This constructor accepts a parameter of one of the following values
ACTION_URL RENDER_URL
 
Method Summary
 String[] getParameterNames()
          Deprecated. Get the given String parameter to this URL.
 String getUrl()
          Deprecated. Since 4.0.7 this method was replaced by toString() method, so this interface uses the same method as specified in the PortletURL interface.
 String getWindowOpen(ITransaction transaction)
          Deprecated. Returns a window.open javascript command.
 void setChannelId(String channelId)
          Deprecated. Set the destination channel.
 void setDestinationIds(IServiceInterfaceRequest request)
          Deprecated. Sets the destination page, channel, runtime service interface and runtime service instance Ids.
 void setExternalUrl(String url)
          Deprecated. Set external url
 void setPageId(String pageId)
          Deprecated. Set the destination page.
 void setParameter(String name, String value)
          Deprecated. Sets the given String parameter to this URL.
 void setParameter(String name, String[] values)
          Deprecated. Sets the given String array parameter to this URL.
 void setParameters(Map parameters)
          Deprecated. Sets a parameter map for this URL.
 void setPortletMode(PortletMode portletMode)
          Deprecated.  
 void setPreviousParametersStorageId(IServiceInterfaceRequest request)
          Deprecated. Sets the previous parameters storage id with the value taken from the given request.
 void setRunTimeServiceInstanceId(String runTimeServiceInstanceId)
          Deprecated. Sets the runtime service instance identifier.
 void setRunTimeServiceInterfaceId(String runTimeServiceInterfaceId)
          Deprecated. Sets the runtime service interface identifier.
 void setSecure(boolean secure)
          Deprecated. Indicated the security setting for this URL.
 void setTargetScope(int targetScope, String targetId)
          Deprecated. The target scope allows the service interface to send parameters to one or more service interfaces.
 void setWindowState(WindowState windowState)
          Deprecated.  
 String toString()
          Deprecated. Returns the service interface URL string representation to be embedded in the markup.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServiceContainerUrl

public ServiceContainerUrl(int urlType)
Deprecated. 
This constructor accepts a parameter of one of the following values
ACTION_URL RENDER_URL

Parameters:
urlType -
Method Detail

setPortletMode

public void setPortletMode(PortletMode portletMode)
                    throws PortletModeException
Deprecated. 
Specified by:
setPortletMode in interface PortletURL
Throws:
PortletModeException

setWindowState

public void setWindowState(WindowState windowState)
                    throws WindowStateException
Deprecated. 
Specified by:
setWindowState in interface PortletURL
Throws:
WindowStateException

getParameterNames

public String[] getParameterNames()
Deprecated. 
Get the given String parameter to this URL.


setParameter

public void setParameter(String name,
                         String value)
Deprecated. 
Sets the given String parameter to this URL.

This method replaces all parameters with the given key.

The ServiceInterfaceURL implementation 'x-www-form-urlencoded' encodes all parameter names and values. Developers should not encode them.

A service interface container may prefix the attribute names internally in order to preserve a unique namespace for the service interface.

Specified by:
setParameter in interface PortletURL
Parameters:
name - the parameter name
value - the parameter value
Throws:
IllegalArgumentException - if name or value are null.

setParameter

public void setParameter(String name,
                         String[] values)
Deprecated. 
Sets the given String array parameter to this URL.

This method replaces all parameters with the given key.

The ServiceInterfaceURL implementation 'x-www-form-urlencoded' encodes all parameter names and values. Developers should not encode them.

A service interface container may prefix the attribute names internally in order to preserve a unique namespace for the service interface.

Specified by:
setParameter in interface PortletURL
Parameters:
name - the parameter name
values - the parameter values
Throws:
IllegalArgumentException - if name or values are null.

setParameters

public void setParameters(Map parameters)
Deprecated. 
Sets a parameter map for this URL.

All previously set parameters are cleared.

The ServiceInterfaceURL implementation 'x-www-form-urlencoded' encodes all parameter names and values. Developers should not encode them.

A service interface container may prefix the attribute names internally, in order to preserve a unique namespace for the service interface.

Specified by:
setParameters in interface PortletURL
Parameters:
parameters - Map containing parameter names for the render phase as keys and parameter values as map values. The keys in the parameter map must be of type String. The values in the parameter map must be of type String array (String[]).
Throws:
IllegalArgumentException - if parameters is null, if any of the key/values in the Map are null, if any of the keys is not a String, or if any of the values is not a String array.

setSecure

public void setSecure(boolean secure)
Deprecated. 
Indicated the security setting for this URL.

Secure set to true indicates that the service interface requests a secure connection between the client and the service interface for this URL. Secure set to false indicates that the service interface does not need a secure connection for this URL. If the security is not set for a URL, it will stay the same as the current request.

Specified by:
setSecure in interface PortletURL
Parameters:
secure - 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.
Throws:
ServiceInterfaceSecurityException - if the run-time environment does not support the indicated setting

setPageId

public void setPageId(String pageId)
Deprecated. 
Set the destination page. If not specified, the destination page is assumed to be the current page

Specified by:
setPageId in interface IServiceInterfaceUrl
Parameters:
pageId -

setChannelId

public void setChannelId(String channelId)
Deprecated. 
Set the destination channel. If not specified, the destination channel is assumed to be the current channel. If the page is specified, the channel value is ignored when rendering the url.

Specified by:
setChannelId in interface IServiceInterfaceUrl
Parameters:
channelId -

setRunTimeServiceInterfaceId

public void setRunTimeServiceInterfaceId(String runTimeServiceInterfaceId)
Deprecated. 
Description copied from interface: IServiceInterfaceUrl
Sets the runtime service interface identifier. This is usually used in pop-ups that render runtime interfaces that are not previously mounted on a page.

Specified by:
setRunTimeServiceInterfaceId in interface IServiceInterfaceUrl

setRunTimeServiceInstanceId

public void setRunTimeServiceInstanceId(String runTimeServiceInstanceId)
Deprecated. 
Description copied from interface: IServiceInterfaceUrl
Sets the runtime service instance identifier. This is usually used in pop-ups that render runtime interfaces that are not previously mounted on a page. These runtime interfaces need a serviceinstanceid to be rendered.

Specified by:
setRunTimeServiceInstanceId in interface IServiceInterfaceUrl

setPreviousParametersStorageId

public void setPreviousParametersStorageId(IServiceInterfaceRequest request)
Deprecated. 
Sets the previous parameters storage id with the value taken from the given request.

Parameters:
containerRequest - the request.
Since:
4.0.7

setDestinationIds

public void setDestinationIds(IServiceInterfaceRequest request)
Deprecated. 
Sets the destination page, channel, runtime service interface and runtime service instance Ids.

Parameters:
request - a request where the ids will be extracted from.

setTargetScope

public void setTargetScope(int targetScope,
                           String targetId)
Deprecated. 
The target scope allows the service interface to send parameters to one or more service interfaces. The target scope requires one of the possible scopes: TARGET_SCOPE_SERVICE TARGET_SCOPE_SERVICEINSTANCE TARGET_SCOPE_SERVICEINTERFACE TARGET_SCOPE_SERVICEINTERFACEINSTANCE

Specified by:
setTargetScope in interface IServiceInterfaceUrl
Parameters:
targetScope -
targetId -

getUrl

public String getUrl()
              throws PortalException
Deprecated. Since 4.0.7 this method was replaced by toString() method, so this interface uses the same method as specified in the PortletURL interface.

Description copied from interface: IServiceInterfaceUrl
Returns the service interface URL string representation to be embedded in the markup.
Note that the returned String may not be a valid URL, as it may be rewritten by the portal/service interface-container before returning the markup to the client.

Specified by:
getUrl in interface IServiceInterfaceUrl
Returns:
the encoded URL as a string
Throws:
PortalException

toString

public String toString()
Deprecated. 
Description copied from interface: IServiceInterfaceUrl
Returns the service interface URL string representation to be embedded in the markup.
Note that the returned String may not be a valid URL, as it may be rewritten by the portal/service interface-container before returning the markup to the client.

Specified by:
toString in interface PortletURL
Specified by:
toString in interface IServiceInterfaceUrl
Overrides:
toString in class Object
Returns:
the encoded URL as a string

getWindowOpen

public String getWindowOpen(ITransaction transaction)
                     throws PortalException
Deprecated. 
Returns a window.open javascript command.

Parameters:
transaction - the transaction for persistence access.
Returns:
the window.open javascript command string.
Throws:
PortalException

setExternalUrl

public void setExternalUrl(String url)
Deprecated. 
Description copied from interface: IServiceInterfaceUrl
Set external url

Specified by:
setExternalUrl in interface IServiceInterfaceUrl


Lumisportal  4.1.0.071221 - Copyright © 2001-2007, Lumis. All Rights Reserved.