|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.portalpages.browsing.directory.rest.DirRESTControl
public class DirRESTControl
This control handles processing incoming requests for the KD REST API. It currently only handles JSON input.
Field Summary | |
---|---|
protected AActivitySpace |
m_asOwner
The owning space for this control. |
protected IDirModel |
m_dirModel
The instance of the directory model to use when processing data. |
static java.lang.String |
STR_MVC_CLASS_NAME
|
Constructor Summary | |
---|---|
DirRESTControl()
|
Method Summary | |
---|---|
Redirect |
CheckActionSecurityAndExecute(XPHashtable arguments)
Execute the control business logic and optionally return a Redirect object pointing to another AActivitySpace. |
java.lang.Object |
Create()
This method is used by the ASManager to return new instances of managed objects. |
Redirect |
GetDPRedirect()
|
java.lang.String |
GetName()
Return the name of the MVC object. |
void |
Init(IModel model,
AActivitySpace space)
Initialize the control with the model it should use and it's parent AActivitySpace. |
Redirect |
ProcessAction(IJSONParser _parser,
int _nFolderID)
This method handles parsing the JSON body and executing the appropriate command. |
Redirect |
ProcessError(IRESTError _error)
This helper method sets the error on the model and redirects to the REST API display page. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String STR_MVC_CLASS_NAME
protected AActivitySpace m_asOwner
protected IDirModel m_dirModel
Constructor Detail |
---|
public DirRESTControl()
Method Detail |
---|
public Redirect CheckActionSecurityAndExecute(XPHashtable arguments)
IControl
CheckActionSecurityAndExecute
in interface IControl
public Redirect ProcessAction(IJSONParser _parser, int _nFolderID)
_parser
- The parser with the JSON object already loaded._nFolderID
- The folder to create the object in.
public Redirect ProcessError(IRESTError _error)
_nErrorID
- the current error code.
public Redirect GetDPRedirect()
public void Init(IModel model, AActivitySpace space)
IControl
Init
in interface IControl
public java.lang.String GetName()
IMVCObject
GetName
in interface IMVCObject
public java.lang.Object Create()
IManagedObject
Create
in interface IManagedObject
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |