Class BaseRestUtil
- java.lang.Object
-
- org.webswing.server.services.rest.resources.BaseRestUtil
-
public class BaseRestUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description BaseRestUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static ApplicationInfogetAppInfoImpl(PrimaryUrlHandler h)static MetaObjectgetConfig(PrimaryUrlHandler handler, ConfigurationService configService)static ManifestgetManifest(PrimaryUrlHandler handler)static MetaObjectgetMeta(Map<String,Object> json, PrimaryUrlHandler handler, ConfigurationService configService)static PermissionsgetPermissions(PrimaryUrlHandler handler)static StringgetVersion()static booleanisMasterPermited(PrimaryUrlHandler handler, org.webswing.server.services.security.api.WebswingAction... actions)static booleanisPermited(PrimaryUrlHandler handler, org.webswing.server.services.security.api.WebswingAction... actions)static Stringresolve(String type, String stringToResolve, PrimaryUrlHandler handler)static Map<String,String>searchVariables(String type, String searchSequence, PrimaryUrlHandler handler)
-
-
-
Method Detail
-
getAppInfoImpl
protected static ApplicationInfo getAppInfoImpl(PrimaryUrlHandler h)
-
getConfig
public static MetaObject getConfig(PrimaryUrlHandler handler, ConfigurationService configService) throws RestException
- Throws:
RestException
-
searchVariables
public static Map<String,String> searchVariables(String type, String searchSequence, PrimaryUrlHandler handler) throws RestException
- Throws:
RestException
-
resolve
public static String resolve(String type, String stringToResolve, PrimaryUrlHandler handler) throws RestException
- Throws:
RestException
-
getMeta
public static MetaObject getMeta(Map<String,Object> json, PrimaryUrlHandler handler, ConfigurationService configService) throws RestException
- Throws:
RestException
-
getVersion
public static String getVersion() throws RestException
- Throws:
RestException
-
isPermited
public static boolean isPermited(PrimaryUrlHandler handler, org.webswing.server.services.security.api.WebswingAction... actions)
-
isMasterPermited
public static boolean isMasterPermited(PrimaryUrlHandler handler, org.webswing.server.services.security.api.WebswingAction... actions)
-
getManifest
public static Manifest getManifest(PrimaryUrlHandler handler) throws RestException
- Throws:
RestException
-
getPermissions
public static Permissions getPermissions(PrimaryUrlHandler handler)
-
-