public class RestUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_LIMIT |
static int |
HARD_LIMIT |
| Modifier and Type | Method and Description |
|---|---|
static String |
getBasePortalURI() |
static String |
getBaseRestURI() |
static String |
getCurrentUser() |
static org.exoplatform.social.core.identity.model.Identity |
getCurrentUserIdentity(org.exoplatform.social.core.manager.IdentityManager identityManager) |
static long |
getCurrentUserIdentityId(org.exoplatform.social.core.manager.IdentityManager identityManager) |
static String |
getIdentityId(org.exoplatform.social.rest.entity.IdentityEntity identityEntity,
org.exoplatform.social.core.manager.IdentityManager identityManager) |
static Integer |
getIntegerValue(javax.ws.rs.core.UriInfo uriInfo,
String name) |
static int |
getLimit(javax.ws.rs.core.UriInfo uriInfo) |
static int |
getOffset(javax.ws.rs.core.UriInfo uriInfo) |
static String |
getQueryParam(javax.ws.rs.core.UriInfo uriInfo,
String name) |
public static final int DEFAULT_LIMIT
public static final int HARD_LIMIT
public static final String getCurrentUser()
public static final org.exoplatform.social.core.identity.model.Identity getCurrentUserIdentity(org.exoplatform.social.core.manager.IdentityManager identityManager)
public static final long getCurrentUserIdentityId(org.exoplatform.social.core.manager.IdentityManager identityManager)
public static String getBaseRestURI()
public static String getBasePortalURI()
public static String getIdentityId(org.exoplatform.social.rest.entity.IdentityEntity identityEntity, org.exoplatform.social.core.manager.IdentityManager identityManager)
public static int getLimit(javax.ws.rs.core.UriInfo uriInfo)
public static int getOffset(javax.ws.rs.core.UriInfo uriInfo)
public static Integer getIntegerValue(javax.ws.rs.core.UriInfo uriInfo, String name)
Copyright © 2003–2021 eXo Platform SAS. All rights reserved.