@ProviderType
public class DLFileVersionLocalServiceUtil
extends Object
DLFileVersionLocalServiceImpl
and is the
primary access point for service operations in application layer code running
on the local server. 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.DLFileVersionLocalService
,
DLFileVersionLocalServiceBaseImpl
,
DLFileVersionLocalServiceImpl
Constructor and Description |
---|
DLFileVersionLocalServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static DLFileVersion |
addDLFileVersion(DLFileVersion dlFileVersion)
Adds the document library file version to the database.
|
static DLFileVersion |
createDLFileVersion(long fileVersionId)
Creates a new document library file version with the primary key.
|
static DLFileVersion |
deleteDLFileVersion(DLFileVersion dlFileVersion)
Deletes the document library file version from the database.
|
static DLFileVersion |
deleteDLFileVersion(long fileVersionId)
Deletes the document library file version with the primary key from the database.
|
static PersistedModel |
deletePersistedModel(PersistedModel persistedModel) |
static DynamicQuery |
dynamicQuery() |
static <T> List<T> |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
static <T> List<T> |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows.
|
static <T> List<T> |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<T> 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 matching the dynamic query.
|
static long |
dynamicQueryCount(DynamicQuery dynamicQuery,
Projection projection)
Returns the number of rows matching the dynamic query.
|
static DLFileVersion |
fetchDLFileVersion(long fileVersionId) |
static DLFileVersion |
fetchDLFileVersionByUuidAndGroupId(String uuid,
long groupId)
Returns the document library file version matching the UUID and group.
|
static DLFileVersion |
fetchLatestFileVersion(long fileEntryId,
boolean excludeWorkingCopy) |
static ActionableDynamicQuery |
getActionableDynamicQuery() |
static DLFileVersion |
getDLFileVersion(long fileVersionId)
Returns the document library file version with the primary key.
|
static DLFileVersion |
getDLFileVersionByUuidAndGroupId(String uuid,
long groupId)
Returns the document library file version matching the UUID and group.
|
static List<DLFileVersion> |
getDLFileVersions(int start,
int end)
Returns a range of all the document library file versions.
|
static List<DLFileVersion> |
getDLFileVersionsByUuidAndCompanyId(String uuid,
long companyId)
Returns all the document library file versions matching the UUID and company.
|
static List<DLFileVersion> |
getDLFileVersionsByUuidAndCompanyId(String uuid,
long companyId,
int start,
int end,
OrderByComparator<DLFileVersion> orderByComparator)
Returns a range of document library file versions matching the UUID and company.
|
static int |
getDLFileVersionsCount()
Returns the number of document library file versions.
|
static ExportActionableDynamicQuery |
getExportActionableDynamicQuery(PortletDataContext portletDataContext) |
static DLFileVersion |
getFileVersion(long fileVersionId) |
static DLFileVersion |
getFileVersion(long fileEntryId,
String version) |
static DLFileVersion |
getFileVersionByUuidAndGroupId(String uuid,
long groupId) |
static List<DLFileVersion> |
getFileVersions(long fileEntryId,
int status) |
static int |
getFileVersionsCount(long fileEntryId,
int status) |
static IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
static DLFileVersion |
getLatestFileVersion(long fileEntryId,
boolean excludeWorkingCopy) |
static DLFileVersion |
getLatestFileVersion(long userId,
long fileEntryId) |
static String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static PersistedModel |
getPersistedModel(Serializable primaryKeyObj) |
static DLFileVersionLocalService |
getService() |
static void |
rebuildTree(long companyId) |
static void |
setTreePaths(long folderId,
String treePath) |
static DLFileVersion |
updateDLFileVersion(DLFileVersion dlFileVersion)
Updates the document library file version in the database or adds it if it does not yet exist.
|
public static DLFileVersion addDLFileVersion(DLFileVersion dlFileVersion)
dlFileVersion
- the document library file versionpublic static DLFileVersion createDLFileVersion(long fileVersionId)
fileVersionId
- the primary key for the new document library file versionpublic static DLFileVersion deleteDLFileVersion(DLFileVersion dlFileVersion)
dlFileVersion
- the document library file versionpublic static DLFileVersion deleteDLFileVersion(long fileVersionId) throws PortalException
fileVersionId
- the primary key of the document library file versionPortalException
- if a document library file version with the primary key could not be foundpublic static PersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException
PortalException
public static DynamicQuery dynamicQuery()
public static <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic querypublic static <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from DLFileVersionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)public static <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator)
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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from DLFileVersionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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
)public static long dynamicQueryCount(DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic querypublic static long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the querypublic static DLFileVersion fetchDLFileVersion(long fileVersionId)
public static DLFileVersion fetchDLFileVersionByUuidAndGroupId(String uuid, long groupId)
uuid
- the document library file version's UUIDgroupId
- the primary key of the groupnull
if a matching document library file version could not be foundpublic static DLFileVersion fetchLatestFileVersion(long fileEntryId, boolean excludeWorkingCopy)
public static ActionableDynamicQuery getActionableDynamicQuery()
public static DLFileVersion getDLFileVersion(long fileVersionId) throws PortalException
fileVersionId
- the primary key of the document library file versionPortalException
- if a document library file version with the primary key could not be foundpublic static DLFileVersion getDLFileVersionByUuidAndGroupId(String uuid, long groupId) throws PortalException
uuid
- the document library file version's UUIDgroupId
- the primary key of the groupPortalException
- if a matching document library file version could not be foundpublic static List<DLFileVersion> getDLFileVersions(int start, int end)
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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from DLFileVersionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of document library file versionsend
- the upper bound of the range of document library file versions (not inclusive)public static List<DLFileVersion> getDLFileVersionsByUuidAndCompanyId(String uuid, long companyId)
uuid
- the UUID of the document library file versionscompanyId
- the primary key of the companypublic static List<DLFileVersion> getDLFileVersionsByUuidAndCompanyId(String uuid, long companyId, int start, int end, OrderByComparator<DLFileVersion> orderByComparator)
uuid
- the UUID of the document library file versionscompanyId
- the primary key of the companystart
- the lower bound of the range of document library file versionsend
- the upper bound of the range of document library file versions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static int getDLFileVersionsCount()
public static ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)
public static DLFileVersion getFileVersion(long fileVersionId) throws PortalException
PortalException
public static DLFileVersion getFileVersion(long fileEntryId, String version) throws PortalException
PortalException
public static DLFileVersion getFileVersionByUuidAndGroupId(String uuid, long groupId)
public static List<DLFileVersion> getFileVersions(long fileEntryId, int status)
public static int getFileVersionsCount(long fileEntryId, int status)
public static IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
public static DLFileVersion getLatestFileVersion(long fileEntryId, boolean excludeWorkingCopy) throws PortalException
PortalException
public static DLFileVersion getLatestFileVersion(long userId, long fileEntryId) throws PortalException
PortalException
public static String getOSGiServiceIdentifier()
public static PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException
PortalException
public static void rebuildTree(long companyId) throws PortalException
PortalException
public static void setTreePaths(long folderId, String treePath) throws PortalException
PortalException
public static DLFileVersion updateDLFileVersion(DLFileVersion dlFileVersion)
dlFileVersion
- the document library file versionpublic static DLFileVersionLocalService getService()