net.fckeditor.requestcycle
Interface UserAction

All Known Implementing Classes:
DisabledUserAction, EnabledUserAction, UserActionImpl

public interface UserAction

An interface for user action control. In particular, this interface gives you fine-grained control over the File Browser commands.

Note: You are free to implement this interface the way you need it, in other words your return values can be global, regardless of the request, or on a per-request basis.

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

Method Summary
 boolean isCreateFolderEnabled(HttpServletRequest request)
          Checks if folder creation is enabled/allowed.
 boolean isEnabledForFileBrowsing(HttpServletRequest request)
          Checks if resource retrieval/listing is enabled/allowed.
 boolean isEnabledForFileUpload(HttpServletRequest request)
          Checks if file upload is enabled/allowed.
 

Method Detail

isEnabledForFileUpload

boolean isEnabledForFileUpload(HttpServletRequest request)
Checks if file upload is enabled/allowed. This method maps to FileUpload and QuickUpload.
Note: This method may be renamed to isFileUploadEnabled in future versions.

Parameters:
request - current user request instance
Returns:
true if file upload is enabled/allowed, else false

isEnabledForFileBrowsing

boolean isEnabledForFileBrowsing(HttpServletRequest request)
Checks if resource retrieval/listing is enabled/allowed. This method maps to GetFolders and GetFoldersAndFiles.
Note: This method may be renamed to isGetResourcesEnabled in future versions.

Parameters:
request - current user request instance
Returns:
true if resource retrieval/listing is enabled/allowed, else false

isCreateFolderEnabled

boolean isCreateFolderEnabled(HttpServletRequest request)
Checks if folder creation is enabled/allowed. This method maps to CreateFolder.

Parameters:
request - current user request instance
Returns:
true if folder creation is enabled/allowed, else false


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