|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 Serviceable
ServiceException
Serviceable.service(org.apache.avalon.framework.service.ServiceManager)
protected PortalServiceInfo getInfo()
public String getPortalName()
PortalService
getPortalName
in interface PortalService
PortalService.getPortalName()
public void setPortalName(String value)
setPortalName
in interface PortalService
PortalService.setPortalName(java.lang.String)
public Object getAttribute(String key)
PortalService
getAttribute
in interface PortalService
key
- The key of the attribute
PortalService.getAttribute(java.lang.String)
public void setAttribute(String key, Object value)
PortalService
setAttribute
in interface PortalService
key
- The key of the attributevalue
- The new valuePortalService.setAttribute(java.lang.String, java.lang.Object)
public void removeAttribute(String key)
PortalService
removeAttribute
in interface PortalService
key
- The key of the attributePortalService.removeAttribute(java.lang.String)
public Iterator getAttributeNames()
PortalService
getAttributeNames
in interface PortalService
PortalService.getAttributeNames()
public Object getTemporaryAttribute(String key)
PortalService
getTemporaryAttribute
in interface PortalService
key
- The key of the attribute
PortalService.getTemporaryAttribute(java.lang.String)
public void setTemporaryAttribute(String key, Object value)
PortalService
setTemporaryAttribute
in interface PortalService
key
- The key of the attributevalue
- The new valuePortalService.setTemporaryAttribute(java.lang.String, java.lang.Object)
public void removeTemporaryAttribute(String key)
PortalService
removeTemporaryAttribute
in interface PortalService
key
- The key of the attributePortalService.removeTemporaryAttribute(java.lang.String)
public Iterator getTemporaryAttributeNames()
PortalService
getTemporaryAttributeNames
in interface PortalService
PortalService.getTemporaryAttributeNames()
public PortalComponentManager getComponentManager()
PortalService
getComponentManager
in interface PortalService
PortalService.getComponentManager()
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
Contextualizable.contextualize(org.apache.avalon.framework.context.Context)
public void dispose()
dispose
in interface Disposable
Disposable.dispose()
public void configure(Configuration config) throws ConfigurationException
configure
in interface Configurable
ConfigurationException
Configurable.configure(org.apache.avalon.framework.configuration.Configuration)
public void setEntryLayout(String layoutKey, Layout object)
PortalService
setEntryLayout
in interface PortalService
layoutKey
- TODOPortalService.setEntryLayout(java.lang.String, org.apache.cocoon.portal.layout.Layout)
public Layout getEntryLayout(String layoutKey)
getEntryLayout
in interface PortalService
PortalService.getEntryLayout(java.lang.String)
public void setDefaultLayoutKey(String layoutKey)
PortalService
setDefaultLayoutKey
in interface PortalService
PortalService.setDefaultLayoutKey(java.lang.String)
public void setRenderable(Boolean renderable)
PortalService
setRenderable
in interface PortalService
renderable
- true if all aspects should renderpublic Boolean isRenderable()
PortalService
isRenderable
in interface PortalService
public String getDefaultLayoutKey()
PortalService
getDefaultLayoutKey
in interface PortalService
PortalService.getDefaultLayoutKey()
public List getSkinDescriptions()
PortalService
getSkinDescriptions
in interface PortalService
PortalService.getSkinDescriptions()
public Map getObjectModel()
PortalService
getObjectModel
in interface PortalService
PortalService.getObjectModel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |