public class DLContentLocalServiceWrapper extends java.lang.Object implements DLContentLocalService, com.liferay.portal.kernel.service.ServiceWrapper<DLContentLocalService>
DLContentLocalService.DLContentLocalService| Constructor and Description |
|---|
DLContentLocalServiceWrapper() |
DLContentLocalServiceWrapper(DLContentLocalService dlContentLocalService) |
| Modifier and Type | Method and Description |
|---|---|
DLContent |
addContent(long companyId,
long repositoryId,
java.lang.String path,
java.lang.String version,
byte[] bytes)
Deprecated.
As of Athanasius (7.3.x), replaced by
addContent(long, long, String, String, InputStream) |
DLContent |
addContent(long companyId,
long repositoryId,
java.lang.String path,
java.lang.String version,
java.io.InputStream inputStream) |
DLContent |
addContent(long companyId,
long repositoryId,
java.lang.String path,
java.lang.String version,
java.io.InputStream inputStream,
long size)
Deprecated.
As of Athanasius (7.3.x), replaced by
addContent(long, long, String, String, InputStream) |
DLContent |
addDLContent(DLContent dlContent)
Adds the document library content to the database.
|
DLContent |
createDLContent(long contentId)
Creates a new document library content with the primary key.
|
com.liferay.portal.kernel.model.PersistedModel |
createPersistedModel(java.io.Serializable primaryKeyObj) |
void |
deleteContent(long companyId,
long repositoryId,
java.lang.String path,
java.lang.String version) |
void |
deleteContents(long companyId,
long repositoryId,
java.lang.String path)
Deprecated.
As of Athanasius (7.3.x), with no direct replacement
|
void |
deleteContentsByDirectory(long companyId,
long repositoryId,
java.lang.String dirName) |
DLContent |
deleteDLContent(DLContent dlContent)
Deletes the document library content from the database.
|
DLContent |
deleteDLContent(long contentId)
Deletes the document library content with the primary key from the database.
|
com.liferay.portal.kernel.model.PersistedModel |
deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) |
<T> T |
dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
int |
dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
com.liferay.portal.kernel.dao.orm.DynamicQuery |
dynamicQuery() |
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows.
|
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.
|
long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.
|
long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
Returns the number of rows matching the dynamic query.
|
DLContent |
fetchDLContent(long contentId) |
com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
com.liferay.portal.kernel.service.persistence.BasePersistence<?> |
getBasePersistence() |
DLContent |
getContent(long companyId,
long repositoryId,
java.lang.String path)
Deprecated.
As of Athanasius (7.3.x), replaced by
getContent(long, long, String, String) |
DLContent |
getContent(long companyId,
long repositoryId,
java.lang.String path,
java.lang.String version) |
java.util.List<DLContent> |
getContents(long companyId,
long repositoryId)
Deprecated.
As of Athanasius (7.3.x), replaced by
getContentsByDirectory(long, long, String) |
java.util.List<DLContent> |
getContents(long companyId,
long repositoryId,
java.lang.String path) |
java.util.List<DLContent> |
getContentsByDirectory(long companyId,
long repositoryId,
java.lang.String dirName) |
com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<DLContent> |
getCTPersistence() |
DLContentDataBlobModel |
getDataBlobModel(java.io.Serializable primaryKey) |
DLContent |
getDLContent(long contentId)
Returns the document library content with the primary key.
|
java.util.List<DLContent> |
getDLContents(int start,
int end)
Returns a range of all the document library contents.
|
int |
getDLContentsCount()
Returns the number of document library contents.
|
com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
java.lang.Class<DLContent> |
getModelClass() |
java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
com.liferay.portal.kernel.model.PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
DLContentLocalService |
getWrappedService() |
boolean |
hasContent(long companyId,
long repositoryId,
java.lang.String path,
java.lang.String version) |
java.io.InputStream |
openDataInputStream(long contentId) |
void |
setWrappedService(DLContentLocalService dlContentLocalService) |
DLContent |
updateDLContent(DLContent dlContent)
Updates the document library content in the database or adds it if it does not yet exist.
|
void |
updateDLContent(long companyId,
long oldRepositoryId,
long newRepositoryId,
java.lang.String oldPath,
java.lang.String newPath)
Deprecated.
As of Athanasius (7.3.x), with no direct replacement
|
<R,E extends java.lang.Throwable> |
updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<DLContent>,R,E> updateUnsafeFunction) |
public DLContentLocalServiceWrapper()
public DLContentLocalServiceWrapper(DLContentLocalService dlContentLocalService)
@Deprecated public DLContent addContent(long companyId, long repositoryId, java.lang.String path, java.lang.String version, byte[] bytes)
addContent(long, long, String, String, InputStream)addContent in interface DLContentLocalServicepublic DLContent addContent(long companyId, long repositoryId, java.lang.String path, java.lang.String version, java.io.InputStream inputStream)
addContent in interface DLContentLocalService@Deprecated public DLContent addContent(long companyId, long repositoryId, java.lang.String path, java.lang.String version, java.io.InputStream inputStream, long size)
addContent(long, long, String, String, InputStream)addContent in interface DLContentLocalServicepublic DLContent addDLContent(DLContent dlContent)
Important: Inspect DLContentLocalServiceImpl 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.
addDLContent in interface DLContentLocalServicedlContent - the document library contentpublic DLContent createDLContent(long contentId)
createDLContent in interface DLContentLocalServicecontentId - the primary key for the new document library contentpublic com.liferay.portal.kernel.model.PersistedModel createPersistedModel(java.io.Serializable primaryKeyObj)
throws com.liferay.portal.kernel.exception.PortalException
createPersistedModel in interface DLContentLocalServicecreatePersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalServicePortalExceptionpublic void deleteContent(long companyId,
long repositoryId,
java.lang.String path,
java.lang.String version)
deleteContent in interface DLContentLocalService@Deprecated
public void deleteContents(long companyId,
long repositoryId,
java.lang.String path)
deleteContents in interface DLContentLocalServicepublic void deleteContentsByDirectory(long companyId,
long repositoryId,
java.lang.String dirName)
deleteContentsByDirectory in interface DLContentLocalServicepublic DLContent deleteDLContent(DLContent dlContent)
Important: Inspect DLContentLocalServiceImpl 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.
deleteDLContent in interface DLContentLocalServicedlContent - the document library contentpublic DLContent deleteDLContent(long contentId) throws com.liferay.portal.kernel.exception.PortalException
Important: Inspect DLContentLocalServiceImpl 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.
deleteDLContent in interface DLContentLocalServicecontentId - the primary key of the document library contentPortalException - if a document library content with the primary key could not be foundpublic com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel)
throws com.liferay.portal.kernel.exception.PortalException
deletePersistedModel in interface DLContentLocalServicedeletePersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalServicePortalExceptionpublic <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQuery in interface DLContentLocalServicedslQuery in interface com.liferay.portal.kernel.service.PersistedModelLocalServicepublic int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQueryCount in interface DLContentLocalServicedslQueryCount in interface com.liferay.portal.kernel.service.PersistedModelLocalServicepublic com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
dynamicQuery in interface DLContentLocalServicepublic <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery in interface DLContentLocalServicedynamicQuery - the dynamic querypublic <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.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.document.library.content.model.impl.DLContentModelImpl.
dynamicQuery in interface DLContentLocalServicedynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)public <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.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.document.library.content.model.impl.DLContentModelImpl.
dynamicQuery in interface DLContentLocalServicedynamicQuery - 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 long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQueryCount in interface DLContentLocalServicedynamicQuery - the dynamic querypublic long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
dynamicQueryCount in interface DLContentLocalServicedynamicQuery - the dynamic queryprojection - the projection to apply to the querypublic DLContent fetchDLContent(long contentId)
fetchDLContent in interface DLContentLocalServicepublic com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery in interface DLContentLocalService@Deprecated public DLContent getContent(long companyId, long repositoryId, java.lang.String path) throws NoSuchContentException
getContent(long, long, String, String)getContent in interface DLContentLocalServiceNoSuchContentExceptionpublic DLContent getContent(long companyId, long repositoryId, java.lang.String path, java.lang.String version) throws NoSuchContentException
getContent in interface DLContentLocalServiceNoSuchContentException@Deprecated public java.util.List<DLContent> getContents(long companyId, long repositoryId)
getContentsByDirectory(long, long, String)getContents in interface DLContentLocalServicepublic java.util.List<DLContent> getContents(long companyId, long repositoryId, java.lang.String path)
getContents in interface DLContentLocalServicepublic java.util.List<DLContent> getContentsByDirectory(long companyId, long repositoryId, java.lang.String dirName)
getContentsByDirectory in interface DLContentLocalServicepublic DLContentDataBlobModel getDataBlobModel(java.io.Serializable primaryKey)
getDataBlobModel in interface DLContentLocalServicepublic DLContent getDLContent(long contentId) throws com.liferay.portal.kernel.exception.PortalException
getDLContent in interface DLContentLocalServicecontentId - the primary key of the document library contentPortalException - if a document library content with the primary key could not be foundpublic java.util.List<DLContent> getDLContents(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.document.library.content.model.impl.DLContentModelImpl.
getDLContents in interface DLContentLocalServicestart - the lower bound of the range of document library contentsend - the upper bound of the range of document library contents (not inclusive)public int getDLContentsCount()
getDLContentsCount in interface DLContentLocalServicepublic com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery in interface DLContentLocalServicepublic java.lang.String getOSGiServiceIdentifier()
getOSGiServiceIdentifier in interface DLContentLocalServicepublic com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj)
throws com.liferay.portal.kernel.exception.PortalException
getPersistedModel in interface DLContentLocalServicegetPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalServicePortalExceptionpublic boolean hasContent(long companyId,
long repositoryId,
java.lang.String path,
java.lang.String version)
hasContent in interface DLContentLocalServicepublic java.io.InputStream openDataInputStream(long contentId)
openDataInputStream in interface DLContentLocalServicepublic DLContent updateDLContent(DLContent dlContent)
Important: Inspect DLContentLocalServiceImpl 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.
updateDLContent in interface DLContentLocalServicedlContent - the document library content@Deprecated
public void updateDLContent(long companyId,
long oldRepositoryId,
long newRepositoryId,
java.lang.String oldPath,
java.lang.String newPath)
updateDLContent in interface DLContentLocalServicepublic com.liferay.portal.kernel.service.persistence.BasePersistence<?> getBasePersistence()
getBasePersistence in interface com.liferay.portal.kernel.service.PersistedModelLocalServicepublic com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<DLContent> getCTPersistence()
getCTPersistence in interface DLContentLocalServicegetCTPersistence in interface com.liferay.portal.kernel.service.change.tracking.CTService<DLContent>public java.lang.Class<DLContent> getModelClass()
getModelClass in interface DLContentLocalServicegetModelClass in interface com.liferay.portal.kernel.service.change.tracking.CTService<DLContent>public <R,E extends java.lang.Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<DLContent>,R,E> updateUnsafeFunction) throws E extends java.lang.Throwable
updateWithUnsafeFunction in interface DLContentLocalServiceupdateWithUnsafeFunction in interface com.liferay.portal.kernel.service.change.tracking.CTService<DLContent>E extends java.lang.Throwablepublic DLContentLocalService getWrappedService()
getWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<DLContentLocalService>public void setWrappedService(DLContentLocalService dlContentLocalService)
setWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<DLContentLocalService>