|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.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 IModelparent - the parent Activity Spacepublic java.lang.String GetName()
IMVCObject
GetName in interface IMVCObjectpublic java.lang.Object Create()
IManagedObject
Create in interface IManagedObjectpublic void CleanupAllData()
IModel
CleanupAllData in interface IModelpublic void CleanupTempData()
IModel
CleanupTempData in interface IModelpublic 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 IUserRestModelROpublic int GetLeftCommunityID()
GetLeftCommunityID in interface IUserRestModelRO
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||