net.fckeditor.requestcycle.impl
Class EnabledUserAction

java.lang.Object
  extended by net.fckeditor.requestcycle.impl.EnabledUserAction
All Implemented Interfaces:
UserAction

public class EnabledUserAction
extends Object
implements UserAction

UserAction implementation which always returns true.

Version:
$Id: EnabledUserAction.java 3746 2009-06-22 17:53:03Z mosipov $

Constructor Summary
EnabledUserAction()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnabledUserAction

public EnabledUserAction()
Method Detail

isEnabledForFileBrowsing

public boolean isEnabledForFileBrowsing(HttpServletRequest request)
Description copied from interface: UserAction
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.

Specified by:
isEnabledForFileBrowsing in interface UserAction
Parameters:
request - current user request instance
Returns:
true if resource retrieval/listing is enabled/allowed, else false

isEnabledForFileUpload

public boolean isEnabledForFileUpload(HttpServletRequest request)
Description copied from interface: UserAction
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.

Specified by:
isEnabledForFileUpload in interface UserAction
Parameters:
request - current user request instance
Returns:
true if file upload is enabled/allowed, else false

isCreateFolderEnabled

public boolean isCreateFolderEnabled(HttpServletRequest request)
Description copied from interface: UserAction
Checks if folder creation is enabled/allowed. This method maps to CreateFolder.

Specified by:
isCreateFolderEnabled in interface UserAction
Parameters:
request - current user request instance
Returns:
true if folder creation is enabled/allowed, else false


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