public class DLFileEntryMetadataLocalServiceUtil
extends Object
com.liferay.portlet.documentlibrary.service.impl.DLFileEntryMetadataLocalServiceImpl
and
is an 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.DLFileEntryMetadataLocalService
Constructor and Description |
---|
DLFileEntryMetadataLocalServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static DLFileEntryMetadata |
addDLFileEntryMetadata(DLFileEntryMetadata dlFileEntryMetadata)
Adds the document library file entry metadata to the database.
|
static DLFileEntryMetadata |
createDLFileEntryMetadata(long fileEntryMetadataId)
Creates a new document library file entry metadata with the primary key.
|
static PersistedModel |
createPersistedModel(Serializable primaryKeyObj) |
static DLFileEntryMetadata |
deleteDLFileEntryMetadata(DLFileEntryMetadata dlFileEntryMetadata)
Deletes the document library file entry metadata from the database.
|
static DLFileEntryMetadata |
deleteDLFileEntryMetadata(long fileEntryMetadataId)
Deletes the document library file entry metadata with the primary key from the database.
|
static void |
deleteFileEntryMetadata(DLFileEntryMetadata fileEntryMetadata) |
static void |
deleteFileEntryMetadata(long fileEntryId) |
static void |
deleteFileVersionFileEntryMetadata(long fileVersionId) |
static PersistedModel |
deletePersistedModel(PersistedModel persistedModel) |
static <T> T |
dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
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 DLFileEntryMetadata |
fetchDLFileEntryMetadata(long fileEntryMetadataId) |
static DLFileEntryMetadata |
fetchDLFileEntryMetadataByUuidAndCompanyId(String uuid,
long companyId)
Returns the document library file entry metadata with the matching UUID and company.
|
static DLFileEntryMetadata |
fetchFileEntryMetadata(long fileEntryMetadataId) |
static DLFileEntryMetadata |
fetchFileEntryMetadata(long ddmStructureId,
long fileVersionId) |
static ActionableDynamicQuery |
getActionableDynamicQuery() |
static DLFileEntryMetadata |
getDLFileEntryMetadata(long fileEntryMetadataId)
Returns the document library file entry metadata with the primary key.
|
static DLFileEntryMetadata |
getDLFileEntryMetadataByUuidAndCompanyId(String uuid,
long companyId)
Returns the document library file entry metadata with the matching UUID and company.
|
static List<DLFileEntryMetadata> |
getDLFileEntryMetadatas(int start,
int end)
Returns a range of all the document library file entry metadatas.
|
static int |
getDLFileEntryMetadatasCount()
Returns the number of document library file entry metadatas.
|
static DLFileEntryMetadata |
getFileEntryMetadata(long fileEntryMetadataId) |
static DLFileEntryMetadata |
getFileEntryMetadata(long ddmStructureId,
long fileVersionId) |
static List<DLFileEntryMetadata> |
getFileVersionFileEntryMetadatas(long fileVersionId) |
static long |
getFileVersionFileEntryMetadatasCount(long fileVersionId) |
static IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
static List<DLFileEntryMetadata> |
getMismatchedCompanyIdFileEntryMetadatas() |
static List<DLFileEntryMetadata> |
getNoStructuresFileEntryMetadatas() |
static String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static PersistedModel |
getPersistedModel(Serializable primaryKeyObj) |
static DLFileEntryMetadataLocalService |
getService() |
static DLFileEntryMetadata |
updateDLFileEntryMetadata(DLFileEntryMetadata dlFileEntryMetadata)
Updates the document library file entry metadata in the database or adds it if it does not yet exist.
|
static void |
updateFileEntryMetadata(long companyId,
List<DDMStructure> ddmStructures,
long fileEntryId,
long fileVersionId,
Map<String,DDMFormValues> ddmFormValuesMap,
ServiceContext serviceContext) |
static void |
updateFileEntryMetadata(long fileEntryTypeId,
long fileEntryId,
long fileVersionId,
Map<String,DDMFormValues> ddmFormValuesMap,
ServiceContext serviceContext) |
public static DLFileEntryMetadata addDLFileEntryMetadata(DLFileEntryMetadata dlFileEntryMetadata)
Important: Inspect DLFileEntryMetadataLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
dlFileEntryMetadata
- the document library file entry metadatapublic static DLFileEntryMetadata createDLFileEntryMetadata(long fileEntryMetadataId)
fileEntryMetadataId
- the primary key for the new document library file entry metadatapublic static PersistedModel createPersistedModel(Serializable primaryKeyObj) throws PortalException
PortalException
public static DLFileEntryMetadata deleteDLFileEntryMetadata(DLFileEntryMetadata dlFileEntryMetadata)
Important: Inspect DLFileEntryMetadataLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
dlFileEntryMetadata
- the document library file entry metadatapublic static DLFileEntryMetadata deleteDLFileEntryMetadata(long fileEntryMetadataId) throws PortalException
Important: Inspect DLFileEntryMetadataLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
fileEntryMetadataId
- the primary key of the document library file entry metadataPortalException
- if a document library file entry metadata with the primary key could not be foundpublic static void deleteFileEntryMetadata(DLFileEntryMetadata fileEntryMetadata) throws PortalException
PortalException
public static void deleteFileEntryMetadata(long fileEntryId) throws PortalException
PortalException
public static void deleteFileVersionFileEntryMetadata(long fileVersionId) throws PortalException
PortalException
public static PersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException
PortalException
public static <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.portlet.documentlibrary.model.impl.DLFileEntryMetadataModelImpl
.
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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.portlet.documentlibrary.model.impl.DLFileEntryMetadataModelImpl
.
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 DLFileEntryMetadata fetchDLFileEntryMetadata(long fileEntryMetadataId)
public static DLFileEntryMetadata fetchDLFileEntryMetadataByUuidAndCompanyId(String uuid, long companyId)
uuid
- the document library file entry metadata's UUIDcompanyId
- the primary key of the companynull
if a matching document library file entry metadata could not be foundpublic static DLFileEntryMetadata fetchFileEntryMetadata(long fileEntryMetadataId)
public static DLFileEntryMetadata fetchFileEntryMetadata(long ddmStructureId, long fileVersionId)
public static ActionableDynamicQuery getActionableDynamicQuery()
public static DLFileEntryMetadata getDLFileEntryMetadata(long fileEntryMetadataId) throws PortalException
fileEntryMetadataId
- the primary key of the document library file entry metadataPortalException
- if a document library file entry metadata with the primary key could not be foundpublic static DLFileEntryMetadata getDLFileEntryMetadataByUuidAndCompanyId(String uuid, long companyId) throws PortalException
uuid
- the document library file entry metadata's UUIDcompanyId
- the primary key of the companyPortalException
- if a matching document library file entry metadata could not be foundpublic static List<DLFileEntryMetadata> getDLFileEntryMetadatas(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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.portlet.documentlibrary.model.impl.DLFileEntryMetadataModelImpl
.
start
- the lower bound of the range of document library file entry metadatasend
- the upper bound of the range of document library file entry metadatas (not inclusive)public static int getDLFileEntryMetadatasCount()
public static DLFileEntryMetadata getFileEntryMetadata(long fileEntryMetadataId) throws PortalException
PortalException
public static DLFileEntryMetadata getFileEntryMetadata(long ddmStructureId, long fileVersionId) throws PortalException
PortalException
public static List<DLFileEntryMetadata> getFileVersionFileEntryMetadatas(long fileVersionId)
public static long getFileVersionFileEntryMetadatasCount(long fileVersionId)
public static IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
public static List<DLFileEntryMetadata> getMismatchedCompanyIdFileEntryMetadatas()
public static List<DLFileEntryMetadata> getNoStructuresFileEntryMetadatas()
public static String getOSGiServiceIdentifier()
public static PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException
PortalException
public static DLFileEntryMetadata updateDLFileEntryMetadata(DLFileEntryMetadata dlFileEntryMetadata)
Important: Inspect DLFileEntryMetadataLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
dlFileEntryMetadata
- the document library file entry metadatapublic static void updateFileEntryMetadata(long companyId, List<DDMStructure> ddmStructures, long fileEntryId, long fileVersionId, Map<String,DDMFormValues> ddmFormValuesMap, ServiceContext serviceContext) throws PortalException
PortalException
public static void updateFileEntryMetadata(long fileEntryTypeId, long fileEntryId, long fileVersionId, Map<String,DDMFormValues> ddmFormValuesMap, ServiceContext serviceContext) throws PortalException
PortalException
public static DLFileEntryMetadataLocalService getService()