|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.social.webui.Utils
public class Utils
Contains some common methods for using as utility.
| Constructor Summary | |
|---|---|
Utils()
|
|
| Method Summary | |
|---|---|
static org.exoplatform.social.core.manager.ActivityManager |
getActivityManager()
Gets activityManager |
static org.exoplatform.social.core.manager.IdentityManager |
getIdentityManager()
Gets identityManager |
static List<org.exoplatform.social.core.identity.model.Identity> |
getOwnerFriends()
Gets list of friends of owner user |
static org.exoplatform.social.core.identity.model.Identity |
getOwnerIdentity()
Gets identity of owner user. |
static org.exoplatform.social.core.identity.model.Identity |
getOwnerIdentity(boolean loadProfile)
Gets identity of owner user. |
static String |
getOwnerRemoteId()
Gets remote id of owner user (depends on URL: .../remoteId). |
static org.exoplatform.social.core.identity.model.Identity |
getOwnerSpaceIdentity()
Gets space identity of the owner space (from remote id) |
static org.exoplatform.social.core.manager.RelationshipManager |
getRelationshipManager()
Gets relationshipManager |
static String |
getSelectedNode()
Gets selected node name. |
static String |
getSpaceHomeURL(org.exoplatform.social.core.space.model.Space space)
Gets the space home url of a space. |
static org.exoplatform.social.core.space.spi.SpaceService |
getSpaceService()
Gets spaceService |
static String |
getSpaceURL(org.exoplatform.portal.mop.user.UserNode node)
Get the space url. |
static String |
getURI(String url)
Get the uri. |
static org.exoplatform.social.core.identity.model.Identity |
getUserIdentity(String userName,
boolean loadProfile)
Gets identity from the remote id (user name) |
static List<org.exoplatform.social.core.identity.model.Identity> |
getViewerFriends()
Gets list of friends of viewer user |
static org.exoplatform.social.core.identity.model.Identity |
getViewerIdentity()
Gets identity of viewer user (logged-in user). |
static org.exoplatform.social.core.identity.model.Identity |
getViewerIdentity(boolean loadProfile)
Gets identity of viewer user (logged-in user). |
static String |
getViewerRemoteId()
Gets remote id of viewer user. |
static boolean |
isOwner()
Checks if the owner user is the viewer user. |
static void |
updateWorkingWorkSpace()
Updates working work space. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Utils()
| Method Detail |
|---|
public static String getOwnerRemoteId()
public static String getViewerRemoteId()
public static boolean isOwner()
public static org.exoplatform.social.core.identity.model.Identity getOwnerIdentity(boolean loadProfile)
loadProfile -
public static org.exoplatform.social.core.identity.model.Identity getViewerIdentity(boolean loadProfile)
loadProfile -
public static org.exoplatform.social.core.identity.model.Identity getOwnerIdentity()
public static org.exoplatform.social.core.identity.model.Identity getViewerIdentity()
public static org.exoplatform.social.core.identity.model.Identity getUserIdentity(String userName,
boolean loadProfile)
userName - loadProfile -
public static org.exoplatform.social.core.identity.model.Identity getOwnerSpaceIdentity()
public static List<org.exoplatform.social.core.identity.model.Identity> getOwnerFriends()
throws Exception
Exception
public static List<org.exoplatform.social.core.identity.model.Identity> getViewerFriends()
throws Exception
Exceptionpublic static void updateWorkingWorkSpace()
public static final org.exoplatform.social.core.manager.ActivityManager getActivityManager()
public static final org.exoplatform.social.core.manager.IdentityManager getIdentityManager()
public static final org.exoplatform.social.core.manager.RelationshipManager getRelationshipManager()
public static final org.exoplatform.social.core.space.spi.SpaceService getSpaceService()
public static String getURI(String url)
url -
public static String getSelectedNode()
public static String getSpaceURL(org.exoplatform.portal.mop.user.UserNode node)
node -
public static String getSpaceHomeURL(org.exoplatform.social.core.space.model.Space space)
space -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||