|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lenya.cms.repository.RepositoryUtil
public class RepositoryUtil
Repository utility class.
Constructor Summary | |
---|---|
RepositoryUtil()
|
Method Summary | |
---|---|
static Session |
createSession(org.apache.avalon.framework.service.ServiceManager manager,
Identity identity,
boolean modifiable)
Creates a session. |
protected static Identity |
getIdentity(org.apache.cocoon.environment.Request request)
|
static Session |
getSession(org.apache.avalon.framework.service.ServiceManager manager,
org.apache.cocoon.environment.Request request)
Returns the session attached to the request or creates a session. |
static void |
removeSession(org.apache.avalon.framework.service.ServiceManager manager,
org.apache.cocoon.environment.Request request)
Removes the repository session from the servlet session. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RepositoryUtil()
Method Detail |
---|
public static Session getSession(org.apache.avalon.framework.service.ServiceManager manager, org.apache.cocoon.environment.Request request) throws RepositoryException
manager
- The service manager.request
- The request.
RepositoryException
- if an error occurs.protected static Identity getIdentity(org.apache.cocoon.environment.Request request)
public static Session createSession(org.apache.avalon.framework.service.ServiceManager manager, Identity identity, boolean modifiable) throws RepositoryException
manager
- The service manager.identity
- The identity.modifiable
- Determines if the repository items in this session should be modifiable.
RepositoryException
- if an error occurs.public static void removeSession(org.apache.avalon.framework.service.ServiceManager manager, org.apache.cocoon.environment.Request request)
manager
- The service manager.request
- The current request.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |