Liferay 7.0-ce-b4

com.liferay.portlet.documentlibrary.service
Class DLContentLocalServiceWrapper

java.lang.Object
  extended by com.liferay.portlet.documentlibrary.service.DLContentLocalServiceWrapper
All Implemented Interfaces:
BaseLocalService, PersistedModelLocalService, ServiceWrapper<DLContentLocalService>, DLContentLocalService

@ProviderType
public class DLContentLocalServiceWrapper
extends Object
implements DLContentLocalService, ServiceWrapper<DLContentLocalService>

Provides a wrapper for DLContentLocalService.

See Also:
DLContentLocalService

Constructor Summary
DLContentLocalServiceWrapper(DLContentLocalService dlContentLocalService)
           
 
Method Summary
 DLContent addContent(long companyId, long repositoryId, String path, String version, byte[] bytes)
           
 DLContent addContent(long companyId, long repositoryId, String path, String version, InputStream inputStream, long size)
           
 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.
 void deleteContent(long companyId, long repositoryId, String path, String version)
           
 void deleteContents(long companyId, long repositoryId, String path)
           
 void deleteContentsByDirectory(long companyId, long repositoryId, 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.
 PersistedModel deletePersistedModel(PersistedModel persistedModel)
           
 DynamicQuery dynamicQuery()
           
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
<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.
<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.
 long dynamicQueryCount(DynamicQuery dynamicQuery)
          Returns the number of rows matching the dynamic query.
 long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
          Returns the number of rows matching the dynamic query.
 DLContent fetchDLContent(long contentId)
           
 ActionableDynamicQuery getActionableDynamicQuery()
           
 DLContent getContent(long companyId, long repositoryId, String path)
           
 DLContent getContent(long companyId, long repositoryId, String path, String version)
           
 List<DLContent> getContents(long companyId, long repositoryId)
           
 List<DLContent> getContents(long companyId, long repositoryId, String path)
           
 List<DLContent> getContentsByDirectory(long companyId, long repositoryId, String dirName)
           
 DLContentDataBlobModel getDataBlobModel(Serializable primaryKey)
           
 DLContent getDLContent(long contentId)
          Returns the document library content with the primary key.
 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.
 IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
           
 String getOSGiServiceIdentifier()
          Returns the OSGi service identifier.
 PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
 DLContentLocalService getWrappedService()
           
 boolean hasContent(long companyId, long repositoryId, String path, String version)
           
 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, String oldPath, String newPath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DLContentLocalServiceWrapper

public DLContentLocalServiceWrapper(DLContentLocalService dlContentLocalService)
Method Detail

addContent

public DLContent addContent(long companyId,
                            long repositoryId,
                            String path,
                            String version,
                            byte[] bytes)
Specified by:
addContent in interface DLContentLocalService

addContent

public DLContent addContent(long companyId,
                            long repositoryId,
                            String path,
                            String version,
                            InputStream inputStream,
                            long size)
Specified by:
addContent in interface DLContentLocalService

addDLContent

public DLContent addDLContent(DLContent dlContent)
Adds the document library content to the database. Also notifies the appropriate model listeners.

Specified by:
addDLContent in interface DLContentLocalService
Parameters:
dlContent - the document library content
Returns:
the document library content that was added

createDLContent

public DLContent createDLContent(long contentId)
Creates a new document library content with the primary key. Does not add the document library content to the database.

Specified by:
createDLContent in interface DLContentLocalService
Parameters:
contentId - the primary key for the new document library content
Returns:
the new document library content

deleteContent

public void deleteContent(long companyId,
                          long repositoryId,
                          String path,
                          String version)
                   throws PortalException
Specified by:
deleteContent in interface DLContentLocalService
Throws:
PortalException

deleteContents

public void deleteContents(long companyId,
                           long repositoryId,
                           String path)
Specified by:
deleteContents in interface DLContentLocalService

deleteContentsByDirectory

public void deleteContentsByDirectory(long companyId,
                                      long repositoryId,
                                      String dirName)
Specified by:
deleteContentsByDirectory in interface DLContentLocalService

deleteDLContent

public DLContent deleteDLContent(long contentId)
                          throws PortalException
Deletes the document library content with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
deleteDLContent in interface DLContentLocalService
Parameters:
contentId - the primary key of the document library content
Returns:
the document library content that was removed
Throws:
PortalException - if a document library content with the primary key could not be found

deleteDLContent

public DLContent deleteDLContent(DLContent dlContent)
Deletes the document library content from the database. Also notifies the appropriate model listeners.

Specified by:
deleteDLContent in interface DLContentLocalService
Parameters:
dlContent - the document library content
Returns:
the document library content that was removed

deletePersistedModel

public PersistedModel deletePersistedModel(PersistedModel persistedModel)
                                    throws PortalException
Specified by:
deletePersistedModel in interface PersistedModelLocalService
Specified by:
deletePersistedModel in interface DLContentLocalService
Throws:
PortalException

dynamicQuery

public DynamicQuery dynamicQuery()
Specified by:
dynamicQuery in interface DLContentLocalService

dynamicQuery

public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.

Specified by:
dynamicQuery in interface DLContentLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the matching rows

dynamicQuery

public <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.

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 com.liferay.portlet.documentlibrary.model.impl.DLContentModelImpl. 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.

Specified by:
dynamicQuery in interface DLContentLocalService
Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
Returns:
the range of matching rows

dynamicQuery

public <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 - 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 com.liferay.portlet.documentlibrary.model.impl.DLContentModelImpl. 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.

Specified by:
dynamicQuery in interface DLContentLocalService
Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching rows

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.

Specified by:
dynamicQueryCount in interface DLContentLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the number of rows matching the dynamic query

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery,
                              Projection projection)
Returns the number of rows matching the dynamic query.

Specified by:
dynamicQueryCount in interface DLContentLocalService
Parameters:
dynamicQuery - the dynamic query
projection - the projection to apply to the query
Returns:
the number of rows matching the dynamic query

fetchDLContent

public DLContent fetchDLContent(long contentId)
Specified by:
fetchDLContent in interface DLContentLocalService

getActionableDynamicQuery

public ActionableDynamicQuery getActionableDynamicQuery()
Specified by:
getActionableDynamicQuery in interface DLContentLocalService

getContent

public DLContent getContent(long companyId,
                            long repositoryId,
                            String path)
                     throws NoSuchContentException
Specified by:
getContent in interface DLContentLocalService
Throws:
NoSuchContentException

getContent

public DLContent getContent(long companyId,
                            long repositoryId,
                            String path,
                            String version)
                     throws NoSuchContentException
Specified by:
getContent in interface DLContentLocalService
Throws:
NoSuchContentException

getContents

public List<DLContent> getContents(long companyId,
                                   long repositoryId)
Specified by:
getContents in interface DLContentLocalService

getContents

public List<DLContent> getContents(long companyId,
                                   long repositoryId,
                                   String path)
Specified by:
getContents in interface DLContentLocalService

getContentsByDirectory

public List<DLContent> getContentsByDirectory(long companyId,
                                              long repositoryId,
                                              String dirName)
Specified by:
getContentsByDirectory in interface DLContentLocalService

getDLContent

public DLContent getDLContent(long contentId)
                       throws PortalException
Returns the document library content with the primary key.

Specified by:
getDLContent in interface DLContentLocalService
Parameters:
contentId - the primary key of the document library content
Returns:
the document library content
Throws:
PortalException - if a document library content with the primary key could not be found

getDLContents

public List<DLContent> getDLContents(int start,
                                     int end)
Returns a range of all the document library contents.

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 com.liferay.portlet.documentlibrary.model.impl.DLContentModelImpl. 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.

Specified by:
getDLContents in interface DLContentLocalService
Parameters:
start - the lower bound of the range of document library contents
end - the upper bound of the range of document library contents (not inclusive)
Returns:
the range of document library contents

getDLContentsCount

public int getDLContentsCount()
Returns the number of document library contents.

Specified by:
getDLContentsCount in interface DLContentLocalService
Returns:
the number of document library contents

getDataBlobModel

public DLContentDataBlobModel getDataBlobModel(Serializable primaryKey)
Specified by:
getDataBlobModel in interface DLContentLocalService

getIndexableActionableDynamicQuery

public IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
Specified by:
getIndexableActionableDynamicQuery in interface DLContentLocalService

getOSGiServiceIdentifier

public String getOSGiServiceIdentifier()
Returns the OSGi service identifier.

Specified by:
getOSGiServiceIdentifier in interface DLContentLocalService
Returns:
the OSGi service identifier

getPersistedModel

public PersistedModel getPersistedModel(Serializable primaryKeyObj)
                                 throws PortalException
Specified by:
getPersistedModel in interface PersistedModelLocalService
Specified by:
getPersistedModel in interface DLContentLocalService
Throws:
PortalException

hasContent

public boolean hasContent(long companyId,
                          long repositoryId,
                          String path,
                          String version)
Specified by:
hasContent in interface DLContentLocalService

updateDLContent

public void updateDLContent(long companyId,
                            long oldRepositoryId,
                            long newRepositoryId,
                            String oldPath,
                            String newPath)
Specified by:
updateDLContent in interface DLContentLocalService

updateDLContent

public DLContent updateDLContent(DLContent dlContent)
Updates the document library content in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
updateDLContent in interface DLContentLocalService
Parameters:
dlContent - the document library content
Returns:
the document library content that was updated

getWrappedService

public DLContentLocalService getWrappedService()
Specified by:
getWrappedService in interface ServiceWrapper<DLContentLocalService>

setWrappedService

public void setWrappedService(DLContentLocalService dlContentLocalService)
Specified by:
setWrappedService in interface ServiceWrapper<DLContentLocalService>

Liferay 7.0-ce-b4