lumis.portal.servicecontainer
Class ServiceContainerUrl

Package class diagram package ServiceContainerUrl
java.lang.Object
  extended by lumis.portal.servicecontainer.ServiceContainerUrl
All Implemented Interfaces:
BaseURL, 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:
IURLFactory.createActionURL(), IURLFactory.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 EXTERNAL_URL
 
Method Summary
 void addProperty(String arg0, String arg1)
          Deprecated.  
 Map<String,String[]> getParameterMap()
          Deprecated.  
 String[] getParameterNames()
          Deprecated. Get the given String parameter to this URL.
 PortletMode getPortletMode()
          Deprecated.  
protected  String getTargetId()
          Deprecated. Returns the target identifier of this URL.
protected  int getTargetScope()
          Deprecated. Returns the target scope of 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.
 int getUrlType()
          Deprecated. Returns the type of url.
 String getWindowOpen(ITransaction transaction)
          Deprecated. Returns a window.open javascript command.
 WindowState getWindowState()
          Deprecated.  
 void removePublicRenderParameter(String arg0)
          Deprecated.  
 void setBaseSecure(boolean baseSecure)
          Deprecated. Sets the secure type (HTTP or HTTPS) this URL is based on.
 void setBaseWebsite(IWebsite baseWebsite)
          Deprecated. Sets the website this URL is based on.
 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<String,String[]> 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 setProperty(String arg0, String arg1)
          Deprecated.  
 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.
 String toString(boolean process)
          Deprecated.  
 void write(Writer arg0)
          Deprecated.  
 void write(Writer arg0, boolean arg1)
          Deprecated.  
 
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 EXTERNAL_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 BaseURL
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 BaseURL
Parameters:
name - the parameter name
values - the parameter values
Throws:
IllegalArgumentException - if name or values are null.

setParameters

public void setParameters(Map<String,String[]> 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 BaseURL
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 BaseURL
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.

getTargetScope

protected final int getTargetScope()
Deprecated. 
Returns the target scope of this URL.

Returns:
the target scope.
Since:
5.5.0
See Also:
setTargetScope(int, String)

getTargetId

protected final String getTargetId()
Deprecated. 
Returns the target identifier of this URL.

Returns:
the target identifier.
Since:
5.5.0
See Also:
setTargetScope(int, String)

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 -

setBaseWebsite

public void setBaseWebsite(IWebsite baseWebsite)
Deprecated. 
Sets the website this URL is based on. Only applies if the URL is generated processed (true parameter on toString(boolean)).

The generated URL when processed will only be relative if this URL refers to a web resource in the same website. It also depends on baseSecure to be valid for the destination to be relative.

May be null if the base website is not known. In this case if the URL is generated processed, it will be absolute.

Parameters:
baseWebsite - the base website for the URL, or null if it is not known.
Since:
6.2.0

setBaseSecure

public void setBaseSecure(boolean baseSecure)
Deprecated. 
Sets the secure type (HTTP or HTTPS) this URL is based on. Only applies if the URL is generated processed (true parameter on toString(boolean))

The generated URL when processed will only be relative if this URL refers to a web resource that may be accessed in this secure type. It also depends on baseWebsite to be valid for the destination to be relative.

Default value is false.

Parameters:
baseSecure - true if the base URL is secure, false otherwise.
Since:
6.2.0

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 BaseURL
Specified by:
toString in interface IServiceInterfaceUrl
Overrides:
toString in class Object
Returns:
the encoded URL as a string

toString

public String toString(boolean process)
Deprecated. 

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

getUrlType

public int getUrlType()
Deprecated. 
Returns the type of url. Valid types are IServiceInterfaceUrl.RENDER_URL, IServiceInterfaceUrl.ACTION_URL and IServiceInterfaceUrl.EXTERNAL_URL

Specified by:
getUrlType in interface IServiceInterfaceUrl
Returns:
the url type.
Since:
5.0.0

getPortletMode

public PortletMode getPortletMode()
Deprecated. 
Specified by:
getPortletMode in interface PortletURL

getWindowState

public WindowState getWindowState()
Deprecated. 
Specified by:
getWindowState in interface PortletURL

removePublicRenderParameter

public void removePublicRenderParameter(String arg0)
Deprecated. 
Specified by:
removePublicRenderParameter in interface PortletURL

addProperty

public void addProperty(String arg0,
                        String arg1)
Deprecated. 
Specified by:
addProperty in interface BaseURL

getParameterMap

public Map<String,String[]> getParameterMap()
Deprecated. 
Specified by:
getParameterMap in interface BaseURL

setProperty

public void setProperty(String arg0,
                        String arg1)
Deprecated. 
Specified by:
setProperty in interface BaseURL

write

public void write(Writer arg0)
           throws IOException
Deprecated. 
Specified by:
write in interface BaseURL
Throws:
IOException

write

public void write(Writer arg0,
                  boolean arg1)
           throws IOException
Deprecated. 
Specified by:
write in interface BaseURL
Throws:
IOException


Lumisportal  6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.