| java.lang.Object org.apache.lenya.cms.repository.RepositoryUtil
RepositoryUtil | public class RepositoryUtil (Code) | | Repository utility class.
|
Method Summary | |
public static Session | createSession(ServiceManager manager, Identity identity, boolean modifiable) Creates a session.
Parameters: manager - The service manager. Parameters: identity - The identity. Parameters: modifiable - Determines if the repository items in this session should be modifiable. | protected static Identity | getIdentity(Request request) | public static Session | getSession(ServiceManager manager, Request request) Returns the session attached to the request or creates a session.
Parameters: manager - The service manager. Parameters: request - The request. | public static void | removeSession(ServiceManager manager, Request request) Removes the repository session from the servlet session. |
createSession | public static Session createSession(ServiceManager manager, Identity identity, boolean modifiable) throws RepositoryException(Code) | | Creates a session.
Parameters: manager - The service manager. Parameters: identity - The identity. Parameters: modifiable - Determines if the repository items in this session should be modifiable. a session. throws: RepositoryException - if an error occurs. |
getSession | public static Session getSession(ServiceManager manager, Request request) throws RepositoryException(Code) | | Returns the session attached to the request or creates a session.
Parameters: manager - The service manager. Parameters: request - The request. A session. throws: RepositoryException - if an error occurs. |
removeSession | public static void removeSession(ServiceManager manager, Request request)(Code) | | Removes the repository session from the servlet session.
Parameters: manager - The service manager. Parameters: request - The current request. |
|
|