public abstract class AutoAdministrationHelper extends Object
Constructor and Description |
---|
AutoAdministrationHelper() |
Modifier and Type | Method and Description |
---|---|
static ServiceInstanceConfig |
findCurrentAutoAdministrationServiceInstance(SessionConfig sessionConfig,
String channelId,
Collection<String> serviceInstanceIds,
ITransaction transaction)
Discovers the current auto administration service instance.
|
static String |
findTargetChannelId(String startingChannelId)
Retrieves the
channelId of the closets auto-administration service instance for the startingChannelId . |
static String |
getAutoAdministrationPageId(String channelId)
Discovers the pageId from the nearest auto administration service instance.
|
public static String findTargetChannelId(String startingChannelId) throws PortalException
channelId
of the closets auto-administration service instance for the startingChannelId
.startingChannelId
- current channel id.channelId
of the closets auto-administration service instance for the startingChannelId
, returns null
if it doesn't find one.PortalException
public static ServiceInstanceConfig findCurrentAutoAdministrationServiceInstance(SessionConfig sessionConfig, String channelId, Collection<String> serviceInstanceIds, ITransaction transaction) throws PortalException
sessionConfig
- session for the current user.channelId
- channel id of the channel in which you want to discover the nearest service instance of the auto administration service.serviceInstanceIds
- list of auto administration services available.transaction
- in which the method should be part of.PortalException
public static String getAutoAdministrationPageId(String channelId) throws PortalException
channelId
- channel id of the channel in which you want to discover the nearest service instance of the auto administration service.PortalException
- if any error occurs during the process.LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.