|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.portal.impl.PortalServiceImpl
public class PortalServiceImpl
Default implementation of a portal service using a session to store custom information.
| Field Summary | |
|---|---|
protected Context |
context
|
protected static String |
KEY
|
protected ServiceManager |
manager
|
protected Map |
portalComponentManagers
|
protected Map |
portalConfigurations
|
protected Map |
skins
|
| Fields inherited from interface org.apache.cocoon.portal.PortalService |
|---|
ROLE |
| Constructor Summary | |
|---|---|
PortalServiceImpl()
|
|
| Method Summary | |
|---|---|
void |
configure(Configuration config)
|
void |
contextualize(Context context)
|
void |
dispose()
|
Object |
getAttribute(String key)
Return the value of an attribute |
Iterator |
getAttributeNames()
Return the names of all attributes |
PortalComponentManager |
getComponentManager()
Return the component manager for the current portal |
String |
getDefaultLayoutKey()
Get the default layout key |
Layout |
getEntryLayout(String layoutKey)
|
protected PortalServiceInfo |
getInfo()
|
Map |
getObjectModel()
Return the current object model. |
String |
getPortalName()
The name of the portal - as defined in the portal configuration. |
List |
getSkinDescriptions()
Return all skins |
Object |
getTemporaryAttribute(String key)
Return the value of a temporary attribute |
Iterator |
getTemporaryAttributeNames()
Return the names of all temporary attributes |
Boolean |
isRenderable()
Returns true if all aspects should render, false if only "static" aspects should render. |
void |
removeAttribute(String key)
Remove an attribute |
void |
removeTemporaryAttribute(String key)
Remove a temporary attribute |
void |
service(ServiceManager serviceManager)
|
void |
setAttribute(String key,
Object value)
Set an attribute |
void |
setDefaultLayoutKey(String layoutKey)
Change the default layout key for most functions |
void |
setEntryLayout(String layoutKey,
Layout object)
FIXME this is for the full-screen function |
void |
setPortalName(String value)
|
void |
setRenderable(Boolean renderable)
Indicates whether aspects which are sensitive to rendering state should render |
void |
setTemporaryAttribute(String key,
Object value)
Set a temporary attribute |
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
|---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Context context
protected ServiceManager manager
protected Map portalComponentManagers
protected Map portalConfigurations
protected Map skins
protected static final String KEY
| Constructor Detail |
|---|
public PortalServiceImpl()
| Method Detail |
|---|
public void service(ServiceManager serviceManager)
throws ServiceException
service in interface ServiceableServiceExceptionServiceable.service(org.apache.avalon.framework.service.ServiceManager)protected PortalServiceInfo getInfo()
public String getPortalName()
PortalService
getPortalName in interface PortalServicePortalService.getPortalName()public void setPortalName(String value)
setPortalName in interface PortalServicePortalService.setPortalName(java.lang.String)public Object getAttribute(String key)
PortalService
getAttribute in interface PortalServicekey - The key of the attribute
PortalService.getAttribute(java.lang.String)
public void setAttribute(String key,
Object value)
PortalService
setAttribute in interface PortalServicekey - The key of the attributevalue - The new valuePortalService.setAttribute(java.lang.String, java.lang.Object)public void removeAttribute(String key)
PortalService
removeAttribute in interface PortalServicekey - The key of the attributePortalService.removeAttribute(java.lang.String)public Iterator getAttributeNames()
PortalService
getAttributeNames in interface PortalServicePortalService.getAttributeNames()public Object getTemporaryAttribute(String key)
PortalService
getTemporaryAttribute in interface PortalServicekey - The key of the attribute
PortalService.getTemporaryAttribute(java.lang.String)
public void setTemporaryAttribute(String key,
Object value)
PortalService
setTemporaryAttribute in interface PortalServicekey - The key of the attributevalue - The new valuePortalService.setTemporaryAttribute(java.lang.String, java.lang.Object)public void removeTemporaryAttribute(String key)
PortalService
removeTemporaryAttribute in interface PortalServicekey - The key of the attributePortalService.removeTemporaryAttribute(java.lang.String)public Iterator getTemporaryAttributeNames()
PortalService
getTemporaryAttributeNames in interface PortalServicePortalService.getTemporaryAttributeNames()public PortalComponentManager getComponentManager()
PortalService
getComponentManager in interface PortalServicePortalService.getComponentManager()
public void contextualize(Context context)
throws ContextException
contextualize in interface ContextualizableContextExceptionContextualizable.contextualize(org.apache.avalon.framework.context.Context)public void dispose()
dispose in interface DisposableDisposable.dispose()
public void configure(Configuration config)
throws ConfigurationException
configure in interface ConfigurableConfigurationExceptionConfigurable.configure(org.apache.avalon.framework.configuration.Configuration)
public void setEntryLayout(String layoutKey,
Layout object)
PortalService
setEntryLayout in interface PortalServicelayoutKey - TODOPortalService.setEntryLayout(java.lang.String, org.apache.cocoon.portal.layout.Layout)public Layout getEntryLayout(String layoutKey)
getEntryLayout in interface PortalServicePortalService.getEntryLayout(java.lang.String)public void setDefaultLayoutKey(String layoutKey)
PortalService
setDefaultLayoutKey in interface PortalServicePortalService.setDefaultLayoutKey(java.lang.String)public void setRenderable(Boolean renderable)
PortalService
setRenderable in interface PortalServicerenderable - true if all aspects should renderpublic Boolean isRenderable()
PortalService
isRenderable in interface PortalServicepublic String getDefaultLayoutKey()
PortalService
getDefaultLayoutKey in interface PortalServicePortalService.getDefaultLayoutKey()public List getSkinDescriptions()
PortalService
getSkinDescriptions in interface PortalServicePortalService.getSkinDescriptions()public Map getObjectModel()
PortalService
getObjectModel in interface PortalServicePortalService.getObjectModel()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||