Package lumis.portal.urlshortener
Class URLShortenerManager
- java.lang.Object
-
- lumis.portal.urlshortener.URLShortenerManager
-
- All Implemented Interfaces:
IURLShortenerManager
public class URLShortenerManager extends Object implements IURLShortenerManager
IURLManager
implementation.- Since:
- 6.1.0
- Version:
- $Revision: 22905 $ $Date: 2019-07-02 18:17:02 -0300 (Tue, 02 Jul 2019) $
-
-
Constructor Summary
Constructors Constructor Description URLShortenerManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IURLShortener
get(ChannelConfig channel)
Returns theURL shortener
for the givenchannel
.IURLShortener
get(ServiceInstanceConfig serviceInstance)
Returns theURL shortener
for the given service instance.boolean
isLocal(ChannelConfig channel)
Returns whether the channel has a localshortener
.void
put(ChannelConfig channel, String className, Map<String,String> parameters)
Sets theURL shortener
for the given channel.
The class name received must be one of the following:
lumis.portal.urlshortener.CustomURLShortener
lumis.portal.urlshortener.TinyURLShortener
void
put(ServiceInstanceConfig serviceInstance, String className, Map<String,String> parameters)
Sets theURL shortener
for the given service instance.
The class name received must be one of the following:
lumis.portal.urlshortener.CustomURLShortener
lumis.portal.urlshortener.TinyURLShortener
void
remove(ChannelConfig channel)
Removes theURL shortener
of the given channel.void
remove(ServiceInstanceConfig serviceInstance)
Removes theURL shortener
of the given service instance.
-
-
-
Method Detail
-
get
public IURLShortener get(ServiceInstanceConfig serviceInstance) throws PortalException
Description copied from interface:IURLShortenerManager
Returns theURL shortener
for the given service instance.- Specified by:
get
in interfaceIURLShortenerManager
- 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 theURL shortener
for the givenchannel
.- Specified by:
get
in interfaceIURLShortenerManager
- Parameters:
channel
- the channeç.- Returns:
- the
URL shortener
for the givenchannel
. - Throws:
PortalException
-
put
public void put(ServiceInstanceConfig serviceInstance, String className, Map<String,String> parameters) throws PortalException
Description copied from interface:IURLShortenerManager
Sets theURL shortener
for the given service instance.
The class name received must be one of the following:
- Specified by:
put
in interfaceIURLShortenerManager
- 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
- Specified by:
put
in interfaceIURLShortenerManager
- 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 theURL shortener
of the given service instance.- Specified by:
remove
in interfaceIURLShortenerManager
- Parameters:
serviceInstance
- the service instance.- Throws:
PortalException
-
remove
public void remove(ChannelConfig channel) throws PortalException
Description copied from interface:IURLShortenerManager
Removes theURL shortener
of the given channel.- Specified by:
remove
in interfaceIURLShortenerManager
- Parameters:
channel
- the channel.- Throws:
PortalException
-
isLocal
public boolean isLocal(ChannelConfig channel) throws PortalException
Returns whether the channel has a localshortener
.- Parameters:
channel
- the channel.- Returns:
- whether the channel has a local
shortener
. - Throws:
PortalException
- Since:
- 6.1.0
-
-