|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portlet.documentlibrary.service.DLFileEntryLocalServiceUtil
public class DLFileEntryLocalServiceUtil
The utility for the document library file entry local service. This utility wraps DLFileEntryLocalServiceImpl
and is the primary access point for service operations in application layer code running on the local server.
This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
DLFileEntryLocalService
,
DLFileEntryLocalServiceBaseImpl
,
DLFileEntryLocalServiceImpl
Constructor Summary | |
---|---|
DLFileEntryLocalServiceUtil()
|
Method Summary | |
---|---|
static DLFileEntry |
addDLFileEntry(DLFileEntry dlFileEntry)
Adds the document library file entry to the database. |
static DLFileEntry |
addFileEntry(long userId,
long groupId,
long repositoryId,
long folderId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
long fileEntryTypeId,
Map<String,Fields> fieldsMap,
File file,
InputStream is,
long size,
ServiceContext serviceContext)
|
static DLFileVersion |
cancelCheckOut(long userId,
long fileEntryId)
|
static void |
checkInFileEntry(long userId,
long fileEntryId,
boolean majorVersion,
String changeLog,
ServiceContext serviceContext)
|
static void |
checkInFileEntry(long userId,
long fileEntryId,
String lockUuid)
|
static DLFileEntry |
checkOutFileEntry(long userId,
long fileEntryId)
Deprecated. checkOutFileEntry(long, long, ServiceContext) |
static DLFileEntry |
checkOutFileEntry(long userId,
long fileEntryId,
ServiceContext serviceContext)
|
static DLFileEntry |
checkOutFileEntry(long userId,
long fileEntryId,
String owner,
long expirationTime)
Deprecated. checkOutFileEntry(long, long, String, long,
ServiceContext) |
static DLFileEntry |
checkOutFileEntry(long userId,
long fileEntryId,
String owner,
long expirationTime,
ServiceContext serviceContext)
|
static void |
convertExtraSettings(String[] keys)
|
static void |
copyFileEntryMetadata(long companyId,
long fileEntryTypeId,
long fileEntryId,
long fromFileVersionId,
long toFileVersionId,
ServiceContext serviceContext)
|
static DLFileEntry |
createDLFileEntry(long fileEntryId)
Creates a new document library file entry with the primary key. |
static DLFileEntry |
deleteDLFileEntry(DLFileEntry dlFileEntry)
Deletes the document library file entry from the database. |
static DLFileEntry |
deleteDLFileEntry(long fileEntryId)
Deletes the document library file entry with the primary key from the database. |
static void |
deleteFileEntries(long groupId,
long folderId)
|
static void |
deleteFileEntry(long fileEntryId)
|
static void |
deleteFileEntry(long userId,
long fileEntryId)
|
static void |
deleteFileVersion(long userId,
long fileEntryId,
String version)
|
static DynamicQuery |
dynamicQuery()
|
static List |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows. |
static List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows. |
static List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows. |
static long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows that match the dynamic query. |
static DLFileEntry |
fetchDLFileEntry(long fileEntryId)
|
static DLFileEntry |
fetchFileEntryByAnyImageId(long imageId)
|
static DLFileEntry |
fetchFileEntryByName(long groupId,
long folderId,
String name)
|
static String |
getBeanIdentifier()
Returns the Spring bean ID for this bean. |
static List<DLFileEntry> |
getDLFileEntries(int start,
int end)
Returns a range of all the document library file entries. |
static int |
getDLFileEntriesCount()
Returns the number of document library file entries. |
static DLFileEntry |
getDLFileEntry(long fileEntryId)
Returns the document library file entry with the primary key. |
static DLFileEntry |
getDLFileEntryByUuidAndGroupId(String uuid,
long groupId)
Returns the document library file entry with the UUID in the group. |
static List<DLFileEntry> |
getExtraSettingsFileEntries(int start,
int end)
|
static File |
getFile(long userId,
long fileEntryId,
String version,
boolean incrementCounter)
|
static InputStream |
getFileAsStream(long userId,
long fileEntryId,
String version)
|
static InputStream |
getFileAsStream(long userId,
long fileEntryId,
String version,
boolean incrementCounter)
|
static List<DLFileEntry> |
getFileEntries(int start,
int end)
|
static List<DLFileEntry> |
getFileEntries(long groupId,
long folderId,
int start,
int end,
OrderByComparator obc)
|
static List<DLFileEntry> |
getFileEntries(long folderId,
String name)
|
static int |
getFileEntriesCount()
|
static int |
getFileEntriesCount(long groupId,
long folderId)
|
static DLFileEntry |
getFileEntry(long fileEntryId)
|
static DLFileEntry |
getFileEntry(long groupId,
long folderId,
String title)
|
static DLFileEntry |
getFileEntryByName(long groupId,
long folderId,
String name)
|
static DLFileEntry |
getFileEntryByUuidAndGroupId(String uuid,
long groupId)
|
static List<DLFileEntry> |
getGroupFileEntries(long groupId,
int start,
int end)
|
static List<DLFileEntry> |
getGroupFileEntries(long groupId,
int start,
int end,
OrderByComparator obc)
|
static List<DLFileEntry> |
getGroupFileEntries(long groupId,
long userId,
int start,
int end)
|
static List<DLFileEntry> |
getGroupFileEntries(long groupId,
long userId,
int start,
int end,
OrderByComparator obc)
|
static int |
getGroupFileEntriesCount(long groupId)
|
static int |
getGroupFileEntriesCount(long groupId,
long userId)
|
static List<DLFileEntry> |
getMisversionedFileEntries()
|
static List<DLFileEntry> |
getNoAssetFileEntries()
|
static List<DLFileEntry> |
getOrphanedFileEntries()
|
static PersistedModel |
getPersistedModel(Serializable primaryKeyObj)
|
static DLFileEntryLocalService |
getService()
|
static boolean |
hasExtraSettings()
|
static boolean |
hasFileEntryLock(long userId,
long fileEntryId)
|
static boolean |
isFileEntryCheckedOut(long fileEntryId)
|
static DLFileEntry |
moveFileEntry(long userId,
long fileEntryId,
long newFolderId,
ServiceContext serviceContext)
|
static void |
revertFileEntry(long userId,
long fileEntryId,
String version,
ServiceContext serviceContext)
|
static void |
setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean. |
void |
setService(DLFileEntryLocalService service)
Deprecated. |
static DLFileEntry |
updateDLFileEntry(DLFileEntry dlFileEntry)
Updates the document library file entry in the database or adds it if it does not yet exist. |
static DLFileEntry |
updateDLFileEntry(DLFileEntry dlFileEntry,
boolean merge)
Updates the document library file entry in the database or adds it if it does not yet exist. |
static DLFileEntry |
updateFileEntry(long userId,
long fileEntryId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
boolean majorVersion,
long fileEntryTypeId,
Map<String,Fields> fieldsMap,
File file,
InputStream is,
long size,
ServiceContext serviceContext)
|
static void |
updateSmallImage(long smallImageId,
long largeImageId)
|
static DLFileEntry |
updateStatus(long userId,
long fileVersionId,
int status,
Map<String,Serializable> workflowContext,
ServiceContext serviceContext)
|
static boolean |
verifyFileEntryCheckOut(long fileEntryId,
String lockUuid)
|
static boolean |
verifyFileEntryLock(long fileEntryId,
String lockUuid)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DLFileEntryLocalServiceUtil()
Method Detail |
---|
public static DLFileEntry addDLFileEntry(DLFileEntry dlFileEntry) throws SystemException
dlFileEntry
- the document library file entry
SystemException
- if a system exception occurredpublic static DLFileEntry createDLFileEntry(long fileEntryId)
fileEntryId
- the primary key for the new document library file entry
public static DLFileEntry deleteDLFileEntry(long fileEntryId) throws PortalException, SystemException
fileEntryId
- the primary key of the document library file entry
PortalException
- if a document library file entry with the primary key could not be found
SystemException
- if a system exception occurredpublic static DLFileEntry deleteDLFileEntry(DLFileEntry dlFileEntry) throws SystemException
dlFileEntry
- the document library file entry
SystemException
- if a system exception occurredpublic static DynamicQuery dynamicQuery()
public static List dynamicQuery(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery
- the dynamic query
SystemException
- if a system exception occurredpublic static List dynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)
SystemException
- if a system exception occurredpublic static List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static long dynamicQueryCount(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery
- the dynamic query
SystemException
- if a system exception occurredpublic static DLFileEntry fetchDLFileEntry(long fileEntryId) throws SystemException
SystemException
public static DLFileEntry getDLFileEntry(long fileEntryId) throws PortalException, SystemException
fileEntryId
- the primary key of the document library file entry
PortalException
- if a document library file entry with the primary key could not be found
SystemException
- if a system exception occurredpublic static PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException, SystemException
PortalException
SystemException
public static DLFileEntry getDLFileEntryByUuidAndGroupId(String uuid, long groupId) throws PortalException, SystemException
uuid
- the UUID of document library file entrygroupId
- the group id of the document library file entry
PortalException
- if a document library file entry with the UUID in the group could not be found
SystemException
- if a system exception occurredpublic static List<DLFileEntry> getDLFileEntries(int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
start
- the lower bound of the range of document library file entriesend
- the upper bound of the range of document library file entries (not inclusive)
SystemException
- if a system exception occurredpublic static int getDLFileEntriesCount() throws SystemException
SystemException
- if a system exception occurredpublic static DLFileEntry updateDLFileEntry(DLFileEntry dlFileEntry) throws SystemException
dlFileEntry
- the document library file entry
SystemException
- if a system exception occurredpublic static DLFileEntry updateDLFileEntry(DLFileEntry dlFileEntry, boolean merge) throws SystemException
dlFileEntry
- the document library file entrymerge
- whether to merge the document library file entry with the current session. See BatchSession.update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)
for an explanation.
SystemException
- if a system exception occurredpublic static String getBeanIdentifier()
public static void setBeanIdentifier(String beanIdentifier)
beanIdentifier
- the Spring bean ID for this beanpublic static DLFileEntry addFileEntry(long userId, long groupId, long repositoryId, long folderId, String sourceFileName, String mimeType, String title, String description, String changeLog, long fileEntryTypeId, Map<String,Fields> fieldsMap, File file, InputStream is, long size, ServiceContext serviceContext) throws PortalException, SystemException
PortalException
SystemException
public static DLFileVersion cancelCheckOut(long userId, long fileEntryId) throws PortalException, SystemException
PortalException
SystemException
public static void checkInFileEntry(long userId, long fileEntryId, boolean majorVersion, String changeLog, ServiceContext serviceContext) throws PortalException, SystemException
PortalException
SystemException
public static void checkInFileEntry(long userId, long fileEntryId, String lockUuid) throws PortalException, SystemException
PortalException
SystemException
public static DLFileEntry checkOutFileEntry(long userId, long fileEntryId) throws PortalException, SystemException
checkOutFileEntry(long, long, ServiceContext)
PortalException
SystemException
public static DLFileEntry checkOutFileEntry(long userId, long fileEntryId, ServiceContext serviceContext) throws PortalException, SystemException
PortalException
SystemException
public static DLFileEntry checkOutFileEntry(long userId, long fileEntryId, String owner, long expirationTime) throws PortalException, SystemException
checkOutFileEntry(long, long, String, long,
ServiceContext)
PortalException
SystemException
public static DLFileEntry checkOutFileEntry(long userId, long fileEntryId, String owner, long expirationTime, ServiceContext serviceContext) throws PortalException, SystemException
PortalException
SystemException
public static void convertExtraSettings(String[] keys) throws PortalException, SystemException
PortalException
SystemException
public static void copyFileEntryMetadata(long companyId, long fileEntryTypeId, long fileEntryId, long fromFileVersionId, long toFileVersionId, ServiceContext serviceContext) throws PortalException, SystemException
PortalException
SystemException
public static void deleteFileEntries(long groupId, long folderId) throws PortalException, SystemException
PortalException
SystemException
public static void deleteFileEntry(long fileEntryId) throws PortalException, SystemException
PortalException
SystemException
public static void deleteFileEntry(long userId, long fileEntryId) throws PortalException, SystemException
PortalException
SystemException
public static void deleteFileVersion(long userId, long fileEntryId, String version) throws PortalException, SystemException
PortalException
SystemException
public static DLFileEntry fetchFileEntryByAnyImageId(long imageId) throws SystemException
SystemException
public static DLFileEntry fetchFileEntryByName(long groupId, long folderId, String name) throws SystemException
SystemException
public static List<DLFileEntry> getExtraSettingsFileEntries(int start, int end) throws SystemException
SystemException
public static File getFile(long userId, long fileEntryId, String version, boolean incrementCounter) throws PortalException, SystemException
PortalException
SystemException
public static InputStream getFileAsStream(long userId, long fileEntryId, String version) throws PortalException, SystemException
PortalException
SystemException
public static InputStream getFileAsStream(long userId, long fileEntryId, String version, boolean incrementCounter) throws PortalException, SystemException
PortalException
SystemException
public static List<DLFileEntry> getFileEntries(int start, int end) throws SystemException
SystemException
public static List<DLFileEntry> getFileEntries(long groupId, long folderId, int start, int end, OrderByComparator obc) throws SystemException
SystemException
public static List<DLFileEntry> getFileEntries(long folderId, String name) throws SystemException
SystemException
public static int getFileEntriesCount() throws SystemException
SystemException
public static int getFileEntriesCount(long groupId, long folderId) throws SystemException
SystemException
public static DLFileEntry getFileEntry(long fileEntryId) throws PortalException, SystemException
PortalException
SystemException
public static DLFileEntry getFileEntry(long groupId, long folderId, String title) throws PortalException, SystemException
PortalException
SystemException
public static DLFileEntry getFileEntryByName(long groupId, long folderId, String name) throws PortalException, SystemException
PortalException
SystemException
public static DLFileEntry getFileEntryByUuidAndGroupId(String uuid, long groupId) throws PortalException, SystemException
PortalException
SystemException
public static List<DLFileEntry> getGroupFileEntries(long groupId, int start, int end) throws SystemException
SystemException
public static List<DLFileEntry> getGroupFileEntries(long groupId, int start, int end, OrderByComparator obc) throws SystemException
SystemException
public static List<DLFileEntry> getGroupFileEntries(long groupId, long userId, int start, int end) throws SystemException
SystemException
public static List<DLFileEntry> getGroupFileEntries(long groupId, long userId, int start, int end, OrderByComparator obc) throws SystemException
SystemException
public static int getGroupFileEntriesCount(long groupId) throws SystemException
SystemException
public static int getGroupFileEntriesCount(long groupId, long userId) throws SystemException
SystemException
public static List<DLFileEntry> getMisversionedFileEntries() throws SystemException
SystemException
public static List<DLFileEntry> getNoAssetFileEntries() throws SystemException
SystemException
public static List<DLFileEntry> getOrphanedFileEntries() throws SystemException
SystemException
public static boolean hasExtraSettings() throws SystemException
SystemException
public static boolean hasFileEntryLock(long userId, long fileEntryId) throws PortalException, SystemException
PortalException
SystemException
public static boolean isFileEntryCheckedOut(long fileEntryId) throws PortalException, SystemException
PortalException
SystemException
public static DLFileEntry moveFileEntry(long userId, long fileEntryId, long newFolderId, ServiceContext serviceContext) throws PortalException, SystemException
PortalException
SystemException
public static void revertFileEntry(long userId, long fileEntryId, String version, ServiceContext serviceContext) throws PortalException, SystemException
PortalException
SystemException
public static DLFileEntry updateFileEntry(long userId, long fileEntryId, String sourceFileName, String mimeType, String title, String description, String changeLog, boolean majorVersion, long fileEntryTypeId, Map<String,Fields> fieldsMap, File file, InputStream is, long size, ServiceContext serviceContext) throws PortalException, SystemException
PortalException
SystemException
public static void updateSmallImage(long smallImageId, long largeImageId) throws PortalException, SystemException
PortalException
SystemException
public static DLFileEntry updateStatus(long userId, long fileVersionId, int status, Map<String,Serializable> workflowContext, ServiceContext serviceContext) throws PortalException, SystemException
PortalException
SystemException
public static boolean verifyFileEntryCheckOut(long fileEntryId, String lockUuid) throws PortalException, SystemException
PortalException
SystemException
public static boolean verifyFileEntryLock(long fileEntryId, String lockUuid) throws PortalException, SystemException
PortalException
SystemException
public static DLFileEntryLocalService getService()
public void setService(DLFileEntryLocalService service)
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |