|
|||||||||||
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
Default implementation of a portal service using a session to store custom information.
Field Summary | |
protected String |
attributePrefix
The attribute prefix used to prefix attributes in the session and request. |
protected Context |
context
The component context. |
protected String |
defaultLayoutKey
The default layout key. |
protected static String |
KEY
|
protected ServiceManager |
manager
The service locator. |
protected PortalComponentManager |
portalComponentManager
The manager for some core portal components. |
protected String |
portalName
The name of the portal. |
protected List |
skinList
The list of 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)
|
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. |
Object |
removeAttribute(String key)
Remove an attribute. |
Object |
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 |
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 PortalComponentManager portalComponentManager
protected List skinList
protected String portalName
protected String defaultLayoutKey
protected String attributePrefix
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)
public String getPortalName()
PortalService
getPortalName
in interface PortalService
PortalService.getPortalName()
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 Object 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 Object 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 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 |