|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sage.orion.sdata.servlet.accpac.PortletsService
public class PortletsService
The class is responsible for getting all the authorized portlets for the user.
Constructor Summary | |
---|---|
PortletsService(ApplicationContext applicationContext,
ResourceContextImpl resourceContext)
Constructor |
Method Summary | |
---|---|
java.util.Map<com.sage.accpac.sm.ActiveApplication,java.util.List<com.sage.orion.sdata.servlet.accpac.Portlet>> |
getAccpacPortlets()
Gets the accpac portlets. |
java.util.List<PortalPortlet> |
getAuthorizedPortalPortlets()
Gets all the authorized portlets for the user. |
static java.util.List<com.sage.orion.sdata.servlet.accpac.Portlet> |
getDisplayablePortlets(com.sage.accpac.sm.Program program,
java.lang.String appID,
java.lang.String appVersion,
java.util.Map<java.lang.String,com.sage.orion.sdata.servlet.accpac.Portlet> portletMap,
boolean isTimecardUser)
get a list of displayable Portlet objects for the given
application |
java.util.List<com.sage.orion.sdata.servlet.accpac.Portlet> |
getPortalPortlets()
Gets the portal61a portlets. |
java.util.Map<java.lang.String,com.sage.orion.sdata.servlet.accpac.Portlet> |
getPortletsForStartupApp(com.sage.accpac.sm.ActiveApplication activeApp)
get a map of Portlet objects for the given application that can
start up successfully |
java.util.List<com.sage.orion.sdata.servlet.accpac.Portlet> |
getWorkshopPortlets()
Gets the SDK workshop portlets. |
boolean |
isAccessToPortletAllowed(java.lang.String rawPortletID)
Indicates whether or not the user associated with this service is allowed to access the portlet in question. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PortletsService(ApplicationContext applicationContext, ResourceContextImpl resourceContext)
applicationContext
- The ApplicationContext
.resourceContext
- The ResourceContext
.Method Detail |
---|
public java.util.List<PortalPortlet> getAuthorizedPortalPortlets()
public java.util.List<com.sage.orion.sdata.servlet.accpac.Portlet> getPortalPortlets()
public java.util.List<com.sage.orion.sdata.servlet.accpac.Portlet> getWorkshopPortlets()
public java.util.Map<com.sage.accpac.sm.ActiveApplication,java.util.List<com.sage.orion.sdata.servlet.accpac.Portlet>> getAccpacPortlets()
public java.util.Map<java.lang.String,com.sage.orion.sdata.servlet.accpac.Portlet> getPortletsForStartupApp(com.sage.accpac.sm.ActiveApplication activeApp)
Portlet
objects for the given application that can
start up successfully
activeApp
- the ActiveApplication
Portlet
objects or null if the application fails
to start uppublic boolean isAccessToPortletAllowed(java.lang.String rawPortletID)
Indicates whether or not the user associated with this service is allowed to access the portlet in question.
NOTE: If the portlet ID is null or blank (which could be the case if someone manually specified a shortcut without a portlet ID), this method returns false because such a portlet does not exist and thus cannot be accessed. Also, this method returns false both for cases where a "get" of the portlet would have returned "not found" and where it would have returned "forbidden" (found but not allowed to access).
rawPortletID
- The ID of the portlet in question.
public static java.util.List<com.sage.orion.sdata.servlet.accpac.Portlet> getDisplayablePortlets(com.sage.accpac.sm.Program program, java.lang.String appID, java.lang.String appVersion, java.util.Map<java.lang.String,com.sage.orion.sdata.servlet.accpac.Portlet> portletMap, boolean isTimecardUser)
Portlet
objects for the given
application
program
- the Program
to which the user who has signed onappID
- the application IDappVersion
- the application versionportletMap
- the map of installed Portlet
objects that we want to
check for the given application (this may or may not be the full
map of installed objects for that application).isTimecardUser
- whether or not the current user is a timecard user
Portlet
objects
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |