Liferay 7.0-ce-b4

com.liferay.portlet.documentlibrary.service.base
Class DLContentLocalServiceBaseImpl

java.lang.Object
  extended by com.liferay.portal.service.BaseLocalServiceImpl
      extended by com.liferay.portlet.documentlibrary.service.base.DLContentLocalServiceBaseImpl
All Implemented Interfaces:
IdentifiableOSGiService, BaseLocalService, PersistedModelLocalService, DLContentLocalService
Direct Known Subclasses:
DLContentLocalServiceImpl

@ProviderType
public abstract class DLContentLocalServiceBaseImpl
extends BaseLocalServiceImpl
implements DLContentLocalService, IdentifiableOSGiService

Provides the base implementation for the document library content local service.

This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in DLContentLocalServiceImpl.

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

Field Summary
protected  CounterLocalService counterLocalService
           
protected  DLContentLocalService dlContentLocalService
           
protected  DLContentPersistence dlContentPersistence
           
protected  PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry
           
 
Constructor Summary
DLContentLocalServiceBaseImpl()
           
 
Method Summary
 DLContent addDLContent(DLContent dlContent)
          Adds the document library content to the database.
 void afterPropertiesSet()
           
 DLContent createDLContent(long contentId)
          Creates a new document library content with the primary key.
 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)
           
 void destroy()
           
 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()
           
 CounterLocalService getCounterLocalService()
          Returns the counter local service.
 DLContentDataBlobModel getDataBlobModel(Serializable primaryKey)
           
 DLContent getDLContent(long contentId)
          Returns the document library content with the primary key.
 DLContentLocalService getDLContentLocalService()
          Returns the document library content local service.
 DLContentPersistence getDLContentPersistence()
          Returns the document library content persistence.
 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()
           
protected  Class<?> getModelClass()
           
protected  String getModelClassName()
           
 String getOSGiServiceIdentifier()
          Returns the OSGi service identifier.
 PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
protected  void initActionableDynamicQuery(ActionableDynamicQuery actionableDynamicQuery)
           
protected  void runSQL(String sql)
          Performs a SQL query.
 void setCounterLocalService(CounterLocalService counterLocalService)
          Sets the counter local service.
 void setDLContentLocalService(DLContentLocalService dlContentLocalService)
          Sets the document library content local service.
 void setDLContentPersistence(DLContentPersistence dlContentPersistence)
          Sets the document library content persistence.
 DLContent updateDLContent(DLContent dlContent)
          Updates the document library content in the database or adds it if it does not yet exist.
 
Methods inherited from class com.liferay.portal.service.BaseLocalServiceImpl
getClassLoader, getLocalizationMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portlet.documentlibrary.service.DLContentLocalService
addContent, addContent, deleteContent, deleteContents, deleteContentsByDirectory, getContent, getContent, getContents, getContents, getContentsByDirectory, hasContent, updateDLContent
 

Field Detail

dlContentLocalService

@BeanReference(type=DLContentLocalService.class)
protected DLContentLocalService dlContentLocalService

dlContentPersistence

@BeanReference(type=DLContentPersistence.class)
protected DLContentPersistence dlContentPersistence

counterLocalService

@BeanReference(type=CounterLocalService.class)
protected CounterLocalService counterLocalService

persistedModelLocalServiceRegistry

@BeanReference(type=PersistedModelLocalServiceRegistry.class)
protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry
Constructor Detail

DLContentLocalServiceBaseImpl

public DLContentLocalServiceBaseImpl()
Method Detail

addDLContent

@Indexable(type=REINDEX)
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

deleteDLContent

@Indexable(type=DELETE)
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

@Indexable(type=DELETE)
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

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

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

getActionableDynamicQuery

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

getIndexableActionableDynamicQuery

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

initActionableDynamicQuery

protected void initActionableDynamicQuery(ActionableDynamicQuery actionableDynamicQuery)

deletePersistedModel

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

getPersistedModel

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

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

updateDLContent

@Indexable(type=REINDEX)
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

getDataBlobModel

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

getDLContentLocalService

public DLContentLocalService getDLContentLocalService()
Returns the document library content local service.

Returns:
the document library content local service

setDLContentLocalService

public void setDLContentLocalService(DLContentLocalService dlContentLocalService)
Sets the document library content local service.

Parameters:
dlContentLocalService - the document library content local service

getDLContentPersistence

public DLContentPersistence getDLContentPersistence()
Returns the document library content persistence.

Returns:
the document library content persistence

setDLContentPersistence

public void setDLContentPersistence(DLContentPersistence dlContentPersistence)
Sets the document library content persistence.

Parameters:
dlContentPersistence - the document library content persistence

getCounterLocalService

public CounterLocalService getCounterLocalService()
Returns the counter local service.

Returns:
the counter local service

setCounterLocalService

public void setCounterLocalService(CounterLocalService counterLocalService)
Sets the counter local service.

Parameters:
counterLocalService - the counter local service

afterPropertiesSet

public void afterPropertiesSet()

destroy

public void destroy()

getOSGiServiceIdentifier

public String getOSGiServiceIdentifier()
Returns the OSGi service identifier.

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

getModelClass

protected Class<?> getModelClass()

getModelClassName

protected String getModelClassName()

runSQL

protected void runSQL(String sql)
Performs a SQL query.

Parameters:
sql - the sql query

Liferay 7.0-ce-b4