net.fckeditor.handlers
Class RequestCycleHandler

java.lang.Object
  extended by net.fckeditor.handlers.RequestCycleHandler

public class RequestCycleHandler
extends Object

Handles the UserAction and UserPathBuilder interfaces.
This class instantiates the the chosen implementations and acts as a proxy for their methods/access.

Version:
$Id: RequestCycleHandler.java 4785 2009-12-21 20:10:28Z mosipov $

Constructor Summary
RequestCycleHandler()
           
 
Method Summary
static String getUserFilesAbsolutePath(HttpServletRequest request)
          Returns the current absolute userfiles path.
static String getUserFilesPath(HttpServletRequest request)
          Returns the current userfiles path.
static boolean isCreateFolderEnabled(HttpServletRequest request)
          Returns true if user is allowed to create folders.
static boolean isFileUploadEnabled(HttpServletRequest request)
          Returns true if user is allowed to upload files.
static boolean isGetResourcesEnabled(HttpServletRequest request)
          Returns true if user is allowed to list resources.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestCycleHandler

public RequestCycleHandler()
Method Detail

isGetResourcesEnabled

public static boolean isGetResourcesEnabled(HttpServletRequest request)
Returns true if user is allowed to list resources. The behavior is specified by the current UserAction instance.

Parameters:
request - current user request instance
Returns:
true if user is allowed to list resources, false otherwise
See Also:
UserAction.isEnabledForFileBrowsing(HttpServletRequest)

isFileUploadEnabled

public static boolean isFileUploadEnabled(HttpServletRequest request)
Returns true if user is allowed to upload files. The behavior is specified by the current UserAction instance.

Parameters:
request - current user request instance
Returns:
true if user is allowed to upload files, false otherwise
See Also:
UserAction.isEnabledForFileUpload(HttpServletRequest)

isCreateFolderEnabled

public static boolean isCreateFolderEnabled(HttpServletRequest request)
Returns true if user is allowed to create folders. The behavior is specified by the current UserAction instance.

Parameters:
request - current user request instance
Returns:
true if user is allowed to create folders, false otherwise
See Also:
UserAction.isEnabledForFileBrowsing(HttpServletRequest)

getUserFilesPath

public static String getUserFilesPath(HttpServletRequest request)
Returns the current userfiles path. The path is specified by the current UserPathBuilder instance.

Parameters:
request - current user request instance
Returns:
current userfiles path
See Also:
UserPathBuilder.getUserFilesPath(HttpServletRequest)

getUserFilesAbsolutePath

public static String getUserFilesAbsolutePath(HttpServletRequest request)
Returns the current absolute userfiles path. The path is specified by the current UserPathBuilder instance.
Note that the path is absolute to the underlying system of the current Connector instance.

Parameters:
request - current user request instance
Returns:
current absolute userfiles path
See Also:
UserPathBuilder.getUserFilesAbsolutePath(HttpServletRequest)


Copyright © 2004-2010 Frederico Caldeira Knabben. All Rights Reserved.