lumis.portal.urlshortener
Class URLShortenerManager

Package class diagram package URLShortenerManager
java.lang.Object
  extended by lumis.portal.urlshortener.URLShortenerManager
All Implemented Interfaces:
IURLShortenerManager

public class URLShortenerManager
extends Object
implements IURLShortenerManager

IURLManager implementation.

Since:
6.1.0

Constructor Summary
URLShortenerManager()
           
 
Method Summary
 IURLShortener get(ChannelConfig channel)
          Returns the URL shortener for the given channel.
 IURLShortener get(ServiceInstanceConfig serviceInstance)
          Returns the URL shortener for the given service instance.
 boolean isLocal(ChannelConfig channel)
          Returns whether the channel has a local shortener.
 void put(ChannelConfig channel, String className, Map<String,String> parameters)
          Sets the URL shortener for the given channel.
The class name received must be one of the following:
lumis.portal.urlshortener.CustomURLShortener lumis.portal.urlshortener.TinyURLShortener lumis.portal.urlshortener.MigreMeURLShortener lumis.portal.urlshortener.GoogleURLShortener
 void put(ServiceInstanceConfig serviceInstance, String className, Map<String,String> parameters)
          Sets the URL shortener for the given service instance.
The class name received must be one of the following:
lumis.portal.urlshortener.CustomURLShortener lumis.portal.urlshortener.TinyURLShortener lumis.portal.urlshortener.MigreMeURLShortener lumis.portal.urlshortener.GoogleURLShortener
 void remove(ChannelConfig channel)
          Removes the URL shortener of the given channel.
 void remove(ServiceInstanceConfig serviceInstance)
          Removes the URL shortener of the given service instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLShortenerManager

public URLShortenerManager()
Method Detail

get

public IURLShortener get(ServiceInstanceConfig serviceInstance)
                  throws PortalException
Description copied from interface: IURLShortenerManager
Returns the URL shortener for the given service instance.

Specified by:
get in interface IURLShortenerManager
Parameters:
serviceInstance - the service instance.
Returns:
the URL shortener for the given service instance.
Throws:
PortalException

get

public IURLShortener get(ChannelConfig channel)
                  throws PortalException
Description copied from interface: IURLShortenerManager
Returns the URL shortener for the given channel.

Specified by:
get in interface IURLShortenerManager
Parameters:
channel - the channeç.
Returns:
the URL shortener for the given channel.
Throws:
PortalException

put

public void put(ServiceInstanceConfig serviceInstance,
                String className,
                Map<String,String> parameters)
         throws PortalException
Description copied from interface: IURLShortenerManager
Sets the URL shortener for the given service instance.
The class name received must be one of the following:

Specified by:
put in interface IURLShortenerManager
Parameters:
serviceInstance - the service instance.
className - the class name.
parameters - the parameters to be passed to the URL shortener.
Throws:
PortalException

put

public void put(ChannelConfig channel,
                String className,
                Map<String,String> parameters)
         throws PortalException
Description copied from interface: IURLShortenerManager
Sets the URL shortener for the given channel.
The class name received must be one of the following:

Specified by:
put in interface IURLShortenerManager
Parameters:
channel - the channel.
className - the class name.
parameters - the parameters to be passed to the URL shortener.
Throws:
PortalException

remove

public void remove(ServiceInstanceConfig serviceInstance)
            throws PortalException
Description copied from interface: IURLShortenerManager
Removes the URL shortener of the given service instance.

Specified by:
remove in interface IURLShortenerManager
Parameters:
serviceInstance - the service instance.
Throws:
PortalException

remove

public void remove(ChannelConfig channel)
            throws PortalException
Description copied from interface: IURLShortenerManager
Removes the URL shortener of the given channel.

Specified by:
remove in interface IURLShortenerManager
Parameters:
channel - the channel.
Throws:
PortalException

isLocal

public boolean isLocal(ChannelConfig channel)
                throws PortalException
Returns whether the channel has a local shortener.

Parameters:
channel - the channel.
Returns:
whether the channel has a local shortener.
Throws:
PortalException
Since:
6.1.0


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