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

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

public class DDLRecordLocalServiceImpl
extends DDLRecordLocalServiceBaseImpl

Author:
Marcellus Tavares, Eduardo Lundgren

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, resourceFinder, resourceLocalService, resourcePersistence, resourceService, userFinder, userLocalService, userPersistence, userService, workflowInstanceLinkLocalService, workflowInstanceLinkPersistence
 
Constructor Summary
DDLRecordLocalServiceImpl()
           
 
Method Summary
 com.liferay.portlet.dynamicdatalists.model.DDLRecord addRecord(long userId, long groupId, long recordSetId, int displayIndex, com.liferay.portlet.dynamicdatamapping.storage.Fields fields, com.liferay.portal.service.ServiceContext serviceContext)
           
 com.liferay.portlet.dynamicdatalists.model.DDLRecord addRecord(long userId, long groupId, long recordSetId, int displayIndex, java.util.Map<java.lang.String,java.io.Serializable> fieldsMap, com.liferay.portal.service.ServiceContext serviceContext)
           
protected  com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion addRecordVersion(com.liferay.portal.model.User user, com.liferay.portlet.dynamicdatalists.model.DDLRecord record, long ddmStorageId, java.lang.String version, int displayIndex, int status)
           
 void deleteRecord(com.liferay.portlet.dynamicdatalists.model.DDLRecord record)
           
 void deleteRecord(long recordId)
           
 void deleteRecords(long recordSetId)
           
 com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchRecord(long recordId)
           
 com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion getLatestRecordVersion(long recordId)
           
protected  java.lang.String getNextVersion(java.lang.String version, boolean majorVersion, int workflowAction)
           
 com.liferay.portlet.dynamicdatalists.model.DDLRecord getRecord(long recordId)
           
 java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> getRecords(long recordSetId)
           
 java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> getRecords(long recordSetId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
 java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> getRecords(long recordSetId, long userId)
           
 int getRecordsCount(long recordSetId, int status)
           
 com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion getRecordVersion(long recordVersionId)
           
 com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion getRecordVersion(long recordId, java.lang.String version)
           
 java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> getRecordVersions(long recordId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
 int getRecordVersionsCount(long recordId)
           
 void revertRecordVersion(long userId, long recordId, java.lang.String version, com.liferay.portal.service.ServiceContext serviceContext)
           
protected  com.liferay.portlet.dynamicdatamapping.storage.Fields toFields(long ddmStructureId, java.util.Map<java.lang.String,java.io.Serializable> fieldsMap)
           
 void updateAsset(long userId, com.liferay.portlet.dynamicdatalists.model.DDLRecord record, com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion recordVersion, long[] assetCategoryIds, java.lang.String[] assetTagNames, java.util.Locale locale)
           
 com.liferay.portlet.dynamicdatalists.model.DDLRecord updateRecord(long userId, long recordId, boolean majorVersion, int displayIndex, com.liferay.portlet.dynamicdatamapping.storage.Fields fields, boolean mergeFields, com.liferay.portal.service.ServiceContext serviceContext)
           
 com.liferay.portlet.dynamicdatalists.model.DDLRecord updateRecord(long userId, long recordId, int displayIndex, java.util.Map<java.lang.String,java.io.Serializable> fieldsMap, boolean mergeFields, com.liferay.portal.service.ServiceContext serviceContext)
           
protected  void updateRecordVersion(com.liferay.portal.model.User user, com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion recordVersion, java.lang.String version, int displayIndex, int status, com.liferay.portal.service.ServiceContext serviceContext)
           
 com.liferay.portlet.dynamicdatalists.model.DDLRecord updateStatus(long userId, long recordVersionId, int status, com.liferay.portal.service.ServiceContext serviceContext)
           
 
Methods inherited from class com.liferay.portlet.dynamicdatalists.service.base.DDLRecordLocalServiceBaseImpl
addDDLRecord, afterPropertiesSet, createDDLRecord, deleteDDLRecord, deleteDDLRecord, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, fetchDDLRecord, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getBeanIdentifier, getCounterLocalService, getDDLRecord, getDDLRecordByUuidAndGroupId, getDDLRecordFinder, getDDLRecordLocalService, getDDLRecordPersistence, getDDLRecords, getDDLRecordsCount, getDDLRecordService, getDDLRecordSetFinder, getDDLRecordSetLocalService, getDDLRecordSetPersistence, getDDLRecordSetService, getDDLRecordVersionPersistence, getDDMStructureFinder, getDDMStructureLocalService, getDDMStructurePersistence, getDDMStructureService, getModelClass, getModelClassName, getPersistedModel, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, 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, setResourceFinder, setResourceLocalService, setResourcePersistence, setResourceService, setUserFinder, setUserLocalService, setUserPersistence, setUserService, setWorkflowInstanceLinkLocalService, setWorkflowInstanceLinkPersistence, updateDDLRecord, updateDDLRecord
 
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

public com.liferay.portlet.dynamicdatalists.model.DDLRecord addRecord(long userId,
                                                                      long groupId,
                                                                      long recordSetId,
                                                                      int displayIndex,
                                                                      com.liferay.portlet.dynamicdatamapping.storage.Fields fields,
                                                                      com.liferay.portal.service.ServiceContext serviceContext)
                                                               throws com.liferay.portal.kernel.exception.PortalException,
                                                                      com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

addRecord

public com.liferay.portlet.dynamicdatalists.model.DDLRecord addRecord(long userId,
                                                                      long groupId,
                                                                      long recordSetId,
                                                                      int displayIndex,
                                                                      java.util.Map<java.lang.String,java.io.Serializable> fieldsMap,
                                                                      com.liferay.portal.service.ServiceContext serviceContext)
                                                               throws com.liferay.portal.kernel.exception.PortalException,
                                                                      com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

deleteRecord

public void deleteRecord(com.liferay.portlet.dynamicdatalists.model.DDLRecord record)
                  throws com.liferay.portal.kernel.exception.PortalException,
                         com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

deleteRecord

public void deleteRecord(long recordId)
                  throws com.liferay.portal.kernel.exception.PortalException,
                         com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

deleteRecords

public void deleteRecords(long recordSetId)
                   throws com.liferay.portal.kernel.exception.PortalException,
                          com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

fetchRecord

public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchRecord(long recordId)
                                                                 throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getLatestRecordVersion

public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion getLatestRecordVersion(long recordId)
                                                                                   throws com.liferay.portal.kernel.exception.PortalException,
                                                                                          com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getRecord

public com.liferay.portlet.dynamicdatalists.model.DDLRecord getRecord(long recordId)
                                                               throws com.liferay.portal.kernel.exception.PortalException,
                                                                      com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getRecords

public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> getRecords(long recordSetId)
                                                                                throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getRecords

public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> getRecords(long recordSetId,
                                                                                       int status,
                                                                                       int start,
                                                                                       int end,
                                                                                       com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                                throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getRecords

public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> getRecords(long recordSetId,
                                                                                       long userId)
                                                                                throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getRecordsCount

public int getRecordsCount(long recordSetId,
                           int status)
                    throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getRecordVersion

public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion getRecordVersion(long recordVersionId)
                                                                             throws com.liferay.portal.kernel.exception.PortalException,
                                                                                    com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getRecordVersion

public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion getRecordVersion(long recordId,
                                                                                    java.lang.String version)
                                                                             throws com.liferay.portal.kernel.exception.PortalException,
                                                                                    com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getRecordVersions

public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> getRecordVersions(long recordId,
                                                                                                     int start,
                                                                                                     int end,
                                                                                                     com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                                              throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getRecordVersionsCount

public int getRecordVersionsCount(long recordId)
                           throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

revertRecordVersion

public void revertRecordVersion(long userId,
                                long recordId,
                                java.lang.String version,
                                com.liferay.portal.service.ServiceContext serviceContext)
                         throws com.liferay.portal.kernel.exception.PortalException,
                                com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

updateAsset

public void updateAsset(long userId,
                        com.liferay.portlet.dynamicdatalists.model.DDLRecord record,
                        com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion recordVersion,
                        long[] assetCategoryIds,
                        java.lang.String[] assetTagNames,
                        java.util.Locale locale)
                 throws com.liferay.portal.kernel.exception.PortalException,
                        com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

updateRecord

public com.liferay.portlet.dynamicdatalists.model.DDLRecord updateRecord(long userId,
                                                                         long recordId,
                                                                         boolean majorVersion,
                                                                         int displayIndex,
                                                                         com.liferay.portlet.dynamicdatamapping.storage.Fields fields,
                                                                         boolean mergeFields,
                                                                         com.liferay.portal.service.ServiceContext serviceContext)
                                                                  throws com.liferay.portal.kernel.exception.PortalException,
                                                                         com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

updateRecord

public com.liferay.portlet.dynamicdatalists.model.DDLRecord updateRecord(long userId,
                                                                         long recordId,
                                                                         int displayIndex,
                                                                         java.util.Map<java.lang.String,java.io.Serializable> fieldsMap,
                                                                         boolean mergeFields,
                                                                         com.liferay.portal.service.ServiceContext serviceContext)
                                                                  throws com.liferay.portal.kernel.exception.PortalException,
                                                                         com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

updateStatus

public com.liferay.portlet.dynamicdatalists.model.DDLRecord updateStatus(long userId,
                                                                         long recordVersionId,
                                                                         int status,
                                                                         com.liferay.portal.service.ServiceContext serviceContext)
                                                                  throws com.liferay.portal.kernel.exception.PortalException,
                                                                         com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

addRecordVersion

protected com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion addRecordVersion(com.liferay.portal.model.User user,
                                                                                       com.liferay.portlet.dynamicdatalists.model.DDLRecord record,
                                                                                       long ddmStorageId,
                                                                                       java.lang.String version,
                                                                                       int displayIndex,
                                                                                       int status)
                                                                                throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getNextVersion

protected java.lang.String getNextVersion(java.lang.String version,
                                          boolean majorVersion,
                                          int workflowAction)

toFields

protected com.liferay.portlet.dynamicdatamapping.storage.Fields toFields(long ddmStructureId,
                                                                         java.util.Map<java.lang.String,java.io.Serializable> fieldsMap)

updateRecordVersion

protected void updateRecordVersion(com.liferay.portal.model.User user,
                                   com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion recordVersion,
                                   java.lang.String version,
                                   int displayIndex,
                                   int status,
                                   com.liferay.portal.service.ServiceContext serviceContext)
                            throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException