|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.portalpages.rest.user.UserRESTControl
public class UserRESTControl
This control handles processing the User REST API requests.
Field Summary | |
---|---|
static java.lang.String |
CURRENT_USER
The default value - current user. |
protected AActivitySpace |
m_asOwner
The owning space for this control. |
protected IUserRestModel |
m_model
The User REST model. |
static java.lang.String |
STR_MVC_CLASS_NAME
|
static java.lang.String |
USER_ID
The control argument for the user ID passed in from the friendly URL. |
Constructor Summary | |
---|---|
UserRESTControl()
|
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)
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
public static final java.lang.String USER_ID
public static final java.lang.String CURRENT_USER
protected AActivitySpace m_asOwner
protected IUserRestModel m_model
Constructor Detail |
---|
public UserRESTControl()
Method Detail |
---|
public Redirect CheckActionSecurityAndExecute(XPHashtable arguments)
IControl
CheckActionSecurityAndExecute
in interface IControl
public Redirect ProcessAction(IJSONParser _parser)
_parser
- The parser with the JSON object already loaded.
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 |