public class FCKMessage extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ERROR
The Constant ERROR.
|
static String |
FCK_RESOURCE_BUNDLE_FILE
The Constant FCK_RESOURCE_BUNDLE.
|
static int |
FILE_EXCEED_LIMIT
The Constant FILE_EXCEED_LIMIT.
|
static int |
FILE_EXISTED
The Constant FILE_EXISTED.
|
static int |
FILE_NOT_FOUND
The Constant FILE_NOT_FOUND.
|
static int |
FILE_NOT_UPLOADED
The Constant FILE_NOT_UPLOADED.
|
static int |
FILE_UPLOAD_RESTRICTION
The Constant FILE_UPLOAD_RESTRICTION.
|
static int |
FOLDER_CREATED
The Constant FOLDER_CREATED.
|
static int |
FOLDER_EXISTED
The Constant FOLDER_EXISTED.
|
static int |
FOLDER_INVALID_NAME
The Constant FOLDER_INVALID_NAME.
|
static int |
FOLDER_NOT_CREATED
The Constant FOLDER_NOT_CREATED.
|
static int |
FOLDER_PERMISSION_CREATING
The Constant FOLDER_PERMISSION_CREATING.
|
static String |
INFO
The Constant INFO.
|
static int |
UNKNOWN_ERROR
The Constant UNKNOWN_ERROR.
|
| Constructor and Description |
|---|
FCKMessage()
Instantiates a new fCK message.
|
| Modifier and Type | Method and Description |
|---|---|
Document |
createMessage(int messageCode,
String message,
String messageType) |
Document |
createMessage(int messageCode,
String messageType,
String language,
Object[] args) |
String |
getMessage(int messageNum,
Object[] args,
String language)
Gets the message.
|
String |
getMessage(String messageKey,
Object[] args,
String language)
Gets the message.
|
protected String |
getMessageKey(int number) |
public static final String ERROR
public static final String INFO
public static final int FOLDER_CREATED
public static final int FOLDER_EXISTED
public static final int FOLDER_INVALID_NAME
public static final int FOLDER_PERMISSION_CREATING
public static final int FOLDER_NOT_CREATED
public static final int UNKNOWN_ERROR
public static final int FILE_EXISTED
public static final int FILE_NOT_FOUND
public static final int FILE_UPLOAD_RESTRICTION
public static final int FILE_NOT_UPLOADED
public static final int FILE_EXCEED_LIMIT
public static final String FCK_RESOURCE_BUNDLE_FILE
public Document createMessage(int messageCode, String messageType, String language, Object[] args) throws Exception
Exceptionpublic Document createMessage(int messageCode, String message, String messageType) throws Exception
Exceptionpublic String getMessage(int messageNum, Object[] args, String language) throws Exception
messageNum - the message numargs - the argslanguage - the languageException - the exceptionpublic String getMessage(String messageKey, Object[] args, String language) throws Exception
messageKey - the message keyargs - the argslanguage - the languageException - the exceptionprotected String getMessageKey(int number)
Copyright © 2003–2019 eXo Platform SAS. All rights reserved.