Class DLFileEntryMetadataLocalServiceUtil
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.- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DLFileEntryMetadataaddDLFileEntryMetadata(DLFileEntryMetadata dlFileEntryMetadata) Adds the document library file entry metadata to the database.static DLFileEntryMetadatacreateDLFileEntryMetadata(long fileEntryMetadataId) Creates a new document library file entry metadata with the primary key.static PersistedModelcreatePersistedModel(Serializable primaryKeyObj) static DLFileEntryMetadatadeleteDLFileEntryMetadata(long fileEntryMetadataId) Deletes the document library file entry metadata with the primary key from the database.static DLFileEntryMetadatadeleteDLFileEntryMetadata(DLFileEntryMetadata dlFileEntryMetadata) Deletes the document library file entry metadata from the database.static voiddeleteFileEntryMetadata(long fileEntryId) static voiddeleteFileEntryMetadata(DLFileEntryMetadata fileEntryMetadata) static voiddeleteFileEntryMetadataByExternalReferenceCode(String externalReferenceCode, long companyId) static voiddeleteFileVersionFileEntryMetadata(long fileVersionId) static PersistedModeldeletePersistedModel(PersistedModel persistedModel) static <T> TdslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) static intdslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) static DynamicQuerystatic <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 longdynamicQueryCount(DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.static longdynamicQueryCount(DynamicQuery dynamicQuery, Projection projection) Returns the number of rows matching the dynamic query.static DLFileEntryMetadatafetchDLFileEntryMetadata(long fileEntryMetadataId) static DLFileEntryMetadatafetchDLFileEntryMetadataByExternalReferenceCode(String externalReferenceCode, long companyId) static DLFileEntryMetadatafetchDLFileEntryMetadataByUuidAndCompanyId(String uuid, long companyId) Returns the document library file entry metadata with the matching UUID and company.static DLFileEntryMetadatafetchFileEntryMetadata(long fileEntryMetadataId) static DLFileEntryMetadatafetchFileEntryMetadata(long ddmStructureId, long fileVersionId) static ActionableDynamicQuerystatic DLFileEntryMetadatagetDLFileEntryMetadata(long fileEntryMetadataId) Returns the document library file entry metadata with the primary key.static DLFileEntryMetadatagetDLFileEntryMetadataByExternalReferenceCode(String externalReferenceCode, long companyId) static DLFileEntryMetadatagetDLFileEntryMetadataByUuidAndCompanyId(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 intReturns the number of document library file entry metadatas.static DLFileEntryMetadatagetFileEntryMetadata(long fileEntryMetadataId) static DLFileEntryMetadatagetFileEntryMetadata(long ddmStructureId, long fileVersionId) static List<DLFileEntryMetadata>getFileVersionFileEntryMetadatas(long fileVersionId) static longgetFileVersionFileEntryMetadatasCount(long fileVersionId) static List<DLFileEntryMetadata>static List<DLFileEntryMetadata>static StringReturns the OSGi service identifier.static PersistedModelgetPersistedModel(Serializable primaryKeyObj) static voidstatic DLFileEntryMetadataupdateDLFileEntryMetadata(DLFileEntryMetadata dlFileEntryMetadata) Updates the document library file entry metadata in the database or adds it if it does not yet exist.static voidupdateFileEntryMetadata(String externalReferenceCode, long fileEntryTypeId, long fileEntryId, long fileVersionId, Map<String, DDMFormValues> ddmFormValuesMap, ServiceContext serviceContext) static voidupdateFileEntryMetadata(String externalReferenceCode, long companyId, List<DDMStructure> ddmStructures, long fileEntryId, long fileVersionId, Map<String, DDMFormValues> ddmFormValuesMap, ServiceContext serviceContext)
-
Constructor Details
-
DLFileEntryMetadataLocalServiceUtil
public DLFileEntryMetadataLocalServiceUtil()
-
-
Method Details
-
addDLFileEntryMetadata
Adds the document library file entry metadata to the database. Also notifies the appropriate model listeners.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.
- Parameters:
dlFileEntryMetadata- the document library file entry metadata- Returns:
- the document library file entry metadata that was added
-
createDLFileEntryMetadata
Creates a new document library file entry metadata with the primary key. Does not add the document library file entry metadata to the database.- Parameters:
fileEntryMetadataId- the primary key for the new document library file entry metadata- Returns:
- the new document library file entry metadata
-
createPersistedModel
public static PersistedModel createPersistedModel(Serializable primaryKeyObj) throws PortalException - Throws:
PortalException
-
deleteDLFileEntryMetadata
public static DLFileEntryMetadata deleteDLFileEntryMetadata(DLFileEntryMetadata dlFileEntryMetadata) Deletes the document library file entry metadata from the database. Also notifies the appropriate model listeners.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.
- Parameters:
dlFileEntryMetadata- the document library file entry metadata- Returns:
- the document library file entry metadata that was removed
-
deleteDLFileEntryMetadata
public static DLFileEntryMetadata deleteDLFileEntryMetadata(long fileEntryMetadataId) throws PortalException Deletes the document library file entry metadata with the primary key from the database. Also notifies the appropriate model listeners.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.
- Parameters:
fileEntryMetadataId- the primary key of the document library file entry metadata- Returns:
- the document library file entry metadata that was removed
- Throws:
PortalException- if a document library file entry metadata with the primary key could not be found
-
deleteFileEntryMetadata
public static void deleteFileEntryMetadata(DLFileEntryMetadata fileEntryMetadata) throws PortalException - Throws:
PortalException
-
deleteFileEntryMetadata
- Throws:
PortalException
-
deleteFileEntryMetadataByExternalReferenceCode
public static void deleteFileEntryMetadataByExternalReferenceCode(String externalReferenceCode, long companyId) throws PortalException - Throws:
PortalException
-
deleteFileVersionFileEntryMetadata
- Throws:
PortalException
-
deletePersistedModel
public static PersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException - Throws:
PortalException
-
dslQuery
public static <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) -
dslQueryCount
public static int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) -
dynamicQuery
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Parameters:
dynamicQuery- the dynamic query- Returns:
- the matching rows
-
dynamicQuery
Performs a dynamic query on the database and returns a range of the matching rows.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portlet.documentlibrary.model.impl.DLFileEntryMetadataModelImpl.- Parameters:
dynamicQuery- the dynamic querystart- the lower bound of the range of model instancesend- the upper bound of the range of model instances (not inclusive)- Returns:
- the range of matching rows
-
dynamicQuery
public 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.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portlet.documentlibrary.model.impl.DLFileEntryMetadataModelImpl.- Parameters:
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 (optionallynull)- Returns:
- the ordered range of matching rows
-
dynamicQueryCount
Returns the number of rows matching the dynamic query.- Parameters:
dynamicQuery- the dynamic query- Returns:
- the number of rows matching the dynamic query
-
dynamicQueryCount
Returns the number of rows matching the dynamic query.- Parameters:
dynamicQuery- the dynamic queryprojection- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchDLFileEntryMetadata
-
fetchDLFileEntryMetadataByExternalReferenceCode
public static DLFileEntryMetadata fetchDLFileEntryMetadataByExternalReferenceCode(String externalReferenceCode, long companyId) -
fetchDLFileEntryMetadataByUuidAndCompanyId
public static DLFileEntryMetadata fetchDLFileEntryMetadataByUuidAndCompanyId(String uuid, long companyId) Returns the document library file entry metadata with the matching UUID and company.- Parameters:
uuid- the document library file entry metadata's UUIDcompanyId- the primary key of the company- Returns:
- the matching document library file entry metadata, or
nullif a matching document library file entry metadata could not be found
-
fetchFileEntryMetadata
-
fetchFileEntryMetadata
-
getActionableDynamicQuery
-
getDLFileEntryMetadata
public static DLFileEntryMetadata getDLFileEntryMetadata(long fileEntryMetadataId) throws PortalException Returns the document library file entry metadata with the primary key.- Parameters:
fileEntryMetadataId- the primary key of the document library file entry metadata- Returns:
- the document library file entry metadata
- Throws:
PortalException- if a document library file entry metadata with the primary key could not be found
-
getDLFileEntryMetadataByExternalReferenceCode
public static DLFileEntryMetadata getDLFileEntryMetadataByExternalReferenceCode(String externalReferenceCode, long companyId) throws PortalException - Throws:
PortalException
-
getDLFileEntryMetadataByUuidAndCompanyId
public static DLFileEntryMetadata getDLFileEntryMetadataByUuidAndCompanyId(String uuid, long companyId) throws PortalException Returns the document library file entry metadata with the matching UUID and company.- Parameters:
uuid- the document library file entry metadata's UUIDcompanyId- the primary key of the company- Returns:
- the matching document library file entry metadata
- Throws:
PortalException- if a matching document library file entry metadata could not be found
-
getDLFileEntryMetadatas
Returns a range of all the document library file entry metadatas.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portlet.documentlibrary.model.impl.DLFileEntryMetadataModelImpl.- Parameters:
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)- Returns:
- the range of document library file entry metadatas
-
getDLFileEntryMetadatasCount
public static int getDLFileEntryMetadatasCount()Returns the number of document library file entry metadatas.- Returns:
- the number of document library file entry metadatas
-
getFileEntryMetadata
public static DLFileEntryMetadata getFileEntryMetadata(long fileEntryMetadataId) throws PortalException - Throws:
PortalException
-
getFileEntryMetadata
public static DLFileEntryMetadata getFileEntryMetadata(long ddmStructureId, long fileVersionId) throws PortalException - Throws:
PortalException
-
getFileVersionFileEntryMetadatas
-
getFileVersionFileEntryMetadatasCount
public static long getFileVersionFileEntryMetadatasCount(long fileVersionId) -
getIndexableActionableDynamicQuery
-
getMismatchedCompanyIdFileEntryMetadatas
-
getNoStructuresFileEntryMetadatas
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
getPersistedModel
- Throws:
PortalException
-
updateDLFileEntryMetadata
public static DLFileEntryMetadata updateDLFileEntryMetadata(DLFileEntryMetadata dlFileEntryMetadata) Updates the document library file entry metadata in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.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.
- Parameters:
dlFileEntryMetadata- the document library file entry metadata- Returns:
- the document library file entry metadata that was updated
-
updateFileEntryMetadata
public static void updateFileEntryMetadata(String externalReferenceCode, long companyId, List<DDMStructure> ddmStructures, long fileEntryId, long fileVersionId, Map<String, DDMFormValues> ddmFormValuesMap, ServiceContext serviceContext) throws PortalException- Throws:
PortalException
-
updateFileEntryMetadata
public static void updateFileEntryMetadata(String externalReferenceCode, long fileEntryTypeId, long fileEntryId, long fileVersionId, Map<String, DDMFormValues> ddmFormValuesMap, ServiceContext serviceContext) throws PortalException- Throws:
PortalException
-
getService
-
setService
-