|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.service.BaseLocalServiceImpl
com.liferay.portlet.documentlibrary.service.base.DLContentLocalServiceBaseImpl
@ProviderType public abstract class DLContentLocalServiceBaseImpl
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.
DLContentLocalServiceImpl,
DLContentLocalServiceUtil| 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()
|
|
|
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows. |
|
|
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows. |
|
|
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 |
|---|
@BeanReference(type=DLContentLocalService.class) protected DLContentLocalService dlContentLocalService
@BeanReference(type=DLContentPersistence.class) protected DLContentPersistence dlContentPersistence
@BeanReference(type=CounterLocalService.class) protected CounterLocalService counterLocalService
@BeanReference(type=PersistedModelLocalServiceRegistry.class) protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry
| Constructor Detail |
|---|
public DLContentLocalServiceBaseImpl()
| Method Detail |
|---|
@Indexable(type=REINDEX) public DLContent addDLContent(DLContent dlContent)
addDLContent in interface DLContentLocalServicedlContent - the document library content
public DLContent createDLContent(long contentId)
createDLContent in interface DLContentLocalServicecontentId - the primary key for the new document library content
@Indexable(type=DELETE)
public DLContent deleteDLContent(long contentId)
throws PortalException
deleteDLContent in interface DLContentLocalServicecontentId - the primary key of the document library content
PortalException - if a document library content with the primary key could not be found@Indexable(type=DELETE) public DLContent deleteDLContent(DLContent dlContent)
deleteDLContent in interface DLContentLocalServicedlContent - the document library content
public DynamicQuery dynamicQuery()
dynamicQuery in interface DLContentLocalServicepublic <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
dynamicQuery in interface DLContentLocalServicedynamicQuery - the dynamic query
public <T> List<T> dynamicQuery(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 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.
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> List<T> dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
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 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.
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(DynamicQuery dynamicQuery)
dynamicQueryCount in interface DLContentLocalServicedynamicQuery - the dynamic query
public long dynamicQueryCount(DynamicQuery dynamicQuery,
Projection projection)
dynamicQueryCount in interface DLContentLocalServicedynamicQuery - the dynamic queryprojection - the projection to apply to the query
public DLContent fetchDLContent(long contentId)
fetchDLContent in interface DLContentLocalService
public DLContent getDLContent(long contentId)
throws PortalException
getDLContent in interface DLContentLocalServicecontentId - the primary key of the document library content
PortalException - if a document library content with the primary key could not be foundpublic ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery in interface DLContentLocalServicepublic IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery in interface DLContentLocalServiceprotected void initActionableDynamicQuery(ActionableDynamicQuery actionableDynamicQuery)
public PersistedModel deletePersistedModel(PersistedModel persistedModel)
throws PortalException
deletePersistedModel in interface PersistedModelLocalServicedeletePersistedModel in interface DLContentLocalServicePortalException
public PersistedModel getPersistedModel(Serializable primaryKeyObj)
throws PortalException
getPersistedModel in interface PersistedModelLocalServicegetPersistedModel in interface DLContentLocalServicePortalException
public 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 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.
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 DLContentLocalService@Indexable(type=REINDEX) public DLContent updateDLContent(DLContent dlContent)
updateDLContent in interface DLContentLocalServicedlContent - the document library content
public DLContentDataBlobModel getDataBlobModel(Serializable primaryKey)
getDataBlobModel in interface DLContentLocalServicepublic DLContentLocalService getDLContentLocalService()
public void setDLContentLocalService(DLContentLocalService dlContentLocalService)
dlContentLocalService - the document library content local servicepublic DLContentPersistence getDLContentPersistence()
public void setDLContentPersistence(DLContentPersistence dlContentPersistence)
dlContentPersistence - the document library content persistencepublic CounterLocalService getCounterLocalService()
public void setCounterLocalService(CounterLocalService counterLocalService)
counterLocalService - the counter local servicepublic void afterPropertiesSet()
public void destroy()
public String getOSGiServiceIdentifier()
getOSGiServiceIdentifier in interface IdentifiableOSGiServicegetOSGiServiceIdentifier in interface DLContentLocalServiceprotected Class<?> getModelClass()
protected String getModelClassName()
protected void runSQL(String sql)
sql - the sql query
|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||