public class InjectorUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DATA_INJECTOR_CONTENT_PATH
Content Location
|
static String |
DATA_INJECTOR_DEFAULT_FOLDER_PATH
Fake data Location
|
static String |
DATA_INJECTOR_IMAGE_PATH
User's avatar and Space's icon Location
|
| Constructor and Description |
|---|
InjectorUtils() |
| Modifier and Type | Method and Description |
|---|---|
static org.exoplatform.social.core.model.AvatarAttachment |
getAvatarAttachment(String fileName,
String defaultFolder)
Gets the avatar attachment.
|
static String |
getConfigPath(String defaultDataPath)
Get Default path folder to load fake data
|
static int |
getDayAsInt(String day)
Gets the day as int.
|
static InputStream |
getFile(String fileName,
String fileType,
String defaultFolder)
Gets the file.
|
static int |
getHourAsInt(String hourString)
Gets the hour as int.
|
static int |
getMinuteAsInt(String hourString)
Gets the minute as int.
|
static String |
getWikiPage(String fileName,
String defaultFolder)
Gets the wiki page.
|
public static final String DATA_INJECTOR_CONTENT_PATH
public static final String DATA_INJECTOR_IMAGE_PATH
public static final String DATA_INJECTOR_DEFAULT_FOLDER_PATH
public static String getConfigPath(String defaultDataPath) throws Exception
defaultDataPath - Exceptionpublic static org.exoplatform.social.core.model.AvatarAttachment getAvatarAttachment(String fileName, String defaultFolder) throws Exception
fileName - the file namedefaultFolder - the data folder pathException - the exceptionpublic static String getWikiPage(String fileName, String defaultFolder) throws IOException
fileName - the file namedefaultFolder - the data folder pathIOException - Signals that an I/O exception has occurred.public static InputStream getFile(String fileName, String fileType, String defaultFolder) throws IOException, Exception
fileName - the file namefileType - the file typedefaultFolder - the data folder pathIOException - Signals that an I/O exception has occurred.Exceptionpublic static int getDayAsInt(String day)
day - the daypublic static int getHourAsInt(String hourString)
hourString - the hour stringpublic static int getMinuteAsInt(String hourString)
hourString - the hour stringCopyright © 2003–2017 eXo Platform SAS. All rights reserved.