|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlumis.portal.presentation.perspective.publisher.AutoAdministrationHelper
public abstract class AutoAdministrationHelper
Class to help calculate information regarding auto-administration.
Constructor Summary | |
---|---|
AutoAdministrationHelper()
|
Method Summary | |
---|---|
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 boolean |
isAutoAdministrationPage(HttpServletRequest request,
String currentPageId,
ITransaction transaction)
Decides if the user came from or is in an auto administration page. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AutoAdministrationHelper()
Method Detail |
---|
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 boolean isAutoAdministrationPage(HttpServletRequest request, String currentPageId, ITransaction transaction) throws PortalException
lumAAPreviousPage
cookie is available.
If the cookie is not available, will ask if the current page is an
auto-administrative page.
request
- to retrieve the cookie from.currentPageId
- page the user is currently in.transaction
- in which the method should be part of.
true
when the lumAAPreviousPage
is
present and is an auto-administration page or when the current
page is the default auto-administration page or, if the cookie is
not present, if the current page is an auto-administrative page;
while return false
otherwise.
PortalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |