Changeset 1914
- Timestamp:
- 2008-04-13 19:36:32 (3 months ago)
- Location:
- FCKeditor.Java/branches/2.4/src/site/apt
- Files:
-
- 2 modified
-
fckeditor-properties.apt (modified) (3 diffs)
-
integration/connector.apt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor.Java/branches/2.4/src/site/apt/fckeditor-properties.apt
r1907 r1914 35 35 ... 36 36 fckeditor.toolbarSet=Silver 37 connector. sessionDataImpl=net.fckeditor.impl.BasicSessionData37 connector.userActionImpl=net.fckeditor.requestcycle.impl.UserActionImpl 38 38 ... 39 39 +-------------------------------------------------------+ … … 46 46 ... 47 47 PropertiesLoader.setProperty("fckeditor.toolbarSet", "Silver"); 48 PropertiesLoader.setProperty("connector.sessionDataImpl", "net.fckeditor.impl.BasicSessionData"); 48 PropertiesLoader.setProperty("connector.userActionImpl", 49 "net.fckeditor.requestcycle.impl.UserActionImpl"); 49 50 ... 50 51 +-------------------------------------------------------+ … … 133 134 | | | | other renamed file type. | 134 135 *-------------------------------+--------------------------------+-----------------------------+----------------------------------------------------+ 135 | connector. sessionDataImpl | | any class implementing the | Providing custom security functions for the File |136 | | | {{{apidocs/net/fckeditor/ SessionData.html}<<<net.fckeditor.SessionData>>>}} | Browser Connector. For more details see |136 | connector.userActionImpl | | any class implementing the | Providing custom security functions for the File | 137 | | | {{{apidocs/net/fckeditor/requestcycle/UserAction.html}<<<net.fckeditor.requestcycle.UserAction>>>}} | Browser Connector. For more details see | 137 138 | | | interface | {{{integration/connector.html#Extending_the_Connector}Extending the Connector}}. | 138 139 *-------------------------------+--------------------------------+-----------------------------+----------------------------------------------------+ 140 | connector.userPathBuilderImpl | | any class implementing the | Providing a custom function to construct an user depended 'BaseDir' for the | 141 | | | {{{apidocs/net/fckeditor/requestcycle/UserPathBuilder.html}<<<net.fckeditor.requestcycle.UserPathBuilder>>>}} | Browser Connector. For more details see | 142 | | | interface | {{{integration/connector.html#Extending_the_Connector}Extending the Connector}}. | 143 *-------------------------------+--------------------------------+-----------------------------+----------------------------------------------------+ -
FCKeditor.Java/branches/2.4/src/site/apt/integration/connector.apt
r1845 r1914 62 62 63 63 +-------------------------------------------------------------------+ 64 connector. sessionDataImpl=net.fckeditor.impl.BasicSessionData64 connector.userActionImpl=net.fckeditor.requestcycle.impl.UserActionImpl 65 65 +-------------------------------------------------------------------+ 66 66 … … 74 74 Connector. 75 75 76 ... 76 The basic idea of extending the Connector is to provide interfaces for special user depended issues, 77 which can be implemented by the developer of a webapp. All methods get the <<<HttpServletRequest>>>-object, 78 so the developer could identify the user with a session attribute for example and return an user 79 specific value. We intentionally make no suggestions how to do this, so you have the free of choice to 80 implement whatever and however you like. 81 82 The fully-qualified class name of the implemented classes can now be set as described in 83 {{{fckeditor-properties.html}Configuration settings}}. 84 85 At the moment, the integration pack provides two interfaces to extend the connector: 86 87 [[1]] {{{apidocs/net/fckeditor/requestcycle/UserPathBuilder.html}<<<net.fckeditor.requestcycle.UserPathBuilder>>>}} 88 89 In this interface there is only one method <<<getUserFilesPath(final HttpServletRequest request)>>>, 90 return value is a String. There you can implement a user dependent construction of the 'BaseDir' path, 91 the path for all resource files. 92 93 [[2]] {{{apidocs/net/fckeditor/requestcycle/UserAction.html}<<<net.fckeditor.requestcycle.UserAction>>>}} 94 95 There are two methods to authorize users to do file based actions: 96 97 * <<<#isEnabledForFileUpload(HttpServletRequest)>>> Enables/disables the user for uploading files. 98 99 * <<<#isEnabledForFileBrowsing(HttpServletRequest)>>> Enables/disables the user for browsing files. 100 101 [] 102 103 For those who wants to enable all users for browsing and uploading files, there is an implementation 104 of <<<UserAction>>> you can use: {{{apidocs/net/fckeditor/requestcycle/impl/UserActionImp.html}UserActionImpl}}