Liferay 6.2-ce-ga5

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, ddlRecordVersionPersistence, ddmStructureFinder, ddmStructureLocalService, ddmStructurePersistence, ddmStructureService, persistedModelLocalServiceRegistry, resourceLocalService, userFinder, userLocalService, userPersistence, userService, workflowInstanceLinkLocalService, workflowInstanceLinkPersistence
 
Fields inherited from class com.liferay.portal.service.BaseLocalServiceImpl
layoutPersistence
 
Constructor Summary
DDLRecordLocalServiceImpl()
           
 
Method Summary
 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)
           
 void 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 orderByComparator)
           
 List<DDLRecord> getCompanyRecords(long companyId, int scope, int start, int end, OrderByComparator orderByComparator)
          Deprecated. As of 6.2.0, replaced by getCompanyRecords(long, int, int, int, int, OrderByComparator)
 int getCompanyRecordsCount(long companyId, int scope)
          Deprecated. As of 6.2.0, replaced by getCompanyRecordsCount(long, int, int)
 int getCompanyRecordsCount(long companyId, int status, int scope)
           
 DDLRecordVersion getLatestRecordVersion(long recordId)
           
 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 orderByComparator)
           
 List<DDLRecord> getRecords(long recordSetId, long userId)
           
 int getRecordsCount(long recordSetId, int status)
           
 DDLRecordVersion getRecordVersion(long recordVersionId)
           
 DDLRecordVersion getRecordVersion(long recordId, String version)
           
 List<DDLRecordVersion> getRecordVersions(long recordId, int start, int end, OrderByComparator orderByComparator)
           
 int getRecordVersionsCount(long recordId)
           
 void revertRecordVersion(long userId, long recordId, String version, ServiceContext serviceContext)
           
 Hits search(SearchContext searchContext)
           
protected  Fields toFields(long ddmStructureId, Map<String,Serializable> fieldsMap)
           
 void updateAsset(long userId, DDLRecord record, DDLRecordVersion recordVersion, long[] assetCategoryIds, String[] assetTagNames, Locale locale)
           
 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, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchDDLRecord, fetchDDLRecordByUuidAndCompanyId, fetchDDLRecordByUuidAndGroupId, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getBeanIdentifier, getCounterLocalService, getDDLRecord, getDDLRecordByUuidAndCompanyId, getDDLRecordByUuidAndGroupId, getDDLRecordFinder, getDDLRecordLocalService, getDDLRecordPersistence, getDDLRecords, getDDLRecordsCount, getDDLRecordService, getDDLRecordSetFinder, getDDLRecordSetLocalService, getDDLRecordSetPersistence, getDDLRecordSetService, getDDLRecordVersionPersistence, getDDMStructureFinder, getDDMStructureLocalService, getDDMStructurePersistence, getDDMStructureService, getModelClass, getModelClassName, getPersistedModel, getResourceLocalService, getUserFinder, getUserLocalService, getUserPersistence, getUserService, getWorkflowInstanceLinkLocalService, getWorkflowInstanceLinkPersistence, runSQL, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetEntryService, setBeanIdentifier, setCounterLocalService, setDDLRecordFinder, setDDLRecordLocalService, setDDLRecordPersistence, setDDLRecordService, setDDLRecordSetFinder, setDDLRecordSetLocalService, setDDLRecordSetPersistence, setDDLRecordSetService, setDDLRecordVersionPersistence, setDDMStructureFinder, setDDMStructureLocalService, setDDMStructurePersistence, setDDMStructureService, setResourceLocalService, setUserFinder, setUserLocalService, setUserPersistence, setUserService, setWorkflowInstanceLinkLocalService, setWorkflowInstanceLinkPersistence, updateDDLRecord
 
Methods inherited from class com.liferay.portal.service.BaseLocalServiceImpl
getClassLoader, getLayoutURL, getLayoutURL
 
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,
                                                Fields fields,
                                                ServiceContext serviceContext)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

addRecord

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

deleteRecord

public void deleteRecord(DDLRecord record)
                  throws PortalException,
                         SystemException
Throws:
PortalException
SystemException

deleteRecord

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

deleteRecordLocale

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

deleteRecords

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

fetchRecord

public DDLRecord fetchRecord(long recordId)
                      throws SystemException
Throws:
SystemException

getCompanyRecords

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

getCompanyRecords

public List<DDLRecord> getCompanyRecords(long companyId,
                                         int scope,
                                         int start,
                                         int end,
                                         OrderByComparator orderByComparator)
                                  throws SystemException
Deprecated. As of 6.2.0, replaced by getCompanyRecords(long, int, int, int, int, OrderByComparator)

Throws:
SystemException

getCompanyRecordsCount

public int getCompanyRecordsCount(long companyId,
                                  int scope)
                           throws SystemException
Deprecated. As of 6.2.0, replaced by getCompanyRecordsCount(long, int, int)

Throws:
SystemException

getCompanyRecordsCount

public int getCompanyRecordsCount(long companyId,
                                  int status,
                                  int scope)
                           throws SystemException
Throws:
SystemException

getLatestRecordVersion

public DDLRecordVersion getLatestRecordVersion(long recordId)
                                        throws PortalException,
                                               SystemException
Throws:
PortalException
SystemException

getMinAndMaxCompanyRecordIds

public Long[] getMinAndMaxCompanyRecordIds(long companyId,
                                           int status,
                                           int scope)
                                    throws SystemException
Throws:
SystemException

getMinAndMaxCompanyRecords

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

getRecord

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

getRecords

public List<DDLRecord> getRecords(long recordSetId)
                           throws SystemException
Throws:
SystemException

getRecords

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

getRecords

public List<DDLRecord> getRecords(long recordSetId,
                                  long userId)
                           throws SystemException
Throws:
SystemException

getRecordsCount

public int getRecordsCount(long recordSetId,
                           int status)
                    throws SystemException
Throws:
SystemException

getRecordVersion

public DDLRecordVersion getRecordVersion(long recordVersionId)
                                  throws PortalException,
                                         SystemException
Throws:
PortalException
SystemException

getRecordVersion

public DDLRecordVersion getRecordVersion(long recordId,
                                         String version)
                                  throws PortalException,
                                         SystemException
Throws:
PortalException
SystemException

getRecordVersions

public List<DDLRecordVersion> getRecordVersions(long recordId,
                                                int start,
                                                int end,
                                                OrderByComparator orderByComparator)
                                         throws SystemException
Throws:
SystemException

getRecordVersionsCount

public int getRecordVersionsCount(long recordId)
                           throws SystemException
Throws:
SystemException

revertRecordVersion

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

search

public Hits search(SearchContext searchContext)
            throws SystemException
Throws:
SystemException

updateAsset

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

updateRecord

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

updateRecord

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

updateStatus

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

addRecordVersion

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

getNextVersion

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

toFields

protected Fields toFields(long ddmStructureId,
                          Map<String,Serializable> fieldsMap)

updateRecordVersion

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

Liferay 6.2-ce-ga5