Liferay 6.1.2-ce-ga3

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

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

This class is a wrapper for DLContentLocalService.

See Also:
DLContentLocalService
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

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.
 DynamicQuery dynamicQuery()
           
 List dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
 List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
 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.
 long dynamicQueryCount(DynamicQuery dynamicQuery)
          Returns the number of rows that match the dynamic query.
 DLContent fetchDLContent(long contentId)
           
 String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
 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.
 PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
 DLContentLocalService getWrappedDLContentLocalService()
          Deprecated. Renamed to getWrappedService()
 DLContentLocalService getWrappedService()
           
 boolean hasContent(long companyId, long repositoryId, String path, String version)
           
 void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 void setWrappedDLContentLocalService(DLContentLocalService dlContentLocalService)
          Deprecated. Renamed to setWrappedService(com.liferay.portlet.documentlibrary.service.DLContentLocalService)
 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.
 DLContent updateDLContent(DLContent dlContent, boolean merge)
          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

addDLContent

public DLContent addDLContent(DLContent dlContent)
                       throws SystemException
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
Throws:
SystemException - if a system exception occurred

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

deleteDLContent

public DLContent deleteDLContent(long contentId)
                          throws PortalException,
                                 SystemException
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
SystemException - if a system exception occurred

deleteDLContent

public DLContent deleteDLContent(DLContent dlContent)
                          throws SystemException
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
Throws:
SystemException - if a system exception occurred

dynamicQuery

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

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery)
                  throws SystemException
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
Throws:
SystemException - if a system exception occurred

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery,
                         int start,
                         int end)
                  throws SystemException
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.

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
Throws:
SystemException - if a system exception occurred

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery,
                         int start,
                         int end,
                         OrderByComparator orderByComparator)
                  throws SystemException
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.

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
Throws:
SystemException - if a system exception occurred

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery)
                       throws SystemException
Returns the number of rows that match the dynamic query.

Specified by:
dynamicQueryCount in interface DLContentLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the number of rows that match the dynamic query
Throws:
SystemException - if a system exception occurred

fetchDLContent

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

getDLContent

public DLContent getDLContent(long contentId)
                       throws PortalException,
                              SystemException
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
SystemException - if a system exception occurred

getPersistedModel

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

getDLContents

public List<DLContent> getDLContents(int start,
                                     int end)
                              throws SystemException
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.

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
Throws:
SystemException - if a system exception occurred

getDLContentsCount

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

Specified by:
getDLContentsCount in interface DLContentLocalService
Returns:
the number of document library contents
Throws:
SystemException - if a system exception occurred

updateDLContent

public DLContent updateDLContent(DLContent dlContent)
                          throws SystemException
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
Throws:
SystemException - if a system exception occurred

updateDLContent

public DLContent updateDLContent(DLContent dlContent,
                                 boolean merge)
                          throws SystemException
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
merge - whether to merge the document library content with the current session. See BatchSession.update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean) for an explanation.
Returns:
the document library content that was updated
Throws:
SystemException - if a system exception occurred

getDataBlobModel

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

getBeanIdentifier

public String getBeanIdentifier()
Returns the Spring bean ID for this bean.

Specified by:
getBeanIdentifier in interface DLContentLocalService
Returns:
the Spring bean ID for this bean

setBeanIdentifier

public void setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean.

Specified by:
setBeanIdentifier in interface DLContentLocalService
Parameters:
beanIdentifier - the Spring bean ID for this bean

addContent

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

addContent

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

deleteContent

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

deleteContents

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

deleteContentsByDirectory

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

getContent

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

getContent

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

getContents

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

getContents

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

getContentsByDirectory

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

hasContent

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

updateDLContent

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

getWrappedDLContentLocalService

public DLContentLocalService getWrappedDLContentLocalService()
Deprecated. Renamed to getWrappedService()


setWrappedDLContentLocalService

public void setWrappedDLContentLocalService(DLContentLocalService dlContentLocalService)
Deprecated. Renamed to setWrappedService(com.liferay.portlet.documentlibrary.service.DLContentLocalService)


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 6.1.2-ce-ga3