|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.bundle.Controller
org.torweg.pulse.site.content.admin.AbstractBasicContentEditor
public class AbstractBasicContentEditor
provides a set of basic editor methods for AbstractBasicContent.
TODO.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.torweg.pulse.bundle.Controller |
|---|
Controller.AlwaysRun |
| Field Summary | |
|---|---|
protected static org.slf4j.Logger |
LOGGER
the logger. |
| Constructor Summary | |
|---|---|
AbstractBasicContentEditor()
|
|
| Method Summary | |
|---|---|
void |
addAttachmentToContent(Bundle bundle, ServiceRequest request)
adds an Attachmentto a AbstractBasicContent. |
void |
addToLocalizationMap(Bundle bundle, ServiceRequest request)
starts the ContentLocalizationMap-editor for a
AbstractBasicContent. |
protected org.jdom.Document |
buildDocument(java.lang.String s)
convenience. |
AbstractBasicContentEditorResult |
editAttachmentOfContent(Bundle bundle, ServiceRequest request)
initializes the file-browser for the attachments-editor. |
void |
findSitemapNodesForContent(Bundle bundle, ServiceRequest request)
loads the SitemapNodes a content is assigned to. |
protected AbstractBasicContentEditorConfig |
getConfig()
Returns the configuration. |
void |
init(ConfigBean c)
configures the Controller. |
FCKEditorResult |
initAttachmentDescriptionEditor(Bundle bundle, ServiceRequest request)
starts the FCKEditor for the summary of the content determined by the request. |
AbstractBasicContentEditorResult |
initFileBrowserForAttachmentsForContent(Bundle bundle, ServiceRequest request)
initializes the file-browser for the attachments-editor. |
static void |
initHibernateSearchFix(org.hibernate.Session s, Content content)
takes care of updating the search index whenever a content has been changed. |
AbstractBasicContentEditorResult |
initReferenceDurationEditor(ServiceRequest request)
Returns a result to initialise the reference-duration-editor. |
FCKEditorResult |
initSummaryEditor(Bundle bundle, ServiceRequest request)
starts the FCKEditor for the summary of the content determined by the request. |
FCKEditorResult |
loadAttachmentDescription(Bundle bundle, ServiceRequest request)
starts the FCKEditor for the summary of the content determined by the request. |
void |
loadAttachmentsForContent(Bundle bundle, ServiceRequest request)
loads the Attachments for a AbstractBasicContent. |
AbstractBasicContentEditorResult |
loadContentLocalizationMap(Bundle bundle, ServiceRequest request)
starts the ContentLocalizationMap-editor for a
AbstractBasicContent. |
AbstractBasicContentEditorResult |
loadSummary(Bundle bundle, ServiceRequest request)
|
void |
removeAttachmentFromContent(Bundle bundle, ServiceRequest request)
removes an Attachment from the AbstractBasicContent. |
void |
removeFromLocalizationMap(Bundle bundle, ServiceRequest request)
starts the ContentLocalizationMap-editor for a
AbstractBasicContent. |
void |
removeReferenceDuration(ServiceRequest request)
Removes the reference Duration from a Content specified
by given id in request. |
void |
saveAttachmentDescription(Bundle bundle, ServiceRequest request)
|
void |
saveSummary(Bundle bundle, ServiceRequest request)
|
static net.sf.json.JSONObject |
setBasics(AbstractBasicContent content, ServiceRequest request,
org.hibernate.Session s)
sets the AbstractBasicContent's basic attributes: name, keywords,
suffix, title, meta-keywords, meta-description and attachments. |
| 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 |
| Field Detail |
|---|
protected static final org.slf4j.Logger LOGGER
| Constructor Detail |
|---|
public AbstractBasicContentEditor()
| Method Detail |
|---|
@RequireToken @Action(value="initSummaryEditor", generate=true) @Permission(value="viewAbstractBasicContent") @Groups(values="ContentAdministrator") public final FCKEditorResult initSummaryEditor(Bundle bundle, ServiceRequest request)
bundle - the current Bundlerequest - the current ServiceRequest
@RequireToken @Action(value="saveSummary", generate=true) @Permission(value="editAbstractBasicContent") @Groups(values="ContentAdministrator") public final void saveSummary(Bundle bundle, ServiceRequest request)
bundle - the current Bundlerequest - the current ServiceRequest@RequireToken @Action(value="loadSummary", generate=true) @Permission(value="viewAbstractBasicContent") @Groups(values="ContentAdministrator") public final AbstractBasicContentEditorResult loadSummary(Bundle bundle, ServiceRequest request)
bundle - the current Bundlerequest - the current ServiceRequest
@RequireToken @Action(value="initContentLocalizationMap", generate=true) @Permission(value="viewLocalizationMaps") @Groups(values="ContentAdministrator") public final AbstractBasicContentEditorResult loadContentLocalizationMap(Bundle bundle, ServiceRequest request)
ContentLocalizationMap-editor for a
AbstractBasicContent.
bundle - the current Bundlerequest - the current ServiceRequest
@RequireToken @Action(value="contentLocalizationMapAdd", generate=true) @Permission(value="editLocalizationMaps") @Groups(values="ContentAdministrator") public final void addToLocalizationMap(Bundle bundle, ServiceRequest request)
ContentLocalizationMap-editor for a
AbstractBasicContent.
bundle - the current Bundlerequest - the current ServiceRequest@RequireToken @Action(value="contentLocalizationMapRemove", generate=true) @Permission(value="editLocalizationMaps") @Groups(values="ContentAdministrator") public final void removeFromLocalizationMap(Bundle bundle, ServiceRequest request)
ContentLocalizationMap-editor for a
AbstractBasicContent.
bundle - the current Bundlerequest - the current ServiceRequest@RequireToken @Action(value="loadSitemapNodesForContent", generate=true) @Permission(value="viewAbstractBasicContent") @Groups(values="ContentAdministrator") public final void findSitemapNodesForContent(Bundle bundle, ServiceRequest request)
SitemapNodes a content is assigned to.
bundle - the current Bundlerequest - the current ServiceRequest@RequireToken @Action(value="loadAttachmentsForContent", generate=true) @Permission(value="viewAbstractBasicContent") @Groups(values="ContentAdministrator") public final void loadAttachmentsForContent(Bundle bundle, ServiceRequest request)
Attachments for a AbstractBasicContent.
bundle - the current Bundlerequest - the current ServiceRequest@RequireToken @Action(value="addAttachmentToContent", generate=true) @Permission(value="editAbstractBasicContent") @Groups(values="ContentAdministrator") public final void addAttachmentToContent(Bundle bundle, ServiceRequest request)
Attachmentto a AbstractBasicContent.
bundle - the current Bundlerequest - the current ServiceRequest@RequireToken @Action(value="editAttachmentOfContent", generate=true) @Permission(value="editAbstractBasicContent") @Groups(values="ContentAdministrator") public final AbstractBasicContentEditorResult editAttachmentOfContent(Bundle bundle, ServiceRequest request)
Sets int 2 as the mode for the result which will cause xsl:choose
to use html/js that builds up the editor for a Attachment.
bundle - the current Bundlerequest - the current ServiceRequest
@RequireToken @Action(value="removeAttachmentFromContent", generate=true) @Permission(value="editAbstractBasicContent") @Groups(values="ContentAdministrator") public final void removeAttachmentFromContent(Bundle bundle, ServiceRequest request)
Attachment from the AbstractBasicContent.
bundle - the current Bundlerequest - the current ServiceRequest@RequireToken @Action(value="initAttachmentDescriptionEditor", generate=true) @Permission(value="editAbstractBasicContent") @Groups(values="ContentAdministrator") public final FCKEditorResult initAttachmentDescriptionEditor(Bundle bundle, ServiceRequest request)
bundle - the current Bundlerequest - the current ServiceRequest
@RequireToken @Action(value="loadAttachmentDescription", generate=true) @Permission(value="editAbstractBasicContent") @Groups(values="ContentAdministrator") public final FCKEditorResult loadAttachmentDescription(Bundle bundle, ServiceRequest request)
bundle - the current Bundlerequest - the current ServiceRequest
@RequireToken @Action(value="saveAttachmentDescriptionEditor", generate=true) @Permission(value="editAbstractBasicContent") @Groups(values="ContentAdministrator") public final void saveAttachmentDescription(Bundle bundle, ServiceRequest request)
bundle - the current Bundlerequest - the current ServiceRequest@RequireToken @Action(value="initFileBrowserForAttachmentsForContent", generate=true) @Permission(value="editAbstractBasicContent") @Groups(values="ContentAdministrator") public final AbstractBasicContentEditorResult initFileBrowserForAttachmentsForContent(Bundle bundle, ServiceRequest request)
Sets int 1 as the mode for the result which will cause xsl:choose
to use js that builds up the file-browser-panel.
bundle - the current Bundlerequest - the current ServiceRequest
@RequireToken @Action(value="initReferenceDurationEditor", generate=true) @Permission(value="editAbstractBasicContent") @Groups(values="ContentAdministrator") public final AbstractBasicContentEditorResult initReferenceDurationEditor(ServiceRequest request)
request - the current ServiceRequest
ViewEditorResult@RequireToken @Action(value="removeReferenceDuration", generate=true) @Permission(value="editAbstractBasicContent") @Groups(values="ContentAdministrator") public final void removeReferenceDuration(ServiceRequest request)
Duration from a Content specified
by given id in request.
request - the current ServiceRequestprotected org.jdom.Document buildDocument(java.lang.String s)
s - the string to use as description
Document
public static final net.sf.json.JSONObject setBasics(AbstractBasicContent content, ServiceRequest request,
org.hibernate.Session s)
AbstractBasicContent's basic attributes: name, keywords,
suffix, title, meta-keywords, meta-description and attachments.
content - the content to processrequest - the current requests - the current Session
JSONObject error if occurspublic static final void initHibernateSearchFix(org.hibernate.Session s, Content content)
This method must be called from subeditors, when a change content is persisted.
TODO: Check whether this can be done with an interceptor.
s - the current ServiceSessioncontent - the changed Content to be (re)indexedpublic void init(ConfigBean c)
Controller.
init in interface DeprecatedConfigurablec - the configurationprotected final AbstractBasicContentEditorConfig getConfig()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||