|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.portalpages.rest.user.UserRESTModel
public class UserRESTModel
This model manages the user REST API logic.
Field Summary | |
---|---|
protected AActivitySpace |
m_asOwner
|
protected IRESTError |
m_error
|
protected int |
m_nJoinedCommunityID
|
protected int |
m_nLeftCommunityID
|
static java.lang.String |
STR_MVC_CLASS_NAME
|
Constructor Summary | |
---|---|
UserRESTModel()
|
Method Summary | |
---|---|
void |
CleanupAllData()
This method is called when an ActivitySpace is removed from the cache. |
void |
CleanupTempData()
This method is called at the end of every HTTP request by the Interpreter. |
java.lang.Object |
Create()
This method is used by the ASManager to return new instances of managed objects. |
IRESTError |
GetError()
|
int |
GetJoinedCommunityID()
|
int |
GetLeftCommunityID()
|
java.lang.String |
GetName()
Return the name of the MVC object. |
void |
Init(AActivitySpace parent)
This method initializes the model. |
void |
JoinCommunity(int _nCommunityID)
Join the specified community. |
void |
LeaveCommunity(int _nCommunityID)
Leave the specified community. |
void |
SetError(IRESTError _error)
Sets an error for later display. |
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 int m_nJoinedCommunityID
protected int m_nLeftCommunityID
protected IRESTError m_error
Constructor Detail |
---|
public UserRESTModel()
Method Detail |
---|
public void Init(AActivitySpace parent)
IModel
Init
in interface IModel
parent
- the parent Activity Spacepublic java.lang.String GetName()
IMVCObject
GetName
in interface IMVCObject
public java.lang.Object Create()
IManagedObject
Create
in interface IManagedObject
public void SetError(IRESTError _error)
IUserRestModel
SetError
in interface IUserRestModel
_error
- the current error.public IRESTError GetError()
GetError
in interface IUserRestModelRO
public void CleanupAllData()
IModel
CleanupAllData
in interface IModel
public void CleanupTempData()
IModel
CleanupTempData
in interface IModel
public void JoinCommunity(int _nCommunityID)
IUserRestModel
JoinCommunity
in interface IUserRestModel
_nCommunityID
- the community to join.public void LeaveCommunity(int _nCommunityID)
IUserRestModel
LeaveCommunity
in interface IUserRestModel
_nCommunityID
- the community to leave.public int GetJoinedCommunityID()
GetJoinedCommunityID
in interface IUserRestModelRO
public int GetLeftCommunityID()
GetLeftCommunityID
in interface IUserRestModelRO
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |