com.liferay.portlet.dynamicdatamapping.service.impl
Class DDMStructureLocalServiceImpl

java.lang.Object
  extended by com.liferay.portlet.dynamicdatamapping.service.base.DDMStructureLocalServiceBaseImpl
      extended by com.liferay.portlet.dynamicdatamapping.service.impl.DDMStructureLocalServiceImpl
All Implemented Interfaces:
com.liferay.portal.kernel.bean.IdentifiableBean, com.liferay.portal.service.PersistedModelLocalService, com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService

public class DDMStructureLocalServiceImpl
extends DDMStructureLocalServiceBaseImpl

Author:
Brian Wing Shun Chan, Bruno Basto, Marcellus Tavares

Field Summary
 
Fields inherited from class com.liferay.portlet.dynamicdatamapping.service.base.DDMStructureLocalServiceBaseImpl
counterLocalService, ddmContentLocalService, ddmContentPersistence, ddmStorageLinkLocalService, ddmStorageLinkPersistence, ddmStructureFinder, ddmStructureLinkLocalService, ddmStructureLinkPersistence, ddmStructureLocalService, ddmStructurePersistence, ddmStructureService, ddmTemplateFinder, ddmTemplateLocalService, ddmTemplatePersistence, ddmTemplateService, dlFileEntryTypeFinder, dlFileEntryTypeLocalService, dlFileEntryTypePersistence, dlFileEntryTypeService, persistedModelLocalServiceRegistry, resourceFinder, resourceLocalService, resourcePersistence, resourceService, userFinder, userLocalService, userPersistence, userService
 
Constructor Summary
DDMStructureLocalServiceImpl()
           
 
Method Summary
 com.liferay.portlet.dynamicdatamapping.model.DDMStructure addStructure(long userId, long groupId, long classNameId, java.lang.String structureKey, java.util.Map<java.util.Locale,java.lang.String> nameMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, java.lang.String xsd, java.lang.String storageType, int type, com.liferay.portal.service.ServiceContext serviceContext)
           
 void addStructureResources(com.liferay.portlet.dynamicdatamapping.model.DDMStructure structure, boolean addGroupPermissions, boolean addGuestPermissions)
           
 void addStructureResources(com.liferay.portlet.dynamicdatamapping.model.DDMStructure structure, java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
           
protected  void appendNewStructureRequiredFields(com.liferay.portlet.dynamicdatamapping.model.DDMStructure structure, com.liferay.portal.kernel.xml.Document templateDocument)
           
 com.liferay.portlet.dynamicdatamapping.model.DDMStructure copyStructure(long userId, long structureId, java.util.Map<java.util.Locale,java.lang.String> nameMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, com.liferay.portal.service.ServiceContext serviceContext)
           
 void deleteStructure(com.liferay.portlet.dynamicdatamapping.model.DDMStructure structure)
           
 void deleteStructure(long structureId)
           
 void deleteStructure(long groupId, java.lang.String structureKey)
           
 void deleteStructures(long groupId)
           
protected  com.liferay.portlet.dynamicdatamapping.model.DDMStructure doUpdateStructure(java.util.Map<java.util.Locale,java.lang.String> nameMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, java.lang.String xsd, com.liferay.portal.service.ServiceContext serviceContext, com.liferay.portlet.dynamicdatamapping.model.DDMStructure structure)
           
 com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchStructure(long structureId)
           
 com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchStructure(long groupId, java.lang.String structureKey)
           
 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getClassStructures(long classNameId)
           
 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getClassStructures(long classNameId, int start, int end)
           
 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getClassStructures(long classNameId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getDLFileEntryTypeStructures(long dlFileEntryTypeId)
           
 com.liferay.portlet.dynamicdatamapping.model.DDMStructure getStructure(long structureId)
           
 com.liferay.portlet.dynamicdatamapping.model.DDMStructure getStructure(long groupId, java.lang.String structureKey)
           
 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructure(long groupId, java.lang.String name, java.lang.String description)
           
 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructureEntries()
           
 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructureEntries(long groupId)
           
 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructureEntries(long groupId, int start, int end)
           
 int getStructureEntriesCount(long groupId)
           
 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> search(long companyId, long[] groupIds, long[] classNameIds, java.lang.String keywords, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> search(long companyId, long[] groupIds, long[] classNameIds, java.lang.String name, java.lang.String description, java.lang.String storageType, int type, boolean andOperator, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
 int searchCount(long companyId, long[] groupIds, long[] classNameIds, java.lang.String keywords)
           
 int searchCount(long companyId, long[] groupIds, long[] classNameIds, java.lang.String name, java.lang.String description, java.lang.String storageType, int type, boolean andOperator)
           
protected  void syncStructureTemplatesFields(com.liferay.portlet.dynamicdatamapping.model.DDMStructure structure)
           
protected  void syncStructureTemplatesFields(com.liferay.portlet.dynamicdatamapping.model.DDMTemplate template, com.liferay.portal.kernel.xml.Element templateElement)
           
 com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateStructure(long structureId, java.util.Map<java.util.Locale,java.lang.String> nameMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, java.lang.String xsd, com.liferay.portal.service.ServiceContext serviceContext)
           
 com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateStructure(long groupId, java.lang.String structureKey, java.util.Map<java.util.Locale,java.lang.String> nameMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, java.lang.String xsd, com.liferay.portal.service.ServiceContext serviceContext)
           
protected  void validate(java.util.List<com.liferay.portal.kernel.xml.Element> elements, java.util.Set<java.lang.String> names)
           
protected  void validate(long groupId, java.lang.String structureKey, java.util.Map<java.util.Locale,java.lang.String> nameMap, java.lang.String xsd)
           
protected  void validate(java.util.Map<java.util.Locale,java.lang.String> nameMap, java.lang.String xsd)
           
protected  void validateName(java.util.Map<java.util.Locale,java.lang.String> nameMap)
           
 
Methods inherited from class com.liferay.portlet.dynamicdatamapping.service.base.DDMStructureLocalServiceBaseImpl
addDDMStructure, afterPropertiesSet, createDDMStructure, deleteDDMStructure, deleteDDMStructure, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, fetchDDMStructure, getBeanIdentifier, getCounterLocalService, getDDMContentLocalService, getDDMContentPersistence, getDDMStorageLinkLocalService, getDDMStorageLinkPersistence, getDDMStructure, getDDMStructureByUuidAndGroupId, getDDMStructureFinder, getDDMStructureLinkLocalService, getDDMStructureLinkPersistence, getDDMStructureLocalService, getDDMStructurePersistence, getDDMStructures, getDDMStructuresCount, getDDMStructureService, getDDMTemplateFinder, getDDMTemplateLocalService, getDDMTemplatePersistence, getDDMTemplateService, getDLFileEntryTypeFinder, getDLFileEntryTypeLocalService, getDLFileEntryTypePersistence, getDLFileEntryTypeService, getModelClass, getModelClassName, getPersistedModel, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, getUserFinder, getUserLocalService, getUserPersistence, getUserService, runSQL, setBeanIdentifier, setCounterLocalService, setDDMContentLocalService, setDDMContentPersistence, setDDMStorageLinkLocalService, setDDMStorageLinkPersistence, setDDMStructureFinder, setDDMStructureLinkLocalService, setDDMStructureLinkPersistence, setDDMStructureLocalService, setDDMStructurePersistence, setDDMStructureService, setDDMTemplateFinder, setDDMTemplateLocalService, setDDMTemplatePersistence, setDDMTemplateService, setDLFileEntryTypeFinder, setDLFileEntryTypeLocalService, setDLFileEntryTypePersistence, setDLFileEntryTypeService, setResourceFinder, setResourceLocalService, setResourcePersistence, setResourceService, setUserFinder, setUserLocalService, setUserPersistence, setUserService, updateDDMStructure, updateDDMStructure
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DDMStructureLocalServiceImpl

public DDMStructureLocalServiceImpl()
Method Detail

addStructure

public com.liferay.portlet.dynamicdatamapping.model.DDMStructure addStructure(long userId,
                                                                              long groupId,
                                                                              long classNameId,
                                                                              java.lang.String structureKey,
                                                                              java.util.Map<java.util.Locale,java.lang.String> nameMap,
                                                                              java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
                                                                              java.lang.String xsd,
                                                                              java.lang.String storageType,
                                                                              int type,
                                                                              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

addStructureResources

public void addStructureResources(com.liferay.portlet.dynamicdatamapping.model.DDMStructure structure,
                                  boolean addGroupPermissions,
                                  boolean addGuestPermissions)
                           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

addStructureResources

public void addStructureResources(com.liferay.portlet.dynamicdatamapping.model.DDMStructure structure,
                                  java.lang.String[] groupPermissions,
                                  java.lang.String[] guestPermissions)
                           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

copyStructure

public com.liferay.portlet.dynamicdatamapping.model.DDMStructure copyStructure(long userId,
                                                                               long structureId,
                                                                               java.util.Map<java.util.Locale,java.lang.String> nameMap,
                                                                               java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
                                                                               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

deleteStructure

public void deleteStructure(com.liferay.portlet.dynamicdatamapping.model.DDMStructure structure)
                     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

deleteStructure

public void deleteStructure(long structureId)
                     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

deleteStructure

public void deleteStructure(long groupId,
                            java.lang.String structureKey)
                     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

deleteStructures

public void deleteStructures(long groupId)
                      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

fetchStructure

public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchStructure(long structureId)
                                                                         throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

fetchStructure

public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchStructure(long groupId,
                                                                                java.lang.String structureKey)
                                                                         throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getClassStructures

public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getClassStructures(long classNameId)
                                                                                             throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getClassStructures

public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getClassStructures(long classNameId,
                                                                                                    int start,
                                                                                                    int end)
                                                                                             throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getClassStructures

public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getClassStructures(long classNameId,
                                                                                                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                                             throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getDLFileEntryTypeStructures

public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getDLFileEntryTypeStructures(long dlFileEntryTypeId)
                                                                                                       throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getStructure

public com.liferay.portlet.dynamicdatamapping.model.DDMStructure getStructure(long structureId)
                                                                       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

getStructure

public com.liferay.portlet.dynamicdatamapping.model.DDMStructure getStructure(long groupId,
                                                                              java.lang.String structureKey)
                                                                       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

getStructure

public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructure(long groupId,
                                                                                              java.lang.String name,
                                                                                              java.lang.String description)
                                                                                       throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getStructureEntries

public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructureEntries()
                                                                                              throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getStructureEntries

public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructureEntries(long groupId)
                                                                                              throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getStructureEntries

public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructureEntries(long groupId,
                                                                                                     int start,
                                                                                                     int end)
                                                                                              throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getStructureEntriesCount

public int getStructureEntriesCount(long groupId)
                             throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

search

public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> search(long companyId,
                                                                                        long[] groupIds,
                                                                                        long[] classNameIds,
                                                                                        java.lang.String keywords,
                                                                                        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

search

public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> search(long companyId,
                                                                                        long[] groupIds,
                                                                                        long[] classNameIds,
                                                                                        java.lang.String name,
                                                                                        java.lang.String description,
                                                                                        java.lang.String storageType,
                                                                                        int type,
                                                                                        boolean andOperator,
                                                                                        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

searchCount

public int searchCount(long companyId,
                       long[] groupIds,
                       long[] classNameIds,
                       java.lang.String keywords)
                throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

searchCount

public int searchCount(long companyId,
                       long[] groupIds,
                       long[] classNameIds,
                       java.lang.String name,
                       java.lang.String description,
                       java.lang.String storageType,
                       int type,
                       boolean andOperator)
                throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

updateStructure

public com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateStructure(long structureId,
                                                                                 java.util.Map<java.util.Locale,java.lang.String> nameMap,
                                                                                 java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
                                                                                 java.lang.String xsd,
                                                                                 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

updateStructure

public com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateStructure(long groupId,
                                                                                 java.lang.String structureKey,
                                                                                 java.util.Map<java.util.Locale,java.lang.String> nameMap,
                                                                                 java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
                                                                                 java.lang.String xsd,
                                                                                 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

appendNewStructureRequiredFields

protected void appendNewStructureRequiredFields(com.liferay.portlet.dynamicdatamapping.model.DDMStructure structure,
                                                com.liferay.portal.kernel.xml.Document templateDocument)

doUpdateStructure

protected com.liferay.portlet.dynamicdatamapping.model.DDMStructure doUpdateStructure(java.util.Map<java.util.Locale,java.lang.String> nameMap,
                                                                                      java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
                                                                                      java.lang.String xsd,
                                                                                      com.liferay.portal.service.ServiceContext serviceContext,
                                                                                      com.liferay.portlet.dynamicdatamapping.model.DDMStructure structure)
                                                                               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

syncStructureTemplatesFields

protected void syncStructureTemplatesFields(com.liferay.portlet.dynamicdatamapping.model.DDMStructure structure)
                                     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

syncStructureTemplatesFields

protected void syncStructureTemplatesFields(com.liferay.portlet.dynamicdatamapping.model.DDMTemplate template,
                                            com.liferay.portal.kernel.xml.Element templateElement)
                                     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

validate

protected void validate(java.util.List<com.liferay.portal.kernel.xml.Element> elements,
                        java.util.Set<java.lang.String> names)
                 throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

validate

protected void validate(long groupId,
                        java.lang.String structureKey,
                        java.util.Map<java.util.Locale,java.lang.String> nameMap,
                        java.lang.String xsd)
                 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

validate

protected void validate(java.util.Map<java.util.Locale,java.lang.String> nameMap,
                        java.lang.String xsd)
                 throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

validateName

protected void validateName(java.util.Map<java.util.Locale,java.lang.String> nameMap)
                     throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException