|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.portalpages.rest.ARESTModel com.plumtree.portalpages.rest.user.UserRESTModel
public class UserRESTModel
This model manages the user REST API logic.
Field Summary | |
---|---|
protected AActivitySpace |
m_asOwner
|
protected int |
m_nJoinedCommunityID
|
protected int |
m_nLeftCommunityID
|
static java.lang.String |
STR_MVC_CLASS_NAME
|
Fields inherited from class com.plumtree.portalpages.rest.ARESTModel |
---|
m_error |
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. |
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. |
Methods inherited from class com.plumtree.portalpages.rest.ARESTModel |
---|
GetError, SetError |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.plumtree.portalpages.rest.user.IUserRestModel |
---|
SetError |
Methods inherited from interface com.plumtree.portalpages.rest.user.IUserRestModelRO |
---|
GetError |
Field Detail |
---|
public static final java.lang.String STR_MVC_CLASS_NAME
protected AActivitySpace m_asOwner
protected int m_nJoinedCommunityID
protected int m_nLeftCommunityID
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 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 |