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 3759 2009-06-22 20:02:26Z 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 isEnabledForFileBrowsing(HttpServletRequest request)
          Deprecated. Method will be removed in FCKeditor.Java 2.6, user isGetResourcesEnabled(HttpServletRequest).
static boolean isEnabledForFileUpload(HttpServletRequest request)
          Deprecated. Method will be removed in FCKeditor.Java 2.6, isFileUploadEnabled(HttpServletRequest).
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

isEnabledForFileBrowsing

@Deprecated
public static boolean isEnabledForFileBrowsing(HttpServletRequest request)
Deprecated. Method will be removed in FCKeditor.Java 2.6, user isGetResourcesEnabled(HttpServletRequest).

Just a wrapper to UserAction.isEnabledForFileBrowsing(HttpServletRequest).

Returns:
UserAction.isEnabledForFileBrowsing(HttpServletRequest) or false if UserAction isn't set.
See Also:
isGetResourcesEnabled(HttpServletRequest)

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)

isEnabledForFileUpload

public static boolean isEnabledForFileUpload(HttpServletRequest request)
Deprecated. Method will be removed in FCKeditor.Java 2.6, isFileUploadEnabled(HttpServletRequest).

Just a wrapper to UserAction.isEnabledForFileUpload(HttpServletRequest).

Returns:
UserAction.isEnabledForFileUpload(HttpServletRequest) or false if UserAction isn't set.
See Also:
isFileUploadEnabled(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-2009 Frederico Caldeira Knabben. All Rights Reserved.