Changeset 1914


Ignore:
Timestamp:
04/13/08 19:36:32 (6 years ago)
Author:
th-schwarz
Message:

added requestcycle stuff

Location:
FCKeditor.Java/branches/2.4/src/site/apt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • FCKeditor.Java/branches/2.4/src/site/apt/fckeditor-properties.apt

    r1907 r1914  
    3535  ... 
    3636  fckeditor.toolbarSet=Silver 
    37   connector.sessionDataImpl=net.fckeditor.impl.BasicSessionData 
     37  connector.userActionImpl=net.fckeditor.requestcycle.impl.UserActionImpl 
    3838  ... 
    3939+-------------------------------------------------------+ 
     
    4646  ... 
    4747  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"); 
    4950  ... 
    5051+-------------------------------------------------------+    
     
    133134|                                                               |                                                                |                                                         | other renamed file type.                                                   | 
    134135*-------------------------------+--------------------------------+-----------------------------+----------------------------------------------------+ 
    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                | 
    137138|                                                               |                                                                | interface                       | {{{integration/connector.html#Extending_the_Connector}Extending the Connector}}. | 
    138139*-------------------------------+--------------------------------+-----------------------------+----------------------------------------------------+ 
     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  
    6262 
    6363+-------------------------------------------------------------------+ 
    64   connector.sessionDataImpl=net.fckeditor.impl.BasicSessionData 
     64  connector.userActionImpl=net.fckeditor.requestcycle.impl.UserActionImpl 
    6565+-------------------------------------------------------------------+ 
    6666 
     
    7474             Connector. 
    7575 
    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}} 
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy