public interface PortalService
| Modifier and Type | Field and Description |
|---|---|
static String |
PLACEMENT_ATTRIBUTE
A portal request scope attribute that reprenset the placement id of the
current request.
|
static String |
SAKAI_CONTROLLING_PORTAL
this is the property in session to keep track of the current portal
|
static String |
SAKAI_PORTAL_ORIGINAL_SITEID
The Site ID that the user was originally trying to access when they hit the error.
|
static String |
TOOL_PORTLET_APP_NAME
this is the property in the tool config that defines the name of the
portlet application
|
static String |
TOOL_PORTLET_CONTEXT_PATH
this is the property in the tool config that defines the portlet context
of tool.
|
static String |
TOOL_PORTLET_NAME
this is the property in the tool config that defines the name of the
portlet
|
| Modifier and Type | Method and Description |
|---|---|
void |
addHandler(Portal portal,
PortalHandler handler)
Add a PortalHandler to the portal Handler map for the named context.
|
void |
addHandler(String portalContext,
PortalHandler handler)
Add a PortalHandler when you don't have a reference to the portal.
|
void |
addPortal(Portal portal)
Remove a portal from the portal service this should perform all the
necessary cleanup
|
void |
addRenderEngine(String context,
PortalRenderEngine vengine)
add a render engine to the available render engines.
|
String |
decodeToolState(Map<String,String[]> params,
String placementId)
Inverts the operation of encodeToolState, and returns the URL stub which
was supplied for the supplied placementId.
|
Map<String,String[]> |
encodeToolState(String placementId,
String URLstub)
Returns a parameter map suitable for appending to a portal URL,
representing that the URL state of a tool being shown with the specified
placementId will be equal to the URLstub.
|
Editor |
getActiveEditor()
Retrieve the activated system-wide Editor.
|
Editor |
getActiveEditor(Placement placement)
Retrieve the activated Editor, considering the tool Placement.
|
String |
getBrowserCollectionId(Placement placement)
Retrieves the site collection ID for a placement for file browsing to an appropriate location.
|
ContentHostingService |
getContentHostingService()
Bean getter for Content Hosting dependency.
|
String |
getContentItemUrl(Site site)
Retrieves the url for the ContentItem selector - if there are any to select
|
EditorRegistry |
getEditorRegistry()
Bean getter for Editor Registry.
|
Map<String,PortalHandler> |
getHandlerMap(Portal portal)
Get the PortalHandler map for the portal Context.
|
List<Map> |
getQuickLinks(String siteSkin) |
String |
getQuickLinksTitle(String siteSkin) |
Iterator<PortletApplicationDescriptor> |
getRegisteredApplications()
Get an Iterator of Portlet Application Descriptors from the whole of the
application
|
PortalRenderEngine |
getRenderEngine(String context,
javax.servlet.http.HttpServletRequest request)
get a render engine possibly based on the request
|
String |
getResetState()
get the state of the state of the portal reset flag
|
String |
getResetStateParam()
Get the parameter used to communicate reset state operations on the URL
|
SiteNeighbourhoodService |
getSiteNeighbourhoodService() |
String |
getSkinPrefix() |
StoredState |
getStoredState()
get the StoredState object that is used to hold initial request state on
direct access to a portlet state or on GET or POST that requires other
initial actions.
|
StyleAbleProvider |
getStylableService()
Get the implimentation of the StylableService from the portal impl
|
boolean |
isEnableDirect()
Is the direct URL mechnism enabled in the configation file.
|
boolean |
isResetRequested(javax.servlet.http.HttpServletRequest req)
Was a reset requested
|
StoredState |
newStoredState(String marker,
String replacement)
Create a new Stored State
|
void |
removeHandler(Portal portal,
String urlFragment)
Remove the Portal Handler identitied by the URL fragment associated with
the portal Context
|
void |
removeHandler(String portalContext,
String urlFragment)
Remove a PortalHandler when you don't have a reference to the portal.
|
void |
removePortal(Portal portal)
Add a portal to the portal service
|
void |
removeRenderEngine(String context,
PortalRenderEngine vengine)
remove a render engine from the avaialble render engines
|
void |
setContentHostingService(ContentHostingService contentHostingService)
Bean setter for Content Hosting dependency.
|
void |
setEditorRegistry(EditorRegistry editorRegistry)
Bean setter for Editor Registry.
|
void |
setResetState(String state)
ste the state of the portal reset flag.
|
void |
setStoredState(StoredState storedstate)
set the StoredState of the request for later retrieval
|
static final String PLACEMENT_ATTRIBUTE
static final String TOOL_PORTLET_CONTEXT_PATH
static final String TOOL_PORTLET_APP_NAME
static final String TOOL_PORTLET_NAME
static final String SAKAI_CONTROLLING_PORTAL
static final String SAKAI_PORTAL_ORIGINAL_SITEID
void setResetState(String state)
state - Map<String,String[]> encodeToolState(String placementId, String URLstub)
String decodeToolState(Map<String,String[]> params, String placementId)
null
if there was no special state registered.String getResetState()
StoredState getStoredState()
boolean isResetRequested(javax.servlet.http.HttpServletRequest req)
req - void setStoredState(StoredState storedstate)
storedstate - boolean isEnableDirect()
String getResetStateParam()
StoredState newStoredState(String marker, String replacement)
marker - the mark within the URLreplacement - and the replacement text on restorationIterator<PortletApplicationDescriptor> getRegisteredApplications()
PortalRenderEngine getRenderEngine(String context, javax.servlet.http.HttpServletRequest request)
context - -
the context from whcih to take the render engine.request - void addRenderEngine(String context, PortalRenderEngine vengine)
context - -
the context to rengister the render engine in, as there may be
more than one portal in a sakai instance, you need to register the
render engine against a context. The context should match the
context used by the portal to retrieve its render engine. This is
dependant on the Portal implementation details.vengine - the render engine implementation to register with the portal
servicevoid removeRenderEngine(String context, PortalRenderEngine vengine)
context - -
the context to deregister the render engine from, as there may be
more than one portal in a sakai instance, you need to deregister
the render engine from a context. The context should match the
context used by the portal to retrieve its render engine. This is
dependant on the Portal implementation details.vengine - void addHandler(Portal portal, PortalHandler handler)
portal - handler - void removeHandler(Portal portal, String urlFragment)
portal - urlFragment - Map<String,PortalHandler> getHandlerMap(Portal portal)
portal - void removePortal(Portal portal)
portal - void addPortal(Portal portal)
portal - StyleAbleProvider getStylableService()
void addHandler(String portalContext, PortalHandler handler)
portalContext - The context of the portal. Eg: charon.handler - The portal handler to add.removeHandler(String, String)void removeHandler(String portalContext, String urlFragment)
addHandler(String, PortalHandler)SiteNeighbourhoodService getSiteNeighbourhoodService()
void setContentHostingService(ContentHostingService contentHostingService)
contentHostingService - ContentHostingService getContentHostingService()
String getContentItemUrl(Site site)
site - The site that is being rendered.String getBrowserCollectionId(Placement placement)
placement - The placement that is being rendered.void setEditorRegistry(EditorRegistry editorRegistry)
editorRegistry - EditorRegistry getEditorRegistry()
Editor getActiveEditor()
Editor getActiveEditor(Placement placement)
placement - The placement that is being rendered.String getSkinPrefix()
String getQuickLinksTitle(String siteSkin)
Copyright © 2003–2019 Sakai Project. All rights reserved.