|
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.DLFileEntryMetadataLocalServiceUtil
public class DLFileEntryMetadataLocalServiceUtil
The utility for the document library file entry metadata local service. This utility wraps com.liferay.portlet.documentlibrary.service.impl.DLFileEntryMetadataLocalServiceImpl
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.
DLFileEntryMetadataLocalService
,
com.liferay.portlet.documentlibrary.service.base.DLFileEntryMetadataLocalServiceBaseImpl
,
com.liferay.portlet.documentlibrary.service.impl.DLFileEntryMetadataLocalServiceImpl
Constructor Summary | |
---|---|
DLFileEntryMetadataLocalServiceUtil()
|
Method Summary | |
---|---|
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 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(long fileEntryId)
|
static void |
deleteFileVersionFileEntryMetadata(long fileVersionId)
|
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 DLFileEntryMetadata |
fetchDLFileEntryMetadata(long fileEntryMetadataId)
|
static String |
getBeanIdentifier()
Returns the Spring bean ID for this bean. |
static DLFileEntryMetadata |
getDLFileEntryMetadata(long fileEntryMetadataId)
Returns the document library file entry metadata with the primary key. |
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 long |
getFileEntryMetadataCount(long fileEntryId,
long fileVersionId)
Deprecated. getFileVersionFileEntryMetadatasCount(long) |
static List<DLFileEntryMetadata> |
getFileVersionFileEntryMetadatas(long fileVersionId)
|
static long |
getFileVersionFileEntryMetadatasCount(long fileVersionId)
|
static PersistedModel |
getPersistedModel(Serializable primaryKeyObj)
|
static DLFileEntryMetadataLocalService |
getService()
|
static void |
setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean. |
void |
setService(DLFileEntryMetadataLocalService service)
Deprecated. |
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 DLFileEntryMetadata |
updateDLFileEntryMetadata(DLFileEntryMetadata dlFileEntryMetadata,
boolean merge)
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 fileEntryTypeId,
long fileEntryId,
long fileVersionId,
Map<String,Fields> fieldsMap,
ServiceContext serviceContext)
|
static void |
updateFileEntryMetadata(long fileEntryTypeId,
long fileEntryId,
long fileVersionId,
Map<String,Fields> fieldsMap,
ServiceContext serviceContext)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DLFileEntryMetadataLocalServiceUtil()
Method Detail |
---|
public static DLFileEntryMetadata addDLFileEntryMetadata(DLFileEntryMetadata dlFileEntryMetadata) throws SystemException
dlFileEntryMetadata
- the document library file entry metadata
SystemException
- if a system exception occurredpublic static DLFileEntryMetadata createDLFileEntryMetadata(long fileEntryMetadataId)
fileEntryMetadataId
- the primary key for the new document library file entry metadata
public static DLFileEntryMetadata deleteDLFileEntryMetadata(long fileEntryMetadataId) throws PortalException, SystemException
fileEntryMetadataId
- the primary key of the document library file entry metadata
PortalException
- if a document library file entry metadata with the primary key could not be found
SystemException
- if a system exception occurredpublic static DLFileEntryMetadata deleteDLFileEntryMetadata(DLFileEntryMetadata dlFileEntryMetadata) throws SystemException
dlFileEntryMetadata
- the document library file entry metadata
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 DLFileEntryMetadata fetchDLFileEntryMetadata(long fileEntryMetadataId) throws SystemException
SystemException
public static DLFileEntryMetadata getDLFileEntryMetadata(long fileEntryMetadataId) throws PortalException, SystemException
fileEntryMetadataId
- the primary key of the document library file entry metadata
PortalException
- if a document library file entry metadata 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 List<DLFileEntryMetadata> getDLFileEntryMetadatas(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 entry metadatasend
- the upper bound of the range of document library file entry metadatas (not inclusive)
SystemException
- if a system exception occurredpublic static int getDLFileEntryMetadatasCount() throws SystemException
SystemException
- if a system exception occurredpublic static DLFileEntryMetadata updateDLFileEntryMetadata(DLFileEntryMetadata dlFileEntryMetadata) throws SystemException
dlFileEntryMetadata
- the document library file entry metadata
SystemException
- if a system exception occurredpublic static DLFileEntryMetadata updateDLFileEntryMetadata(DLFileEntryMetadata dlFileEntryMetadata, boolean merge) throws SystemException
dlFileEntryMetadata
- the document library file entry metadatamerge
- whether to merge the document library file entry metadata 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 void deleteFileEntryMetadata(long fileEntryId) throws PortalException, SystemException
PortalException
SystemException
public static void deleteFileVersionFileEntryMetadata(long fileVersionId) throws PortalException, SystemException
PortalException
SystemException
public static DLFileEntryMetadata getFileEntryMetadata(long fileEntryMetadataId) throws PortalException, SystemException
PortalException
SystemException
public static DLFileEntryMetadata getFileEntryMetadata(long ddmStructureId, long fileVersionId) throws PortalException, SystemException
PortalException
SystemException
public static long getFileEntryMetadataCount(long fileEntryId, long fileVersionId) throws SystemException
getFileVersionFileEntryMetadatasCount(long)
SystemException
public static List<DLFileEntryMetadata> getFileVersionFileEntryMetadatas(long fileVersionId) throws SystemException
SystemException
public static long getFileVersionFileEntryMetadatasCount(long fileVersionId) throws SystemException
SystemException
public static void updateFileEntryMetadata(long companyId, List<DDMStructure> ddmStructures, long fileEntryTypeId, long fileEntryId, long fileVersionId, Map<String,Fields> fieldsMap, ServiceContext serviceContext) throws PortalException, SystemException
PortalException
SystemException
public static void updateFileEntryMetadata(long fileEntryTypeId, long fileEntryId, long fileVersionId, Map<String,Fields> fieldsMap, ServiceContext serviceContext) throws PortalException, SystemException
PortalException
SystemException
public static DLFileEntryMetadataLocalService getService()
public void setService(DLFileEntryMetadataLocalService service)
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |