Class DLFolderConstants
Object
com.liferay.document.library.kernel.model.DLFolderConstants
This contains several utility methods for the purpose of determining folder
IDs and data repository IDs as used by back-end data systems like search and
Document Library stores. These repository IDs should not be confused with the
repository ID used by RepositoryServiceImpl
.
- Author:
- Samuel Kong, Alexander Chow
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
static final String
static final int
static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
static long
getDataRepositoryId
(long repositoryId, long folderId) Determine the data repository ID from the repository ID and folder ID.static long
getFolderId
(long groupId, long dataRepositoryId) Determine the folder ID when no knowledge of it currently exists.static String
getNameInvalidCharacters
(String[] charBlacklist) static String
getNameInvalidEndCharacters
(String[] charLastBlacklist) static String
getNameReservedWords
(String[] nameBlacklist)
-
Field Details
-
DEFAULT_PARENT_FOLDER_ID
public static final long DEFAULT_PARENT_FOLDER_ID- See Also:
-
NAME_GENERAL_RESTRICTIONS
- See Also:
-
RESTRICTION_TYPE_FILE_ENTRY_TYPES_AND_WORKFLOW
public static final int RESTRICTION_TYPE_FILE_ENTRY_TYPES_AND_WORKFLOW- See Also:
-
RESTRICTION_TYPE_INHERIT
public static final int RESTRICTION_TYPE_INHERIT- See Also:
-
RESTRICTION_TYPE_WORKFLOW
public static final int RESTRICTION_TYPE_WORKFLOW- See Also:
-
-
Constructor Details
-
DLFolderConstants
public DLFolderConstants()
-
-
Method Details
-
getClassName
-
getDataRepositoryId
public static long getDataRepositoryId(long repositoryId, long folderId) Determine the data repository ID from the repository ID and folder ID. The folder ID may be zero, implying that it is the root folder for the given repository. -
getFolderId
public static long getFolderId(long groupId, long dataRepositoryId) Determine the folder ID when no knowledge of it currently exists. -
getNameInvalidCharacters
-
getNameInvalidEndCharacters
-
getNameReservedWords
-