com.flexive.war.javascript
Class ContentEditor

java.lang.Object
  extended by com.flexive.war.javascript.ContentEditor
All Implemented Interfaces:
java.io.Serializable

public class ContentEditor
extends java.lang.Object
implements java.io.Serializable

Content editor actions invoked via JSON/RPC.

Version:
$Rev: 2906 $
Author:
Daniel Lichtenberger (daniel.lichtenberger@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)
See Also:
Serialized Form

Constructor Summary
ContentEditor()
           
 
Method Summary
 java.lang.String detach(long folderId, long contentId, boolean live)
           
 java.lang.String detachMultiple(long folderId, long[] contentIds, boolean live)
           
 java.lang.String lockMultiple(java.lang.String[] pks)
           
 java.lang.String remove(long id)
          Delete the given content.
 java.lang.String removeMultiple(long[] ids)
          Delete the given contents.
 java.lang.String unlockMultiple(java.lang.String[] pks)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentEditor

public ContentEditor()
Method Detail

remove

public java.lang.String remove(long id)
                        throws java.lang.Exception
Delete the given content.

Parameters:
id - the content ID
Returns:
an empty result
Throws:
java.lang.Exception - if an error occured

removeMultiple

public java.lang.String removeMultiple(long[] ids)
                                throws java.lang.Exception
Delete the given contents.

Parameters:
ids - the content IDs
Returns:
an empty result
Throws:
java.lang.Exception - if an error occured

lockMultiple

public java.lang.String lockMultiple(java.lang.String[] pks)
                              throws java.io.IOException
Throws:
java.io.IOException

unlockMultiple

public java.lang.String unlockMultiple(java.lang.String[] pks)
                                throws java.io.IOException
Throws:
java.io.IOException

detach

public java.lang.String detach(long folderId,
                               long contentId,
                               boolean live)
                        throws java.lang.Exception
Throws:
java.lang.Exception

detachMultiple

public java.lang.String detachMultiple(long folderId,
                                       long[] contentIds,
                                       boolean live)
                                throws java.lang.Exception
Throws:
java.lang.Exception