public class URLShortenerManager extends Object implements IURLShortenerManager
IURLManager
implementation.Constructor and Description |
---|
URLShortenerManager() |
Modifier and Type | Method and Description |
---|---|
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
|
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
|
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. |
public IURLShortener get(ServiceInstanceConfig serviceInstance) throws PortalException
IURLShortenerManager
URL shortener
for the given service
instance.get
in interface IURLShortenerManager
serviceInstance
- the service instance.URL shortener
for the given service
instance.PortalException
public IURLShortener get(ChannelConfig channel) throws PortalException
IURLShortenerManager
URL shortener
for the given
channel
.get
in interface IURLShortenerManager
channel
- the channeç.URL shortener
for the given
channel
.PortalException
public void put(ServiceInstanceConfig serviceInstance, String className, Map<String,String> parameters) throws PortalException
IURLShortenerManager
URL shortener
for the given service
instance.put
in interface IURLShortenerManager
serviceInstance
- the service instance.className
- the class name.parameters
- the parameters to be passed to the URL shortener.PortalException
public void put(ChannelConfig channel, String className, Map<String,String> parameters) throws PortalException
IURLShortenerManager
put
in interface IURLShortenerManager
channel
- the channel.className
- the class name.parameters
- the parameters to be passed to the URL shortener.PortalException
public void remove(ServiceInstanceConfig serviceInstance) throws PortalException
IURLShortenerManager
URL shortener
of the given service
instance.remove
in interface IURLShortenerManager
serviceInstance
- the service instance.PortalException
public void remove(ChannelConfig channel) throws PortalException
IURLShortenerManager
URL shortener
of the given channel.remove
in interface IURLShortenerManager
channel
- the channel.PortalException
public boolean isLocal(ChannelConfig channel) throws PortalException
shortener
.channel
- the channel.shortener
.PortalException
LumisXP 12.1.0.191010 - Copyright © 2006–2019 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.