Liferay 7.0-ce-b4

com.liferay.portlet.documentlibrary.model
Class DLFolderConstants

java.lang.Object
  extended by 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 RepositoryServiceImpl.


Field Summary
static long DEFAULT_PARENT_FOLDER_ID
           
static String NAME_GENERAL_RESTRICTIONS
           
static String NAME_LABEL
           
static int RESTRICTION_TYPE_FILE_ENTRY_TYPES_AND_WORKFLOW
           
static int RESTRICTION_TYPE_INHERIT
           
static int RESTRICTION_TYPE_WORKFLOW
           
 
Constructor Summary
DLFolderConstants()
           
 
Method Summary
static String getClassName()
           
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PARENT_FOLDER_ID

public static final long DEFAULT_PARENT_FOLDER_ID
See Also:
Constant Field Values

NAME_GENERAL_RESTRICTIONS

public static final String NAME_GENERAL_RESTRICTIONS
See Also:
Constant Field Values

NAME_LABEL

public static final String NAME_LABEL
See Also:
Constant Field Values

RESTRICTION_TYPE_FILE_ENTRY_TYPES_AND_WORKFLOW

public static final int RESTRICTION_TYPE_FILE_ENTRY_TYPES_AND_WORKFLOW
See Also:
Constant Field Values

RESTRICTION_TYPE_INHERIT

public static final int RESTRICTION_TYPE_INHERIT
See Also:
Constant Field Values

RESTRICTION_TYPE_WORKFLOW

public static final int RESTRICTION_TYPE_WORKFLOW
See Also:
Constant Field Values
Constructor Detail

DLFolderConstants

public DLFolderConstants()
Method Detail

getClassName

public static String 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

public static String getNameInvalidCharacters(String[] charBlacklist)

getNameInvalidEndCharacters

public static String getNameInvalidEndCharacters(String[] charLastBlacklist)

getNameReservedWords

public static String getNameReservedWords(String[] nameBlacklist)

Liferay 7.0-ce-b4