public final class RestChecker extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RestChecker.SUPPORT_VERSION |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkAuthenticatedRequest()
Checks if the request is authenticated or not.
|
static void |
checkAuthenticatedUserPermission(String targetUser) |
static javax.ws.rs.core.MediaType |
checkSupportedFormat(String expectedFormat,
String[] supportedFormats)
Checks if the expected format is supported or not.
|
static int |
checkSupportedVersion(String version) |
static org.exoplatform.container.PortalContainer |
checkValidPortalContainerName(String portalContainerName)
Checks if the provided portal container name exists or not.
|
public static void checkAuthenticatedRequest()
public static int checkSupportedVersion(String version)
public static org.exoplatform.container.PortalContainer checkValidPortalContainerName(String portalContainerName)
portalContainerName - the provided portal container namepublic static javax.ws.rs.core.MediaType checkSupportedFormat(String expectedFormat, String[] supportedFormats)
expectedFormat - the expected formatsupportedFormats - the supported formatspublic static void checkAuthenticatedUserPermission(String targetUser)
Copyright © 2003–2017 eXo Platform SAS. All rights reserved.