Liferay 7.0-ce-m3

com.liferay.portlet.dynamicdatalists.service.impl
Class DDLRecordLocalServiceImpl

java.lang.Object
  extended by com.liferay.portal.service.BaseLocalServiceImpl
      extended by com.liferay.portlet.dynamicdatalists.service.base.DDLRecordLocalServiceBaseImpl
          extended by com.liferay.portlet.dynamicdatalists.service.impl.DDLRecordLocalServiceImpl
All Implemented Interfaces:
IdentifiableBean, BaseLocalService, PersistedModelLocalService, DDLRecordLocalService

public class DDLRecordLocalServiceImpl
extends DDLRecordLocalServiceBaseImpl

Provides the local service for accessing, adding, deleting, and updating dynamic data list (DDL) records.


Field Summary
 
Fields inherited from class com.liferay.portlet.dynamicdatalists.service.base.DDLRecordLocalServiceBaseImpl
assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetEntryService, counterLocalService, ddlRecordFinder, ddlRecordLocalService, ddlRecordPersistence, ddlRecordService, ddlRecordSetFinder, ddlRecordSetLocalService, ddlRecordSetPersistence, ddlRecordSetService, ddlRecordVersionLocalService, ddlRecordVersionPersistence, ddlRecordVersionService, ddmStructureFinder, ddmStructureLocalService, ddmStructurePersistence, ddmStructureService, persistedModelLocalServiceRegistry, userFinder, userLocalService, userPersistence, userService, workflowInstanceLinkLocalService, workflowInstanceLinkPersistence
 
Constructor Summary
DDLRecordLocalServiceImpl()
           
 
Method Summary
 DDLRecord addRecord(long userId, long groupId, long recordSetId, int displayIndex, DDMFormValues ddmFormValues, ServiceContext serviceContext)
           
 DDLRecord addRecord(long userId, long groupId, long recordSetId, int displayIndex, Fields fields, ServiceContext serviceContext)
           
 DDLRecord addRecord(long userId, long groupId, long recordSetId, int displayIndex, Map<String,Serializable> fieldsMap, ServiceContext serviceContext)
           
protected  DDLRecordVersion addRecordVersion(User user, DDLRecord record, long ddmStorageId, String version, int displayIndex, int status)
           
 DDLRecord deleteRecord(DDLRecord record)
           
 void deleteRecord(long recordId)
           
 DDLRecord deleteRecordLocale(long recordId, Locale locale, ServiceContext serviceContext)
           
 void deleteRecords(long recordSetId)
           
 DDLRecord fetchRecord(long recordId)
           
 List<DDLRecord> getCompanyRecords(long companyId, int status, int scope, int start, int end, OrderByComparator<DDLRecord> orderByComparator)
           
 int getCompanyRecordsCount(long companyId, int status, int scope)
           
 DDLRecordVersion getLatestRecordVersion(long recordId)
          Deprecated. As of 7.0.0, replaced by DDLRecordVersionLocalServiceImpl.getLatestRecordVersion( long)
 Long[] getMinAndMaxCompanyRecordIds(long companyId, int status, int scope)
           
 List<DDLRecord> getMinAndMaxCompanyRecords(long companyId, int status, int scope, long minRecordId, long maxRecordId)
           
protected  String getNextVersion(String version, boolean majorVersion, int workflowAction)
           
 DDLRecord getRecord(long recordId)
           
 List<DDLRecord> getRecords(long recordSetId)
           
 List<DDLRecord> getRecords(long recordSetId, int status, int start, int end, OrderByComparator<DDLRecord> orderByComparator)
           
 List<DDLRecord> getRecords(long recordSetId, long userId)
           
 int getRecordsCount(long recordSetId, int status)
           
 DDLRecordVersion getRecordVersion(long recordVersionId)
          Deprecated. As of 7.0.0, replaced by DDLRecordVersionLocalServiceImpl.getRecordVersion(long)
 DDLRecordVersion getRecordVersion(long recordId, String version)
          Deprecated. As of 7.0.0, replaced by DDLRecordVersionLocalServiceImpl.getRecordVersion(long, String)
 List<DDLRecordVersion> getRecordVersions(long recordId, int start, int end, OrderByComparator<DDLRecordVersion> orderByComparator)
          Deprecated. As of 7.0.0, replaced by DDLRecordVersionLocalServiceImpl.getRecordVersions(long, int, int, OrderByComparator)
 int getRecordVersionsCount(long recordId)
          Deprecated. As of 7.0.0, replaced by DDLRecordVersionLocalServiceImpl.getRecordVersionsCount( long)
protected  boolean isKeepRecordVersionLabel(DDLRecordVersion lastRecordVersion, DDLRecordVersion latestRecordVersion, ServiceContext serviceContext)
           
 void revertRecord(long userId, long recordId, String version, ServiceContext serviceContext)
           
 void revertRecordVersion(long userId, long recordId, String version, ServiceContext serviceContext)
          Deprecated. As of 7.0.0, replaced by revertRecord(long, long, String, ServiceContext)
 Hits search(SearchContext searchContext)
           
 BaseModelSearchResult<DDLRecord> searchDDLRecords(SearchContext searchContext)
           
protected  Fields toFields(long ddmStructureId, Map<String,Serializable> fieldsMap, Locale locale, Locale defaultLocale, boolean create)
           
 void updateAsset(long userId, DDLRecord record, DDLRecordVersion recordVersion, long[] assetCategoryIds, String[] assetTagNames, Locale locale)
           
 DDLRecord updateRecord(long userId, long recordId, boolean majorVersion, int displayIndex, DDMFormValues ddmFormValues, ServiceContext serviceContext)
           
 DDLRecord updateRecord(long userId, long recordId, boolean majorVersion, int displayIndex, Fields fields, boolean mergeFields, ServiceContext serviceContext)
           
 DDLRecord updateRecord(long userId, long recordId, int displayIndex, Map<String,Serializable> fieldsMap, boolean mergeFields, ServiceContext serviceContext)
           
protected  void updateRecordVersion(User user, DDLRecordVersion recordVersion, String version, int displayIndex, int status, ServiceContext serviceContext)
           
 DDLRecord updateStatus(long userId, long recordVersionId, int status, ServiceContext serviceContext)
           
 
Methods inherited from class com.liferay.portlet.dynamicdatalists.service.base.DDLRecordLocalServiceBaseImpl
addDDLRecord, afterPropertiesSet, createDDLRecord, deleteDDLRecord, deleteDDLRecord, deletePersistedModel, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchDDLRecord, fetchDDLRecordByUuidAndGroupId, getActionableDynamicQuery, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getBeanIdentifier, getCounterLocalService, getDDLRecord, getDDLRecordByUuidAndGroupId, getDDLRecordFinder, getDDLRecordLocalService, getDDLRecordPersistence, getDDLRecords, getDDLRecordsByUuidAndCompanyId, getDDLRecordsByUuidAndCompanyId, getDDLRecordsCount, getDDLRecordService, getDDLRecordSetFinder, getDDLRecordSetLocalService, getDDLRecordSetPersistence, getDDLRecordSetService, getDDLRecordVersionLocalService, getDDLRecordVersionPersistence, getDDLRecordVersionService, getDDMStructureFinder, getDDMStructureLocalService, getDDMStructurePersistence, getDDMStructureService, getExportActionableDynamicQuery, getModelClass, getModelClassName, getPersistedModel, getUserFinder, getUserLocalService, getUserPersistence, getUserService, getWorkflowInstanceLinkLocalService, getWorkflowInstanceLinkPersistence, initActionableDynamicQuery, runSQL, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetEntryService, setBeanIdentifier, setCounterLocalService, setDDLRecordFinder, setDDLRecordLocalService, setDDLRecordPersistence, setDDLRecordService, setDDLRecordSetFinder, setDDLRecordSetLocalService, setDDLRecordSetPersistence, setDDLRecordSetService, setDDLRecordVersionLocalService, setDDLRecordVersionPersistence, setDDLRecordVersionService, setDDMStructureFinder, setDDMStructureLocalService, setDDMStructurePersistence, setDDMStructureService, setUserFinder, setUserLocalService, setUserPersistence, setUserService, setWorkflowInstanceLinkLocalService, setWorkflowInstanceLinkPersistence, updateDDLRecord
 
Methods inherited from class com.liferay.portal.service.BaseLocalServiceImpl
getClassLoader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DDLRecordLocalServiceImpl

public DDLRecordLocalServiceImpl()
Method Detail

addRecord

@Indexable(type=REINDEX)
public DDLRecord addRecord(long userId,
                                                long groupId,
                                                long recordSetId,
                                                int displayIndex,
                                                DDMFormValues ddmFormValues,
                                                ServiceContext serviceContext)
                    throws PortalException
Throws:
PortalException

addRecord

public DDLRecord addRecord(long userId,
                           long groupId,
                           long recordSetId,
                           int displayIndex,
                           Fields fields,
                           ServiceContext serviceContext)
                    throws PortalException
Throws:
PortalException

addRecord

public DDLRecord addRecord(long userId,
                           long groupId,
                           long recordSetId,
                           int displayIndex,
                           Map<String,Serializable> fieldsMap,
                           ServiceContext serviceContext)
                    throws PortalException
Throws:
PortalException

deleteRecord

@Indexable(type=DELETE)
@SystemEvent(action=1,
             type=1)
public DDLRecord deleteRecord(DDLRecord record)
                       throws PortalException
Throws:
PortalException

deleteRecord

public void deleteRecord(long recordId)
                  throws PortalException
Throws:
PortalException

deleteRecordLocale

public DDLRecord deleteRecordLocale(long recordId,
                                    Locale locale,
                                    ServiceContext serviceContext)
                             throws PortalException
Throws:
PortalException

deleteRecords

public void deleteRecords(long recordSetId)
                   throws PortalException
Throws:
PortalException

fetchRecord

public DDLRecord fetchRecord(long recordId)

getCompanyRecords

public List<DDLRecord> getCompanyRecords(long companyId,
                                         int status,
                                         int scope,
                                         int start,
                                         int end,
                                         OrderByComparator<DDLRecord> orderByComparator)

getCompanyRecordsCount

public int getCompanyRecordsCount(long companyId,
                                  int status,
                                  int scope)

getLatestRecordVersion

@Deprecated
public DDLRecordVersion getLatestRecordVersion(long recordId)
                                        throws PortalException
Deprecated. As of 7.0.0, replaced by DDLRecordVersionLocalServiceImpl.getLatestRecordVersion( long)

Throws:
PortalException

getMinAndMaxCompanyRecordIds

public Long[] getMinAndMaxCompanyRecordIds(long companyId,
                                           int status,
                                           int scope)

getMinAndMaxCompanyRecords

public List<DDLRecord> getMinAndMaxCompanyRecords(long companyId,
                                                  int status,
                                                  int scope,
                                                  long minRecordId,
                                                  long maxRecordId)

getRecord

public DDLRecord getRecord(long recordId)
                    throws PortalException
Throws:
PortalException

getRecords

public List<DDLRecord> getRecords(long recordSetId)

getRecords

public List<DDLRecord> getRecords(long recordSetId,
                                  int status,
                                  int start,
                                  int end,
                                  OrderByComparator<DDLRecord> orderByComparator)

getRecords

public List<DDLRecord> getRecords(long recordSetId,
                                  long userId)

getRecordsCount

public int getRecordsCount(long recordSetId,
                           int status)

getRecordVersion

@Deprecated
public DDLRecordVersion getRecordVersion(long recordVersionId)
                                  throws PortalException
Deprecated. As of 7.0.0, replaced by DDLRecordVersionLocalServiceImpl.getRecordVersion(long)

Throws:
PortalException

getRecordVersion

@Deprecated
public DDLRecordVersion getRecordVersion(long recordId,
                                                    String version)
                                  throws PortalException
Deprecated. As of 7.0.0, replaced by DDLRecordVersionLocalServiceImpl.getRecordVersion(long, String)

Throws:
PortalException

getRecordVersions

@Deprecated
public List<DDLRecordVersion> getRecordVersions(long recordId,
                                                           int start,
                                                           int end,
                                                           OrderByComparator<DDLRecordVersion> orderByComparator)
Deprecated. As of 7.0.0, replaced by DDLRecordVersionLocalServiceImpl.getRecordVersions(long, int, int, OrderByComparator)


getRecordVersionsCount

@Deprecated
public int getRecordVersionsCount(long recordId)
Deprecated. As of 7.0.0, replaced by DDLRecordVersionLocalServiceImpl.getRecordVersionsCount( long)


revertRecord

public void revertRecord(long userId,
                         long recordId,
                         String version,
                         ServiceContext serviceContext)
                  throws PortalException
Throws:
PortalException

revertRecordVersion

@Deprecated
public void revertRecordVersion(long userId,
                                           long recordId,
                                           String version,
                                           ServiceContext serviceContext)
                         throws PortalException
Deprecated. As of 7.0.0, replaced by revertRecord(long, long, String, ServiceContext)

Throws:
PortalException

search

public Hits search(SearchContext searchContext)

searchDDLRecords

public BaseModelSearchResult<DDLRecord> searchDDLRecords(SearchContext searchContext)

updateAsset

public void updateAsset(long userId,
                        DDLRecord record,
                        DDLRecordVersion recordVersion,
                        long[] assetCategoryIds,
                        String[] assetTagNames,
                        Locale locale)
                 throws PortalException
Throws:
PortalException

updateRecord

@Indexable(type=REINDEX)
public DDLRecord updateRecord(long userId,
                                                   long recordId,
                                                   boolean majorVersion,
                                                   int displayIndex,
                                                   DDMFormValues ddmFormValues,
                                                   ServiceContext serviceContext)
                       throws PortalException
Throws:
PortalException

updateRecord

public DDLRecord updateRecord(long userId,
                              long recordId,
                              boolean majorVersion,
                              int displayIndex,
                              Fields fields,
                              boolean mergeFields,
                              ServiceContext serviceContext)
                       throws PortalException
Throws:
PortalException

updateRecord

public DDLRecord updateRecord(long userId,
                              long recordId,
                              int displayIndex,
                              Map<String,Serializable> fieldsMap,
                              boolean mergeFields,
                              ServiceContext serviceContext)
                       throws PortalException
Throws:
PortalException

updateStatus

@Indexable(type=REINDEX)
public DDLRecord updateStatus(long userId,
                                                   long recordVersionId,
                                                   int status,
                                                   ServiceContext serviceContext)
                       throws PortalException
Throws:
PortalException

addRecordVersion

protected DDLRecordVersion addRecordVersion(User user,
                                            DDLRecord record,
                                            long ddmStorageId,
                                            String version,
                                            int displayIndex,
                                            int status)

getNextVersion

protected String getNextVersion(String version,
                                boolean majorVersion,
                                int workflowAction)

isKeepRecordVersionLabel

protected boolean isKeepRecordVersionLabel(DDLRecordVersion lastRecordVersion,
                                           DDLRecordVersion latestRecordVersion,
                                           ServiceContext serviceContext)
                                    throws PortalException
Throws:
PortalException
See Also:
DLFileEntryLocalServiceImpl.isKeepFileVersionLabel( DLFileEntry, DLFileVersion, DLFileVersion, ServiceContext)

toFields

protected Fields toFields(long ddmStructureId,
                          Map<String,Serializable> fieldsMap,
                          Locale locale,
                          Locale defaultLocale,
                          boolean create)

updateRecordVersion

protected void updateRecordVersion(User user,
                                   DDLRecordVersion recordVersion,
                                   String version,
                                   int displayIndex,
                                   int status,
                                   ServiceContext serviceContext)

Liferay 7.0-ce-m3