com.liferay.portlet.documentlibrary.model
Class DLFolderConstants
java.lang.Object
com.liferay.portlet.documentlibrary.model.DLFolderConstants
public class DLFolderConstants
- extends Object
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 com.liferay.portal.service.impl.RepositoryServiceImpl
.
Method Summary |
static String |
getClassName()
|
static long |
getDataRepositoryId(long groupId,
long folderId)
Determine the data repository ID from the group ID and folder ID. |
static long |
getFolderId(long groupId,
long dataRepositoryId)
Determine the folder ID when no knowledge of it currently exists. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_PARENT_FOLDER_ID
public static final long DEFAULT_PARENT_FOLDER_ID
- See Also:
- Constant Field Values
DLFolderConstants
public DLFolderConstants()
getClassName
public static String getClassName()
getDataRepositoryId
public static long getDataRepositoryId(long groupId,
long folderId)
- Determine the data repository ID from the group ID and folder ID. The
folder ID may be zero, implying that it is the root folder for the given
group.
getFolderId
public static long getFolderId(long groupId,
long dataRepositoryId)
- Determine the folder ID when no knowledge of it currently exists.