public class EndUserModule
extends org.glassfish.jersey.server.ResourceConfig
Modifier and Type | Class and Description |
---|---|
static class |
EndUserModule.ErrorMessages
REST service error messages.
|
Modifier and Type | Field and Description |
---|---|
static Logger |
logger
Logger.
|
static String |
PRODUCT_IMAGE_PREFIX
Uploaded product image prefix.
|
static String |
PROFILE_IMAGE_PREFIX
Uploaded profile image prefix.
|
static int |
PROFILE_IMAGE_SIZE_LIMIT
Uploaded profile image size limit in bytes.
|
Constructor and Description |
---|
EndUserModule()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static File |
createProfileImagePath(String useruuid)
Create if it does not exist the Web Service profile image directory of a
specified user.
|
static File |
getFileUploadsPath()
Get the Web Service file uploads directory as a
File . |
static File |
getProductImagePath(String productid)
Get the Web Service product image directory of a specified product.
|
static File |
getProfileImagePath(String useruuid)
Get the Web Service profile image directory of a specified user.
|
addProperties, files, files, forApplication, forApplicationClass, forApplicationClass, getApplication, getApplicationName, getClasses, getClassLoader, getConfiguration, getContracts, getInstances, getProperties, getProperty, getPropertyNames, getResources, getRuntimeType, getSingletons, isEnabled, isEnabled, isProperty, isRegistered, isRegistered, packages, packages, property, register, register, register, register, register, register, register, register, registerClasses, registerClasses, registerFinder, registerInstances, registerInstances, registerResources, registerResources, setApplicationName, setClassLoader, setProperties
public static final Logger logger
public static final String PROFILE_IMAGE_PREFIX
public static final String PRODUCT_IMAGE_PREFIX
public static final int PROFILE_IMAGE_SIZE_LIMIT
public static final File getFileUploadsPath()
File
. If the
directory does not exists in the local filesystem, try to create it.File
on success,
null
otherwise.public static final File createProfileImagePath(String useruuid)
useruuid
- the user's Universally Unique ID.File
on success,
null
otherwise.public static final File getProfileImagePath(String useruuid)
useruuid
- the user's Universally Unique ID.File
.public static final File getProductImagePath(String productid)
productid
- the GTIN14 unique product ID.File
.Copyright © 2020. All rights reserved.