pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.component.core.contentregistry
Class FileContentEditor

java.lang.Object
  extended by org.torweg.pulse.bundle.Controller
      extended by org.torweg.pulse.site.content.admin.AbstractBasicContentEditor
          extended by org.torweg.pulse.component.core.contentregistry.FileContentEditor
All Implemented Interfaces:
DeprecatedConfigurable

public class FileContentEditor
extends AbstractBasicContentEditor

the editor for a FileContent within the administration.

Version:
$Revision: 1453 $
Author:
Daniel Dietz

Nested Class Summary
 
Nested classes/interfaces inherited from class org.torweg.pulse.bundle.Controller
Controller.AlwaysRun
 
Field Summary
 
Fields inherited from class org.torweg.pulse.site.content.admin.AbstractBasicContentEditor
LOGGER
 
Constructor Summary
FileContentEditor()
           
 
Method Summary
 void copyFileContent(Bundle bundle, ServiceRequest request)
          creates a copy of a FileContent specified by parameter "id" in request in a folder specified by parameter "toid" in request using the locale of the folder.
 AbstractBasicContentEditorResult initEditor(Bundle bundle, ServiceRequest request)
          returns the initialised FileContentEditor for a FileContent which is determined by a given id in the request.
 AbstractBasicContentEditorResult initFileEditor(Bundle bundle, ServiceRequest request)
          Returns the initialised file-editor of the FileContentEditor for a FileContent which is determined by a given id in the request.
 void saveEditor(Bundle bundle, ServiceRequest request)
          saves the basic properties of a content (name, suffix, keywords).
 
Methods inherited from class org.torweg.pulse.site.content.admin.AbstractBasicContentEditor
addAttachmentToContent, addToLocalizationMap, buildDocument, editAttachmentOfContent, findSitemapNodesForContent, getConfig, init, initAttachmentDescriptionEditor, initFileBrowserForAttachmentsForContent, initHibernateSearchFix, initReferenceDurationEditor, initSummaryEditor, loadAttachmentDescription, loadAttachmentsForContent, loadContentLocalizationMap, loadSummary, removeAttachmentFromContent, removeFromLocalizationMap, removeReferenceDuration, saveAttachmentDescription, saveSummary, setBasics
 
Methods inherited from class org.torweg.pulse.bundle.Controller
getAlwaysRun, isAlwaysRun, setAlwaysRun
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileContentEditor

public FileContentEditor()
Method Detail

initEditor

@RequireToken
@Action(value="initFileContentEditor")
@Permission(value="editFileContent")
@Groups(values="CoreAdministrator")
public final AbstractBasicContentEditorResult initEditor(Bundle bundle, ServiceRequest request)
returns the initialised FileContentEditor for a FileContent which is determined by a given id in the request.

Parameters:
bundle - the current Bundle
request - the current ServiceRequest
Returns:
an AJAX-result: the initialised FileContentEditor

initFileEditor

@RequireToken
@Action(value="initFileEditor", generate=true)
@Permission(value="editFileContent")
@Groups(values="CoreAdministrator")
public final AbstractBasicContentEditorResult initFileEditor(Bundle bundle, ServiceRequest request)
Returns the initialised file-editor of the FileContentEditor for a FileContent which is determined by a given id in the request.

Parameters:
bundle - the current Bundle
request - the current ServiceRequest
Returns:
an AJAX-result: the initialised file-editor of the FileContentEditor

saveEditor

@RequireToken
@Action(value="saveFileContent", generate=true)
@Permission(value="editFileContent")
@Groups(values="CoreAdministrator")
public final void saveEditor(Bundle bundle, ServiceRequest request)
saves the basic properties of a content (name, suffix, keywords).

Parameters:
bundle - the current Bundle
request - the current ServiceRequest

copyFileContent

@RequireToken
@Action(value="copyFileContent", generate=true)
@Permission(value="editFileContent")
@Groups(values="CoreAdministrator")
public final void copyFileContent(Bundle bundle, ServiceRequest request)
creates a copy of a FileContent specified by parameter "id" in request in a folder specified by parameter "toid" in request using the locale of the folder.

Parameters:
bundle - the current Bundle
request - the current ServiceRequest