|
||||||||||
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.webapps.portal.components.PortalManagerImpl
public final class PortalManagerImpl
This is the basis portal component
Field Summary | |
---|---|
protected Context |
componentContext
The context |
protected boolean |
initialized
Are we already setup for this request? |
protected ComponentManager |
manager
The component manager |
protected SourceResolver |
resolver
The current source resolver |
Constructor Summary | |
---|---|
PortalManagerImpl()
|
Method Summary | |
---|---|
protected void |
buildProfile(String type,
String role,
String id,
boolean adminProfile)
Building the profile. |
boolean |
checkAuthentication(Redirector redirector,
String copletID)
Check the authentication for the coplet. |
void |
compose(ComponentManager manager)
|
void |
configurationTest()
Configure portal and check if it is allowed to see this coplet (if it is one). |
void |
contextualize(Context context)
|
void |
dispose()
|
protected AuthenticationManager |
getAuthenticationManager()
Get the authentication manager |
SessionContext |
getContext(boolean create)
Get the portal context of the current application |
protected ContextManager |
getContextManager()
Get the ContextManager component |
protected MediaManager |
getMediaManager()
Get the media manager |
String |
getMediaType()
Get the current media type |
String |
getProfileID(String type,
String role,
String id,
boolean adminProfile)
Builds the key for caching |
protected Store |
getProfileStore()
Get the profile store |
protected RequestState |
getRequestState()
Get the current authentication state |
protected SessionManager |
getSessionManager()
Get the SessionManager component |
Element |
getStatusProfile()
Get the status profile |
protected TransactionManager |
getTransactionManager()
Get the ContextManager component |
void |
recompose(ComponentManager manager)
|
void |
recycle()
|
Map |
retrieveProfile(String profileID)
Retrieve the profil |
protected void |
sendEvents(XMLConsumer consumer,
Node node)
Send SAX events to the next pipeline component. |
protected void |
setup()
Setup this component |
void |
showAdminConf(XMLConsumer consumer)
Show the admin configuration page. |
void |
showPortal(XMLConsumer consumer,
boolean configMode,
boolean adminProfile)
Show the portal. |
void |
streamConfiguration(XMLConsumer consumer,
String requestURI,
String profileID,
String media,
String contextID)
Include Portal URI into stream |
static void |
streamLayoutProfile(XMLConsumer consumer,
Map portalLayouts,
Map copletLayouts,
String mediaType)
Stream all layout information for the current portal to the consumer. |
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 ComponentManager manager
protected SourceResolver resolver
protected Context componentContext
protected boolean initialized
Constructor Detail |
---|
public PortalManagerImpl()
Method Detail |
---|
public void recycle()
recycle
in interface Recyclable
protected RequestState getRequestState()
public void compose(ComponentManager manager) throws ComponentException
compose
in interface Composable
ComponentException
public void recompose(ComponentManager manager) throws ComponentException
recompose
in interface Recomposable
ComponentException
public void dispose()
dispose
in interface Disposable
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
protected Store getProfileStore() throws ProcessingException
ProcessingException
protected AuthenticationManager getAuthenticationManager() throws ProcessingException
ProcessingException
protected MediaManager getMediaManager() throws ProcessingException
ProcessingException
protected void setup() throws ProcessingException
ProcessingException
public void configurationTest() throws ProcessingException, IOException, SAXException
PortalManager
configurationTest
in interface PortalManager
ProcessingException
IOException
SAXException
public SessionContext getContext(boolean create) throws ProcessingException, IOException, SAXException
PortalManager
getContext
in interface PortalManager
ProcessingException
IOException
SAXException
public void streamConfiguration(XMLConsumer consumer, String requestURI, String profileID, String media, String contextID) throws IOException, SAXException, ProcessingException
PortalManager
streamConfiguration
in interface PortalManager
IOException
SAXException
ProcessingException
public void showAdminConf(XMLConsumer consumer) throws SAXException, ProcessingException, IOException
PortalManager
showAdminConf
in interface PortalManager
SAXException
ProcessingException
IOException
public Element getStatusProfile() throws SAXException, IOException, ProcessingException
PortalManager
getStatusProfile
in interface PortalManager
SAXException
IOException
ProcessingException
public void showPortal(XMLConsumer consumer, boolean configMode, boolean adminProfile) throws SAXException, ProcessingException, IOException
PortalManager
showPortal
in interface PortalManager
SAXException
ProcessingException
IOException
public static void streamLayoutProfile(XMLConsumer consumer, Map portalLayouts, Map copletLayouts, String mediaType) throws SAXException
SAXException
protected void buildProfile(String type, String role, String id, boolean adminProfile) throws ProcessingException, IOException, SAXException
ProcessingException
IOException
SAXException
public String getProfileID(String type, String role, String id, boolean adminProfile) throws ProcessingException
PortalManager
getProfileID
in interface PortalManager
ProcessingException
public Map retrieveProfile(String profileID) throws ProcessingException
PortalManager
retrieveProfile
in interface PortalManager
ProcessingException
public String getMediaType() throws ProcessingException
PortalManager
getMediaType
in interface PortalManager
ProcessingException
public boolean checkAuthentication(Redirector redirector, String copletID) throws SAXException, IOException, ProcessingException
PortalManager
checkAuthentication
in interface PortalManager
SAXException
IOException
ProcessingException
protected void sendEvents(XMLConsumer consumer, Node node) throws SAXException
node
- The tree to be included.
SAXException
protected SessionManager getSessionManager() throws ProcessingException
ProcessingException
protected ContextManager getContextManager() throws ProcessingException
ProcessingException
protected TransactionManager getTransactionManager() throws ProcessingException
ProcessingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |