Liferay 7.0-ce-m3

com.liferay.portlet.dynamicdatamapping.service
Class DDMStructureLocalServiceWrapper

java.lang.Object
  extended by com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalServiceWrapper
All Implemented Interfaces:
BaseLocalService, PersistedModelLocalService, ServiceWrapper<DDMStructureLocalService>, DDMStructureLocalService

@ProviderType
public class DDMStructureLocalServiceWrapper
extends Object
implements DDMStructureLocalService, ServiceWrapper<DDMStructureLocalService>

Provides a wrapper for DDMStructureLocalService.

See Also:
DDMStructureLocalService
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
DDMStructureLocalServiceWrapper(DDMStructureLocalService ddmStructureLocalService)
           
 
Method Summary
 DDMStructure addDDMStructure(DDMStructure ddmStructure)
          Adds the d d m structure to the database.
 void addDLFileEntryTypeDDMStructure(long fileEntryTypeId, DDMStructure ddmStructure)
           
 void addDLFileEntryTypeDDMStructure(long fileEntryTypeId, long structureId)
           
 void addDLFileEntryTypeDDMStructures(long fileEntryTypeId, List<DDMStructure> DDMStructures)
           
 void addDLFileEntryTypeDDMStructures(long fileEntryTypeId, long[] structureIds)
           
 void addJournalFolderDDMStructure(long folderId, DDMStructure ddmStructure)
           
 void addJournalFolderDDMStructure(long folderId, long structureId)
           
 void addJournalFolderDDMStructures(long folderId, List<DDMStructure> DDMStructures)
           
 void addJournalFolderDDMStructures(long folderId, long[] structureIds)
           
 DDMStructure addStructure(long userId, long groupId, long parentStructureId, long classNameId, String structureKey, Map<Locale,String> nameMap, Map<Locale,String> descriptionMap, DDMForm ddmForm, String storageType, int type, ServiceContext serviceContext)
           
 DDMStructure addStructure(long userId, long groupId, long parentStructureId, long classNameId, String structureKey, Map<Locale,String> nameMap, Map<Locale,String> descriptionMap, String definition, String storageType, int type, ServiceContext serviceContext)
          Deprecated. As of 7.0.0, replaced by addStructure(long, long, long, long, String, Map, Map, DDMForm, String, int, ServiceContext)
 DDMStructure addStructure(long userId, long groupId, long classNameId, Map<Locale,String> nameMap, Map<Locale,String> descriptionMap, DDMForm ddmForm, ServiceContext serviceContext)
           
 DDMStructure addStructure(long userId, long groupId, long classNameId, Map<Locale,String> nameMap, Map<Locale,String> descriptionMap, String definition, ServiceContext serviceContext)
          Deprecated. As of 7.0.0, replaced by addStructure(long, long, long, Map, Map, DDMForm, ServiceContext)
 DDMStructure addStructure(long userId, long groupId, String parentStructureKey, long classNameId, String structureKey, Map<Locale,String> nameMap, Map<Locale,String> descriptionMap, DDMForm ddmForm, String storageType, int type, ServiceContext serviceContext)
           
 DDMStructure addStructure(long userId, long groupId, String parentStructureKey, long classNameId, String structureKey, Map<Locale,String> nameMap, Map<Locale,String> descriptionMap, String definition, String storageType, int type, ServiceContext serviceContext)
          Deprecated. As of 7.0.0, replaced by addStructure(long, long, String, long, String, Map, Map, DDMForm, String, int, ServiceContext)
 void addStructureResources(DDMStructure structure, boolean addGroupPermissions, boolean addGuestPermissions)
          Adds the resources to the structure.
 void addStructureResources(DDMStructure structure, String[] groupPermissions, String[] guestPermissions)
          Adds the model resources with the permissions to the structure.
 void clearDLFileEntryTypeDDMStructures(long fileEntryTypeId)
           
 void clearJournalFolderDDMStructures(long folderId)
           
 DDMStructure copyStructure(long userId, long structureId, Map<Locale,String> nameMap, Map<Locale,String> descriptionMap, ServiceContext serviceContext)
          Copies a structure, creating a new structure with all the values extracted from the original one.
 DDMStructure copyStructure(long userId, long structureId, ServiceContext serviceContext)
           
 DDMStructure createDDMStructure(long structureId)
          Creates a new d d m structure with the primary key.
 DDMStructure deleteDDMStructure(DDMStructure ddmStructure)
          Deletes the d d m structure from the database.
 DDMStructure deleteDDMStructure(long structureId)
          Deletes the d d m structure with the primary key from the database.
 void deleteDLFileEntryTypeDDMStructure(long fileEntryTypeId, DDMStructure ddmStructure)
           
 void deleteDLFileEntryTypeDDMStructure(long fileEntryTypeId, long structureId)
           
 void deleteDLFileEntryTypeDDMStructures(long fileEntryTypeId, List<DDMStructure> DDMStructures)
           
 void deleteDLFileEntryTypeDDMStructures(long fileEntryTypeId, long[] structureIds)
           
 void deleteJournalFolderDDMStructure(long folderId, DDMStructure ddmStructure)
           
 void deleteJournalFolderDDMStructure(long folderId, long structureId)
           
 void deleteJournalFolderDDMStructures(long folderId, List<DDMStructure> DDMStructures)
           
 void deleteJournalFolderDDMStructures(long folderId, long[] structureIds)
           
 PersistedModel deletePersistedModel(PersistedModel persistedModel)
           
 void deleteStructure(DDMStructure structure)
          Deletes the structure and its resources.
 void deleteStructure(long structureId)
          Deletes the structure and its resources.
 void deleteStructure(long groupId, long classNameId, String structureKey)
          Deletes the matching structure and its resources.
 void deleteStructures(long groupId)
          Deletes all the structures of the group.
 void deleteStructures(long groupId, long classNameId)
           
 DynamicQuery dynamicQuery()
           
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
<T> List<T>
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.
 DDMStructure fetchDDMStructure(long structureId)
           
 DDMStructure fetchDDMStructureByUuidAndGroupId(String uuid, long groupId)
          Returns the d d m structure matching the UUID and group.
 DDMStructure fetchStructure(long structureId)
          Returns the structure with the ID.
 DDMStructure fetchStructure(long groupId, long classNameId, String structureKey)
          Returns the structure matching the class name ID, structure key, and group.
 DDMStructure fetchStructure(long groupId, long classNameId, String structureKey, boolean includeAncestorStructures)
          Returns the structure matching the class name ID, structure key, and group, optionally searching ancestor sites (that have sharing enabled) and global scoped sites.
 ActionableDynamicQuery getActionableDynamicQuery()
           
 String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
 List<DDMStructure> getClassStructures(long classNameId)
          Deprecated. As of 6.2.0, replaced by getClassStructures(long, long)
 List<DDMStructure> getClassStructures(long classNameId, int start, int end)
          Deprecated. As of 6.2.0, replaced by getClassStructures(long, long, int, int)
 List<DDMStructure> getClassStructures(long companyId, long classNameId)
          Returns all the structures matching the class name ID.
 List<DDMStructure> getClassStructures(long companyId, long classNameId, int start, int end)
          Returns a range of all the structures matching the class name ID.
 List<DDMStructure> getClassStructures(long companyId, long classNameId, OrderByComparator<DDMStructure> orderByComparator)
          Returns all the structures matching the class name ID ordered by the comparator.
 List<DDMStructure> getClassStructures(long classNameId, OrderByComparator<DDMStructure> orderByComparator)
          Deprecated. As of 6.2.0, replaced by getClassStructures(long, long, OrderByComparator)
 DDMStructure getDDMStructure(long structureId)
          Returns the d d m structure with the primary key.
 DDMStructure getDDMStructureByUuidAndGroupId(String uuid, long groupId)
          Returns the d d m structure matching the UUID and group.
 List<DDMStructure> getDDMStructures(int start, int end)
          Returns a range of all the d d m structures.
 List<DDMStructure> getDDMStructuresByUuidAndCompanyId(String uuid, long companyId)
          Returns all the d d m structures matching the UUID and company.
 List<DDMStructure> getDDMStructuresByUuidAndCompanyId(String uuid, long companyId, int start, int end, OrderByComparator<DDMStructure> orderByComparator)
          Returns a range of d d m structures matching the UUID and company.
 int getDDMStructuresCount()
          Returns the number of d d m structures.
 List<DDMStructure> getDLFileEntryTypeDDMStructures(long fileEntryTypeId)
           
 List<DDMStructure> getDLFileEntryTypeDDMStructures(long fileEntryTypeId, int start, int end)
           
 List<DDMStructure> getDLFileEntryTypeDDMStructures(long fileEntryTypeId, int start, int end, OrderByComparator<DDMStructure> orderByComparator)
           
 int getDLFileEntryTypeDDMStructuresCount(long fileEntryTypeId)
           
 long[] getDLFileEntryTypePrimaryKeys(long structureId)
          Returns the fileEntryTypeIds of the document library file entry types associated with the d d m structure.
 List<DDMStructure> getDLFileEntryTypeStructures(long dlFileEntryTypeId)
          Returns all the structures for the document library file entry type.
 ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)
           
 List<DDMStructure> getJournalFolderDDMStructures(long folderId)
           
 List<DDMStructure> getJournalFolderDDMStructures(long folderId, int start, int end)
           
 List<DDMStructure> getJournalFolderDDMStructures(long folderId, int start, int end, OrderByComparator<DDMStructure> orderByComparator)
           
 int getJournalFolderDDMStructuresCount(long folderId)
           
 long[] getJournalFolderPrimaryKeys(long structureId)
          Returns the folderIds of the journal folders associated with the d d m structure.
 List<DDMStructure> getJournalFolderStructures(long[] groupIds, long journalFolderId, int restrictionType)
           
 PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
 DDMStructure getStructure(long structureId)
          Returns the structure with the ID.
 DDMStructure getStructure(long groupId, long classNameId, String structureKey)
          Returns the structure matching the class name ID, structure key, and group.
 DDMStructure getStructure(long groupId, long classNameId, String structureKey, boolean includeAncestorStructures)
          Returns the structure matching the class name ID, structure key, and group, optionally searching ancestor sites (that have sharing enabled) and global scoped sites.
 List<DDMStructure> getStructure(long groupId, String name, String description)
          Returns all the structures matching the group, name, and description.
 List<DDMStructure> getStructureEntries()
          Deprecated. As of 6.2.0, replaced by getStructures()
 List<DDMStructure> getStructureEntries(long groupId)
          Deprecated. As of 6.2.0, replaced by getStructures(long)
 List<DDMStructure> getStructureEntries(long groupId, int start, int end)
          Deprecated. As of 6.2.0, replaced by getStructures(long, int, int)
 List<DDMStructure> getStructures()
          Returns all the structures present in the system.
 List<DDMStructure> getStructures(long groupId)
          Returns all the structures present in the group.
 List<DDMStructure> getStructures(long[] groupIds)
          Returns all the structures belonging to the groups.
 List<DDMStructure> getStructures(long[] groupIds, long classNameId)
          Returns all the structures matching the class name ID and belonging to the groups.
 List<DDMStructure> getStructures(long[] groupIds, long classNameId, int start, int end)
          Returns a range of all the structures matching the class name ID and belonging to the groups.
 List<DDMStructure> getStructures(long groupId, int start, int end)
          Returns a range of all the structures belonging to the group.
 List<DDMStructure> getStructures(long groupId, long classNameId)
          Returns all the structures matching class name ID and group.
 List<DDMStructure> getStructures(long groupId, long classNameId, int start, int end)
          Returns a range of all the structures that match the class name ID and group.
 List<DDMStructure> getStructures(long groupId, long classNameId, int start, int end, OrderByComparator<DDMStructure> orderByComparator)
          Returns an ordered range of all the structures matching the class name ID and group.
 List<DDMStructure> getStructures(long groupId, String name, String description)
           
 int getStructuresCount(long groupId)
          Returns the number of structures belonging to the group.
 int getStructuresCount(long[] groupIds, long classNameId)
          Returns the number of structures matching the class name ID and belonging to the groups.
 int getStructuresCount(long groupId, long classNameId)
          Returns the number of structures matching the class name ID and group.
 DDMStructureLocalService getWrappedDDMStructureLocalService()
          Deprecated. As of 6.1.0, replaced by getWrappedService()
 DDMStructureLocalService getWrappedService()
           
 boolean hasDLFileEntryTypeDDMStructure(long fileEntryTypeId, long structureId)
           
 boolean hasDLFileEntryTypeDDMStructures(long fileEntryTypeId)
           
 boolean hasJournalFolderDDMStructure(long folderId, long structureId)
           
 boolean hasJournalFolderDDMStructures(long folderId)
           
 List<DDMStructure> search(long companyId, long[] groupIds, long[] classNameIds, String keywords, int start, int end, OrderByComparator<DDMStructure> orderByComparator)
          Returns an ordered range of all the structures matching the groups and class name IDs, and matching the keywords in the structure names and descriptions.
 List<DDMStructure> search(long companyId, long[] groupIds, long[] classNameIds, String name, String description, String storageType, int type, boolean andOperator, int start, int end, OrderByComparator<DDMStructure> orderByComparator)
          Returns an ordered range of all the structures matching the groups, class name IDs, name keyword, description keyword, storage type, and type.
 int searchCount(long companyId, long[] groupIds, long[] classNameIds, String keywords)
          Returns the number of structures matching the groups and class name IDs, and matching the keywords in the structure names and descriptions.
 int searchCount(long companyId, long[] groupIds, long[] classNameIds, String name, String description, String storageType, int type, boolean andOperator)
          Returns the number of structures matching the groups, class name IDs, name keyword, description keyword, storage type, and type
 void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 void setDLFileEntryTypeDDMStructures(long fileEntryTypeId, long[] structureIds)
           
 void setJournalFolderDDMStructures(long folderId, long[] structureIds)
           
 void setWrappedDDMStructureLocalService(DDMStructureLocalService ddmStructureLocalService)
          Deprecated. As of 6.1.0, replaced by setWrappedService(com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService)
 void setWrappedService(DDMStructureLocalService ddmStructureLocalService)
           
 DDMStructure updateDDMForm(long structureId, DDMForm ddmForm, ServiceContext serviceContext)
           
 DDMStructure updateDDMStructure(DDMStructure ddmStructure)
          Updates the d d m structure in the database or adds it if it does not yet exist.
 DDMStructure updateStructure(long groupId, long parentStructureId, long classNameId, String structureKey, Map<Locale,String> nameMap, Map<Locale,String> descriptionMap, DDMForm ddmForm, ServiceContext serviceContext)
           
 DDMStructure updateStructure(long groupId, long parentStructureId, long classNameId, String structureKey, Map<Locale,String> nameMap, Map<Locale,String> descriptionMap, String definition, ServiceContext serviceContext)
          Deprecated. As of 7.0.0, replaced by updateStructure(long, long, long, String, Map, Map, DDMForm, ServiceContext)
 DDMStructure updateStructure(long structureId, long parentStructureId, Map<Locale,String> nameMap, Map<Locale,String> descriptionMap, DDMForm ddmForm, ServiceContext serviceContext)
           
 DDMStructure updateStructure(long structureId, long parentStructureId, Map<Locale,String> nameMap, Map<Locale,String> descriptionMap, String definition, ServiceContext serviceContext)
          Deprecated. As of 7.0.0, replaced by updateStructure(long, long, Map, Map, DDMForm, ServiceContext)
 DDMStructure updateXSD(long structureId, String definition, ServiceContext serviceContext)
          Deprecated. As of 7.0.0, replaced by #updateDDMForm(long, String, ServiceContext)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DDMStructureLocalServiceWrapper

public DDMStructureLocalServiceWrapper(DDMStructureLocalService ddmStructureLocalService)
Method Detail

addDDMStructure

public DDMStructure addDDMStructure(DDMStructure ddmStructure)
Adds the d d m structure to the database. Also notifies the appropriate model listeners.

Specified by:
addDDMStructure in interface DDMStructureLocalService
Parameters:
ddmStructure - the d d m structure
Returns:
the d d m structure that was added

addDLFileEntryTypeDDMStructure

public void addDLFileEntryTypeDDMStructure(long fileEntryTypeId,
                                           DDMStructure ddmStructure)
Specified by:
addDLFileEntryTypeDDMStructure in interface DDMStructureLocalService

addDLFileEntryTypeDDMStructure

public void addDLFileEntryTypeDDMStructure(long fileEntryTypeId,
                                           long structureId)
Specified by:
addDLFileEntryTypeDDMStructure in interface DDMStructureLocalService

addDLFileEntryTypeDDMStructures

public void addDLFileEntryTypeDDMStructures(long fileEntryTypeId,
                                            List<DDMStructure> DDMStructures)
Specified by:
addDLFileEntryTypeDDMStructures in interface DDMStructureLocalService

addDLFileEntryTypeDDMStructures

public void addDLFileEntryTypeDDMStructures(long fileEntryTypeId,
                                            long[] structureIds)
Specified by:
addDLFileEntryTypeDDMStructures in interface DDMStructureLocalService

addJournalFolderDDMStructure

public void addJournalFolderDDMStructure(long folderId,
                                         DDMStructure ddmStructure)
Specified by:
addJournalFolderDDMStructure in interface DDMStructureLocalService

addJournalFolderDDMStructure

public void addJournalFolderDDMStructure(long folderId,
                                         long structureId)
Specified by:
addJournalFolderDDMStructure in interface DDMStructureLocalService

addJournalFolderDDMStructures

public void addJournalFolderDDMStructures(long folderId,
                                          List<DDMStructure> DDMStructures)
Specified by:
addJournalFolderDDMStructures in interface DDMStructureLocalService

addJournalFolderDDMStructures

public void addJournalFolderDDMStructures(long folderId,
                                          long[] structureIds)
Specified by:
addJournalFolderDDMStructures in interface DDMStructureLocalService

addStructure

public DDMStructure addStructure(long userId,
                                 long groupId,
                                 long classNameId,
                                 Map<Locale,String> nameMap,
                                 Map<Locale,String> descriptionMap,
                                 DDMForm ddmForm,
                                 ServiceContext serviceContext)
                          throws PortalException
Specified by:
addStructure in interface DDMStructureLocalService
Throws:
PortalException

addStructure

@Deprecated
public DDMStructure addStructure(long userId,
                                            long groupId,
                                            long classNameId,
                                            Map<Locale,String> nameMap,
                                            Map<Locale,String> descriptionMap,
                                            String definition,
                                            ServiceContext serviceContext)
                          throws PortalException
Deprecated. As of 7.0.0, replaced by addStructure(long, long, long, Map, Map, DDMForm, ServiceContext)

Adds a structure referencing a default parent structure, using the portal property dynamic.data.lists.storage.type storage type and default structure type.

Specified by:
addStructure in interface DDMStructureLocalService
Parameters:
userId - the primary key of the structure's creator/owner
groupId - the primary key of the group
classNameId - the primary key of the class name for the structure's related model
nameMap - the structure's locales and localized names
descriptionMap - the structure's locales and localized descriptions
definition - the structure's XML schema definition
serviceContext - the service context to be applied. Can set the UUID, creation date, modification date, guest permissions, and group permissions for the structure.
Returns:
the structure
Throws:
PortalException - if a user with the primary key could not be found, if the XSD was not well-formed, or if a portal exception occurred

addStructure

public DDMStructure addStructure(long userId,
                                 long groupId,
                                 long parentStructureId,
                                 long classNameId,
                                 String structureKey,
                                 Map<Locale,String> nameMap,
                                 Map<Locale,String> descriptionMap,
                                 DDMForm ddmForm,
                                 String storageType,
                                 int type,
                                 ServiceContext serviceContext)
                          throws PortalException
Specified by:
addStructure in interface DDMStructureLocalService
Throws:
PortalException

addStructure

@Deprecated
public DDMStructure addStructure(long userId,
                                            long groupId,
                                            long parentStructureId,
                                            long classNameId,
                                            String structureKey,
                                            Map<Locale,String> nameMap,
                                            Map<Locale,String> descriptionMap,
                                            String definition,
                                            String storageType,
                                            int type,
                                            ServiceContext serviceContext)
                          throws PortalException
Deprecated. As of 7.0.0, replaced by addStructure(long, long, long, long, String, Map, Map, DDMForm, String, int, ServiceContext)

Adds a structure referencing its parent structure.

Specified by:
addStructure in interface DDMStructureLocalService
Parameters:
userId - the primary key of the structure's creator/owner
groupId - the primary key of the group
parentStructureId - the primary key of the parent structure (optionally DDMStructureConstants.DEFAULT_PARENT_STRUCTURE_ID)
classNameId - the primary key of the class name for the structure's related model
structureKey - the unique string identifying the structure (optionally null)
nameMap - the structure's locales and localized names
descriptionMap - the structure's locales and localized descriptions
definition - the structure's XML schema definition
storageType - the structure's storage type. It can be "xml" or "expando". For more information, see StorageType.
type - the structure's type. For more information, see DDMStructureConstants.
serviceContext - the service context to be applied. Can set the UUID, creation date, modification date, guest permissions, and group permissions for the structure.
Returns:
the structure
Throws:
PortalException - if a user with the primary key could not be found, if the XSD was not well-formed, or if a portal exception occurred

addStructure

public DDMStructure addStructure(long userId,
                                 long groupId,
                                 String parentStructureKey,
                                 long classNameId,
                                 String structureKey,
                                 Map<Locale,String> nameMap,
                                 Map<Locale,String> descriptionMap,
                                 DDMForm ddmForm,
                                 String storageType,
                                 int type,
                                 ServiceContext serviceContext)
                          throws PortalException
Specified by:
addStructure in interface DDMStructureLocalService
Throws:
PortalException

addStructure

@Deprecated
public DDMStructure addStructure(long userId,
                                            long groupId,
                                            String parentStructureKey,
                                            long classNameId,
                                            String structureKey,
                                            Map<Locale,String> nameMap,
                                            Map<Locale,String> descriptionMap,
                                            String definition,
                                            String storageType,
                                            int type,
                                            ServiceContext serviceContext)
                          throws PortalException
Deprecated. As of 7.0.0, replaced by addStructure(long, long, String, long, String, Map, Map, DDMForm, String, int, ServiceContext)

Adds a structure referencing a default parent structure if the parent structure is not found.

Specified by:
addStructure in interface DDMStructureLocalService
Parameters:
userId - the primary key of the structure's creator/owner
groupId - the primary key of the group
parentStructureKey - the unique string identifying the parent structure (optionally null)
classNameId - the primary key of the class name for the structure's related model
structureKey - the unique string identifying the structure (optionally null)
nameMap - the structure's locales and localized names
descriptionMap - the structure's locales and localized descriptions
definition - the structure's XML schema definition
storageType - the structure's storage type. It can be "xml" or "expando". For more information, see StorageType.
type - the structure's type. For more information, see DDMStructureConstants.
serviceContext - the service context to be applied. Can set the UUID, creation date, modification date, guest permissions and group permissions for the structure.
Returns:
the structure
Throws:
PortalException - if a user with the primary key could not be found, if the XSD was not well-formed, or if a portal exception occurred

addStructureResources

public void addStructureResources(DDMStructure structure,
                                  boolean addGroupPermissions,
                                  boolean addGuestPermissions)
                           throws PortalException
Adds the resources to the structure.

Specified by:
addStructureResources in interface DDMStructureLocalService
Parameters:
structure - the structure to add resources to
addGroupPermissions - whether to add group permissions
addGuestPermissions - whether to add guest permissions
Throws:
PortalException - if a portal exception occurred

addStructureResources

public void addStructureResources(DDMStructure structure,
                                  String[] groupPermissions,
                                  String[] guestPermissions)
                           throws PortalException
Adds the model resources with the permissions to the structure.

Specified by:
addStructureResources in interface DDMStructureLocalService
Parameters:
structure - the structure to add resources to
groupPermissions - the group permissions to be added
guestPermissions - the guest permissions to be added
Throws:
PortalException - if a portal exception occurred

clearDLFileEntryTypeDDMStructures

public void clearDLFileEntryTypeDDMStructures(long fileEntryTypeId)
Specified by:
clearDLFileEntryTypeDDMStructures in interface DDMStructureLocalService

clearJournalFolderDDMStructures

public void clearJournalFolderDDMStructures(long folderId)
Specified by:
clearJournalFolderDDMStructures in interface DDMStructureLocalService

copyStructure

public DDMStructure copyStructure(long userId,
                                  long structureId,
                                  Map<Locale,String> nameMap,
                                  Map<Locale,String> descriptionMap,
                                  ServiceContext serviceContext)
                           throws PortalException
Copies a structure, creating a new structure with all the values extracted from the original one. The new structure supports a new name and description.

Specified by:
copyStructure in interface DDMStructureLocalService
Parameters:
userId - the primary key of the structure's creator/owner
structureId - the primary key of the structure to be copied
nameMap - the new structure's locales and localized names
descriptionMap - the new structure's locales and localized descriptions
serviceContext - the service context to be applied. Can set the UUID, creation date, modification date, guest permissions, and group permissions for the structure.
Returns:
the new structure
Throws:
PortalException - if a portal exception occurred

copyStructure

public DDMStructure copyStructure(long userId,
                                  long structureId,
                                  ServiceContext serviceContext)
                           throws PortalException
Specified by:
copyStructure in interface DDMStructureLocalService
Throws:
PortalException

createDDMStructure

public DDMStructure createDDMStructure(long structureId)
Creates a new d d m structure with the primary key. Does not add the d d m structure to the database.

Specified by:
createDDMStructure in interface DDMStructureLocalService
Parameters:
structureId - the primary key for the new d d m structure
Returns:
the new d d m structure

deleteDDMStructure

public DDMStructure deleteDDMStructure(DDMStructure ddmStructure)
Deletes the d d m structure from the database. Also notifies the appropriate model listeners.

Specified by:
deleteDDMStructure in interface DDMStructureLocalService
Parameters:
ddmStructure - the d d m structure
Returns:
the d d m structure that was removed

deleteDDMStructure

public DDMStructure deleteDDMStructure(long structureId)
                                throws PortalException
Deletes the d d m structure with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
deleteDDMStructure in interface DDMStructureLocalService
Parameters:
structureId - the primary key of the d d m structure
Returns:
the d d m structure that was removed
Throws:
PortalException - if a d d m structure with the primary key could not be found

deleteDLFileEntryTypeDDMStructure

public void deleteDLFileEntryTypeDDMStructure(long fileEntryTypeId,
                                              DDMStructure ddmStructure)
Specified by:
deleteDLFileEntryTypeDDMStructure in interface DDMStructureLocalService

deleteDLFileEntryTypeDDMStructure

public void deleteDLFileEntryTypeDDMStructure(long fileEntryTypeId,
                                              long structureId)
Specified by:
deleteDLFileEntryTypeDDMStructure in interface DDMStructureLocalService

deleteDLFileEntryTypeDDMStructures

public void deleteDLFileEntryTypeDDMStructures(long fileEntryTypeId,
                                               List<DDMStructure> DDMStructures)
Specified by:
deleteDLFileEntryTypeDDMStructures in interface DDMStructureLocalService

deleteDLFileEntryTypeDDMStructures

public void deleteDLFileEntryTypeDDMStructures(long fileEntryTypeId,
                                               long[] structureIds)
Specified by:
deleteDLFileEntryTypeDDMStructures in interface DDMStructureLocalService

deleteJournalFolderDDMStructure

public void deleteJournalFolderDDMStructure(long folderId,
                                            DDMStructure ddmStructure)
Specified by:
deleteJournalFolderDDMStructure in interface DDMStructureLocalService

deleteJournalFolderDDMStructure

public void deleteJournalFolderDDMStructure(long folderId,
                                            long structureId)
Specified by:
deleteJournalFolderDDMStructure in interface DDMStructureLocalService

deleteJournalFolderDDMStructures

public void deleteJournalFolderDDMStructures(long folderId,
                                             List<DDMStructure> DDMStructures)
Specified by:
deleteJournalFolderDDMStructures in interface DDMStructureLocalService

deleteJournalFolderDDMStructures

public void deleteJournalFolderDDMStructures(long folderId,
                                             long[] structureIds)
Specified by:
deleteJournalFolderDDMStructures in interface DDMStructureLocalService

deletePersistedModel

public PersistedModel deletePersistedModel(PersistedModel persistedModel)
                                    throws PortalException
Specified by:
deletePersistedModel in interface PersistedModelLocalService
Specified by:
deletePersistedModel in interface DDMStructureLocalService
Throws:
PortalException

deleteStructure

public void deleteStructure(long groupId,
                            long classNameId,
                            String structureKey)
                     throws PortalException
Deletes the matching structure and its resources.

Before deleting the structure, the system verifies whether the structure is required by another entity. If it is needed, an exception is thrown.

Specified by:
deleteStructure in interface DDMStructureLocalService
Parameters:
groupId - the primary key of the group
classNameId - the primary key of the class name for the structure's related model
structureKey - the unique string identifying the structure
Throws:
PortalException - if a portal exception occurred

deleteStructure

public void deleteStructure(DDMStructure structure)
                     throws PortalException
Deletes the structure and its resources.

Before deleting the structure, this method verifies whether the structure is required by another entity. If it is needed, an exception is thrown.

Specified by:
deleteStructure in interface DDMStructureLocalService
Parameters:
structure - the structure to be deleted
Throws:
PortalException - if a portal exception occurred

deleteStructure

public void deleteStructure(long structureId)
                     throws PortalException
Deletes the structure and its resources.

Before deleting the structure, the system verifies whether the structure is required by another entity. If it is needed, an exception is thrown.

Specified by:
deleteStructure in interface DDMStructureLocalService
Parameters:
structureId - the primary key of the structure to be deleted
Throws:
PortalException - if a portal exception occurred

deleteStructures

public void deleteStructures(long groupId)
                      throws PortalException
Deletes all the structures of the group.

Before deleting the structures, the system verifies whether each structure is required by another entity. If any of the structures are needed, an exception is thrown.

Specified by:
deleteStructures in interface DDMStructureLocalService
Parameters:
groupId - the primary key of the group
Throws:
PortalException - if a portal exception occurred

deleteStructures

public void deleteStructures(long groupId,
                             long classNameId)
                      throws PortalException
Specified by:
deleteStructures in interface DDMStructureLocalService
Throws:
PortalException

dynamicQuery

public DynamicQuery dynamicQuery()
Specified by:
dynamicQuery in interface DDMStructureLocalService

dynamicQuery

public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.

Specified by:
dynamicQuery in interface DDMStructureLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the matching rows

dynamicQuery

public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
                                int start,
                                int end)
Performs a dynamic query on the database and returns a range of the matching rows.

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 DDMStructureModelImpl. 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.

Specified by:
dynamicQuery in interface DDMStructureLocalService
Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
Returns:
the range of matching rows

dynamicQuery

public <T> List<T> 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.

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 DDMStructureModelImpl. 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.

Specified by:
dynamicQuery in interface DDMStructureLocalService
Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching rows

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.

Specified by:
dynamicQueryCount in interface DDMStructureLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the number of rows matching the dynamic query

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery,
                              Projection projection)
Returns the number of rows matching the dynamic query.

Specified by:
dynamicQueryCount in interface DDMStructureLocalService
Parameters:
dynamicQuery - the dynamic query
projection - the projection to apply to the query
Returns:
the number of rows matching the dynamic query

fetchDDMStructure

public DDMStructure fetchDDMStructure(long structureId)
Specified by:
fetchDDMStructure in interface DDMStructureLocalService

fetchDDMStructureByUuidAndGroupId

public DDMStructure fetchDDMStructureByUuidAndGroupId(String uuid,
                                                      long groupId)
Returns the d d m structure matching the UUID and group.

Specified by:
fetchDDMStructureByUuidAndGroupId in interface DDMStructureLocalService
Parameters:
uuid - the d d m structure's UUID
groupId - the primary key of the group
Returns:
the matching d d m structure, or null if a matching d d m structure could not be found

fetchStructure

public DDMStructure fetchStructure(long groupId,
                                   long classNameId,
                                   String structureKey)
Returns the structure matching the class name ID, structure key, and group.

Specified by:
fetchStructure in interface DDMStructureLocalService
Parameters:
groupId - the primary key of the group
classNameId - the primary key of the class name for the structure's related model
structureKey - the unique string identifying the structure
Returns:
the matching structure, or null if a matching structure could not be found

fetchStructure

public DDMStructure fetchStructure(long groupId,
                                   long classNameId,
                                   String structureKey,
                                   boolean includeAncestorStructures)
                            throws PortalException
Returns the structure matching the class name ID, structure key, and group, optionally searching ancestor sites (that have sharing enabled) and global scoped sites.

This method first searches in the group. If the structure is still not found and includeAncestorStructures is set to true, this method searches the group's ancestor sites (that have sharing enabled) and lastly searches global scoped sites.

Specified by:
fetchStructure in interface DDMStructureLocalService
Parameters:
groupId - the primary key of the group
classNameId - the primary key of the class name for the structure's related model
structureKey - the unique string identifying the structure
includeAncestorStructures - whether to include ancestor sites (that have sharing enabled) and include global scoped sites in the search
Returns:
the matching structure, or null if a matching structure could not be found
Throws:
PortalException - if a portal exception occurred

fetchStructure

public DDMStructure fetchStructure(long structureId)
Returns the structure with the ID.

Specified by:
fetchStructure in interface DDMStructureLocalService
Parameters:
structureId - the primary key of the structure
Returns:
the structure with the structure ID, or null if a matching structure could not be found

getActionableDynamicQuery

public ActionableDynamicQuery getActionableDynamicQuery()
Specified by:
getActionableDynamicQuery in interface DDMStructureLocalService

getBeanIdentifier

public String getBeanIdentifier()
Returns the Spring bean ID for this bean.

Specified by:
getBeanIdentifier in interface DDMStructureLocalService
Returns:
the Spring bean ID for this bean

getClassStructures

@Deprecated
public List<DDMStructure> getClassStructures(long classNameId)
Deprecated. As of 6.2.0, replaced by getClassStructures(long, long)

Specified by:
getClassStructures in interface DDMStructureLocalService

getClassStructures

@Deprecated
public List<DDMStructure> getClassStructures(long classNameId,
                                                        OrderByComparator<DDMStructure> orderByComparator)
Deprecated. As of 6.2.0, replaced by getClassStructures(long, long, OrderByComparator)

Specified by:
getClassStructures in interface DDMStructureLocalService

getClassStructures

@Deprecated
public List<DDMStructure> getClassStructures(long classNameId,
                                                        int start,
                                                        int end)
Deprecated. As of 6.2.0, replaced by getClassStructures(long, long, int, int)

Specified by:
getClassStructures in interface DDMStructureLocalService

getClassStructures

public List<DDMStructure> getClassStructures(long companyId,
                                             long classNameId)
Returns all the structures matching the class name ID.

Specified by:
getClassStructures in interface DDMStructureLocalService
Parameters:
companyId - the primary key of the structure's company
classNameId - the primary key of the class name for the structure's related model
Returns:
the structures matching the class name ID

getClassStructures

public List<DDMStructure> getClassStructures(long companyId,
                                             long classNameId,
                                             OrderByComparator<DDMStructure> orderByComparator)
Returns all the structures matching the class name ID ordered by the comparator.

Specified by:
getClassStructures in interface DDMStructureLocalService
Parameters:
companyId - the primary key of the structure's company
classNameId - the primary key of the class name for the structure's related model
orderByComparator - the comparator to order the structures (optionally null)
Returns:
the matching structures ordered by the comparator

getClassStructures

public List<DDMStructure> getClassStructures(long companyId,
                                             long classNameId,
                                             int start,
                                             int end)
Returns a range of all the structures matching the class name ID.

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.

Specified by:
getClassStructures in interface DDMStructureLocalService
Parameters:
companyId - the primary key of the structure's company
classNameId - the primary key of the class name for the structure's related model
start - the lower bound of the range of structures to return
end - the upper bound of the range of structures to return (not inclusive)
Returns:
the range of matching structures

getDDMStructure

public DDMStructure getDDMStructure(long structureId)
                             throws PortalException
Returns the d d m structure with the primary key.

Specified by:
getDDMStructure in interface DDMStructureLocalService
Parameters:
structureId - the primary key of the d d m structure
Returns:
the d d m structure
Throws:
PortalException - if a d d m structure with the primary key could not be found

getDDMStructureByUuidAndGroupId

public DDMStructure getDDMStructureByUuidAndGroupId(String uuid,
                                                    long groupId)
                                             throws PortalException
Returns the d d m structure matching the UUID and group.

Specified by:
getDDMStructureByUuidAndGroupId in interface DDMStructureLocalService
Parameters:
uuid - the d d m structure's UUID
groupId - the primary key of the group
Returns:
the matching d d m structure
Throws:
PortalException - if a matching d d m structure could not be found

getDDMStructures

public List<DDMStructure> getDDMStructures(int start,
                                           int end)
Returns a range of all the d d m structures.

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 DDMStructureModelImpl. 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.

Specified by:
getDDMStructures in interface DDMStructureLocalService
Parameters:
start - the lower bound of the range of d d m structures
end - the upper bound of the range of d d m structures (not inclusive)
Returns:
the range of d d m structures

getDDMStructuresByUuidAndCompanyId

public List<DDMStructure> getDDMStructuresByUuidAndCompanyId(String uuid,
                                                             long companyId)
Returns all the d d m structures matching the UUID and company.

Specified by:
getDDMStructuresByUuidAndCompanyId in interface DDMStructureLocalService
Parameters:
uuid - the UUID of the d d m structures
companyId - the primary key of the company
Returns:
the matching d d m structures, or an empty list if no matches were found

getDDMStructuresByUuidAndCompanyId

public List<DDMStructure> getDDMStructuresByUuidAndCompanyId(String uuid,
                                                             long companyId,
                                                             int start,
                                                             int end,
                                                             OrderByComparator<DDMStructure> orderByComparator)
Returns a range of d d m structures matching the UUID and company.

Specified by:
getDDMStructuresByUuidAndCompanyId in interface DDMStructureLocalService
Parameters:
uuid - the UUID of the d d m structures
companyId - the primary key of the company
start - the lower bound of the range of d d m structures
end - the upper bound of the range of d d m structures (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the range of matching d d m structures, or an empty list if no matches were found

getDDMStructuresCount

public int getDDMStructuresCount()
Returns the number of d d m structures.

Specified by:
getDDMStructuresCount in interface DDMStructureLocalService
Returns:
the number of d d m structures

getDLFileEntryTypeDDMStructures

public List<DDMStructure> getDLFileEntryTypeDDMStructures(long fileEntryTypeId)
Specified by:
getDLFileEntryTypeDDMStructures in interface DDMStructureLocalService

getDLFileEntryTypeDDMStructures

public List<DDMStructure> getDLFileEntryTypeDDMStructures(long fileEntryTypeId,
                                                          int start,
                                                          int end)
Specified by:
getDLFileEntryTypeDDMStructures in interface DDMStructureLocalService

getDLFileEntryTypeDDMStructures

public List<DDMStructure> getDLFileEntryTypeDDMStructures(long fileEntryTypeId,
                                                          int start,
                                                          int end,
                                                          OrderByComparator<DDMStructure> orderByComparator)
Specified by:
getDLFileEntryTypeDDMStructures in interface DDMStructureLocalService

getDLFileEntryTypeDDMStructuresCount

public int getDLFileEntryTypeDDMStructuresCount(long fileEntryTypeId)
Specified by:
getDLFileEntryTypeDDMStructuresCount in interface DDMStructureLocalService

getDLFileEntryTypePrimaryKeys

public long[] getDLFileEntryTypePrimaryKeys(long structureId)
Returns the fileEntryTypeIds of the document library file entry types associated with the d d m structure.

Specified by:
getDLFileEntryTypePrimaryKeys in interface DDMStructureLocalService
Parameters:
structureId - the structureId of the d d m structure
Returns:
long[] the fileEntryTypeIds of document library file entry types associated with the d d m structure

getDLFileEntryTypeStructures

public List<DDMStructure> getDLFileEntryTypeStructures(long dlFileEntryTypeId)
Returns all the structures for the document library file entry type.

Specified by:
getDLFileEntryTypeStructures in interface DDMStructureLocalService
Parameters:
dlFileEntryTypeId - the primary key of the document library file entry type
Returns:
the structures for the document library file entry type

getExportActionableDynamicQuery

public ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)
Specified by:
getExportActionableDynamicQuery in interface DDMStructureLocalService

getJournalFolderDDMStructures

public List<DDMStructure> getJournalFolderDDMStructures(long folderId)
Specified by:
getJournalFolderDDMStructures in interface DDMStructureLocalService

getJournalFolderDDMStructures

public List<DDMStructure> getJournalFolderDDMStructures(long folderId,
                                                        int start,
                                                        int end)
Specified by:
getJournalFolderDDMStructures in interface DDMStructureLocalService

getJournalFolderDDMStructures

public List<DDMStructure> getJournalFolderDDMStructures(long folderId,
                                                        int start,
                                                        int end,
                                                        OrderByComparator<DDMStructure> orderByComparator)
Specified by:
getJournalFolderDDMStructures in interface DDMStructureLocalService

getJournalFolderDDMStructuresCount

public int getJournalFolderDDMStructuresCount(long folderId)
Specified by:
getJournalFolderDDMStructuresCount in interface DDMStructureLocalService

getJournalFolderPrimaryKeys

public long[] getJournalFolderPrimaryKeys(long structureId)
Returns the folderIds of the journal folders associated with the d d m structure.

Specified by:
getJournalFolderPrimaryKeys in interface DDMStructureLocalService
Parameters:
structureId - the structureId of the d d m structure
Returns:
long[] the folderIds of journal folders associated with the d d m structure

getJournalFolderStructures

public List<DDMStructure> getJournalFolderStructures(long[] groupIds,
                                                     long journalFolderId,
                                                     int restrictionType)
                                              throws PortalException
Specified by:
getJournalFolderStructures in interface DDMStructureLocalService
Throws:
PortalException

getPersistedModel

public PersistedModel getPersistedModel(Serializable primaryKeyObj)
                                 throws PortalException
Specified by:
getPersistedModel in interface PersistedModelLocalService
Specified by:
getPersistedModel in interface DDMStructureLocalService
Throws:
PortalException

getStructure

public DDMStructure getStructure(long groupId,
                                 long classNameId,
                                 String structureKey)
                          throws PortalException
Returns the structure matching the class name ID, structure key, and group.

Specified by:
getStructure in interface DDMStructureLocalService
Parameters:
groupId - the primary key of the structure's group
classNameId - the primary key of the class name for the structure's related model
structureKey - the unique string identifying the structure
Returns:
the matching structure
Throws:
PortalException - if a matching structure could not be found

getStructure

public DDMStructure getStructure(long groupId,
                                 long classNameId,
                                 String structureKey,
                                 boolean includeAncestorStructures)
                          throws PortalException
Returns the structure matching the class name ID, structure key, and group, optionally searching ancestor sites (that have sharing enabled) and global scoped sites.

This method first searches in the group. If the structure is still not found and includeAncestorStructures is set to true, this method searches the group's ancestor sites (that have sharing enabled) and lastly searches global scoped sites.

Specified by:
getStructure in interface DDMStructureLocalService
Parameters:
groupId - the primary key of the structure's group
classNameId - the primary key of the class name for the structure's related model
structureKey - the unique string identifying the structure
includeAncestorStructures - whether to include ancestor sites (that have sharing enabled) and include global scoped sites in the search in the search
Returns:
the matching structure
Throws:
PortalException - if a matching structure could not be found

getStructure

public List<DDMStructure> getStructure(long groupId,
                                       String name,
                                       String description)
Returns all the structures matching the group, name, and description.

Specified by:
getStructure in interface DDMStructureLocalService
Parameters:
groupId - the primary key of the structure's group
name - the structure's name
description - the structure's description
Returns:
the matching structures

getStructure

public DDMStructure getStructure(long structureId)
                          throws PortalException
Returns the structure with the ID.

Specified by:
getStructure in interface DDMStructureLocalService
Parameters:
structureId - the primary key of the structure
Returns:
the structure with the ID
Throws:
PortalException - if a structure with the ID could not be found

getStructureEntries

@Deprecated
public List<DDMStructure> getStructureEntries()
Deprecated. As of 6.2.0, replaced by getStructures()

Specified by:
getStructureEntries in interface DDMStructureLocalService

getStructureEntries

@Deprecated
public List<DDMStructure> getStructureEntries(long groupId)
Deprecated. As of 6.2.0, replaced by getStructures(long)

Specified by:
getStructureEntries in interface DDMStructureLocalService

getStructureEntries

@Deprecated
public List<DDMStructure> getStructureEntries(long groupId,
                                                         int start,
                                                         int end)
Deprecated. As of 6.2.0, replaced by getStructures(long, int, int)

Specified by:
getStructureEntries in interface DDMStructureLocalService

getStructures

public List<DDMStructure> getStructures()
Returns all the structures present in the system.

Specified by:
getStructures in interface DDMStructureLocalService
Returns:
the structures present in the system

getStructures

public List<DDMStructure> getStructures(long groupId)
Returns all the structures present in the group.

Specified by:
getStructures in interface DDMStructureLocalService
Parameters:
groupId - the primary key of the group
Returns:
the structures present in the group

getStructures

public List<DDMStructure> getStructures(long groupId,
                                        long classNameId)
Returns all the structures matching class name ID and group.

Specified by:
getStructures in interface DDMStructureLocalService
Parameters:
groupId - the primary key of the group
classNameId - the primary key of the class name for the structure's related model
Returns:
the matching structures

getStructures

public List<DDMStructure> getStructures(long groupId,
                                        long classNameId,
                                        int start,
                                        int end)
Returns a range of all the structures that match the class name ID and group.

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.

Specified by:
getStructures in interface DDMStructureLocalService
Parameters:
groupId - the primary key of the group
classNameId - the primary key of the class name for the structure's related model
start - the lower bound of the range of structures to return
end - the upper bound of the range of structures to return (not inclusive)
Returns:
the range of matching structures

getStructures

public List<DDMStructure> getStructures(long groupId,
                                        long classNameId,
                                        int start,
                                        int end,
                                        OrderByComparator<DDMStructure> orderByComparator)
Returns an ordered range of all the structures matching the class name ID and group.

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.

Specified by:
getStructures in interface DDMStructureLocalService
Parameters:
groupId - the primary key of the group
classNameId - the primary key of the class name for the structure's related model
start - the lower bound of the range of structures to return
end - the upper bound of the range of structures to return (not inclusive)
orderByComparator - the comparator to order the structures (optionally null)
Returns:
the range of matching structures ordered by the comparator

getStructures

public List<DDMStructure> getStructures(long groupId,
                                        String name,
                                        String description)
Specified by:
getStructures in interface DDMStructureLocalService

getStructures

public List<DDMStructure> getStructures(long groupId,
                                        int start,
                                        int end)
Returns a range of all the structures belonging to the group.

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.

Specified by:
getStructures in interface DDMStructureLocalService
Parameters:
groupId - the primary key of the group
start - the lower bound of the range of structures to return
end - the upper bound of the range of structures to return (not inclusive)
Returns:
the range of matching structures

getStructures

public List<DDMStructure> getStructures(long[] groupIds)
Returns all the structures belonging to the groups.

Specified by:
getStructures in interface DDMStructureLocalService
Parameters:
groupIds - the primary keys of the groups
Returns:
the structures belonging to the groups

getStructures

public List<DDMStructure> getStructures(long[] groupIds,
                                        long classNameId)
Returns all the structures matching the class name ID and belonging to the groups.

Specified by:
getStructures in interface DDMStructureLocalService
Parameters:
groupIds - the primary keys of the groups
classNameId - the primary key of the class name for the structure's related model
Returns:
the matching structures

getStructures

public List<DDMStructure> getStructures(long[] groupIds,
                                        long classNameId,
                                        int start,
                                        int end)
Returns a range of all the structures matching the class name ID and belonging to the groups.

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.

Specified by:
getStructures in interface DDMStructureLocalService
Parameters:
groupIds - the primary keys of the groups
classNameId - the primary key of the class name for the structure's related model
start - the lower bound of the range of structures to return
end - the upper bound of the range of structures to return (not inclusive)
Returns:
the range of matching structures

getStructuresCount

public int getStructuresCount(long groupId)
Returns the number of structures belonging to the group.

Specified by:
getStructuresCount in interface DDMStructureLocalService
Parameters:
groupId - the primary key of the group
Returns:
the number of structures belonging to the group

getStructuresCount

public int getStructuresCount(long groupId,
                              long classNameId)
Returns the number of structures matching the class name ID and group.

Specified by:
getStructuresCount in interface DDMStructureLocalService
Parameters:
groupId - the primary key of the group
classNameId - the primary key of the class name for the structure's related model
Returns:
the number of matching structures

getStructuresCount

public int getStructuresCount(long[] groupIds,
                              long classNameId)
Returns the number of structures matching the class name ID and belonging to the groups.

Specified by:
getStructuresCount in interface DDMStructureLocalService
Parameters:
groupIds - the primary keys of the groups
classNameId - the primary key of the class name for the structure's related model
Returns:
the number of matching structures

hasDLFileEntryTypeDDMStructure

public boolean hasDLFileEntryTypeDDMStructure(long fileEntryTypeId,
                                              long structureId)
Specified by:
hasDLFileEntryTypeDDMStructure in interface DDMStructureLocalService

hasDLFileEntryTypeDDMStructures

public boolean hasDLFileEntryTypeDDMStructures(long fileEntryTypeId)
Specified by:
hasDLFileEntryTypeDDMStructures in interface DDMStructureLocalService

hasJournalFolderDDMStructure

public boolean hasJournalFolderDDMStructure(long folderId,
                                            long structureId)
Specified by:
hasJournalFolderDDMStructure in interface DDMStructureLocalService

hasJournalFolderDDMStructures

public boolean hasJournalFolderDDMStructures(long folderId)
Specified by:
hasJournalFolderDDMStructures in interface DDMStructureLocalService

search

public List<DDMStructure> search(long companyId,
                                 long[] groupIds,
                                 long[] classNameIds,
                                 String keywords,
                                 int start,
                                 int end,
                                 OrderByComparator<DDMStructure> orderByComparator)
Returns an ordered range of all the structures matching the groups and class name IDs, and matching the keywords in the structure names and descriptions.

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.

Specified by:
search in interface DDMStructureLocalService
Parameters:
companyId - the primary key of the structure's company
groupIds - the primary keys of the groups
classNameIds - the primary keys of the class names of the models the structures are related to
keywords - the keywords (space separated), which may occur in the structure's name or description (optionally null)
start - the lower bound of the range of structures to return
end - the upper bound of the range of structures to return (not inclusive)
orderByComparator - the comparator to order the structures (optionally null)
Returns:
the range of matching structures ordered by the comparator

search

public List<DDMStructure> search(long companyId,
                                 long[] groupIds,
                                 long[] classNameIds,
                                 String name,
                                 String description,
                                 String storageType,
                                 int type,
                                 boolean andOperator,
                                 int start,
                                 int end,
                                 OrderByComparator<DDMStructure> orderByComparator)
Returns an ordered range of all the structures matching the groups, class name IDs, name keyword, description keyword, storage type, and type.

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.

Specified by:
search in interface DDMStructureLocalService
Parameters:
companyId - the primary key of the structure's company
groupIds - the primary keys of the groups
classNameIds - the primary keys of the class names of the models the structures are related to
name - the name keywords
description - the description keywords
storageType - the structure's storage type. It can be "xml" or "expando". For more information, see StorageType.
type - the structure's type. For more information, see DDMStructureConstants.
andOperator - whether every field must match its keywords, or just one field
start - the lower bound of the range of structures to return
end - the upper bound of the range of structures to return (not inclusive)
orderByComparator - the comparator to order the structures (optionally null)
Returns:
the range of matching structures ordered by the comparator

searchCount

public int searchCount(long companyId,
                       long[] groupIds,
                       long[] classNameIds,
                       String keywords)
Returns the number of structures matching the groups and class name IDs, and matching the keywords in the structure names and descriptions.

Specified by:
searchCount in interface DDMStructureLocalService
Parameters:
companyId - the primary key of the structure's company
groupIds - the primary keys of the groups
classNameIds - the primary keys of the class names of the models the structures are related to
keywords - the keywords (space separated), which may occur in the structure's name or description (optionally null)
Returns:
the number of matching structures

searchCount

public int searchCount(long companyId,
                       long[] groupIds,
                       long[] classNameIds,
                       String name,
                       String description,
                       String storageType,
                       int type,
                       boolean andOperator)
Returns the number of structures matching the groups, class name IDs, name keyword, description keyword, storage type, and type

Specified by:
searchCount in interface DDMStructureLocalService
Parameters:
companyId - the primary key of the structure's company
groupIds - the primary keys of the groups
classNameIds - the primary keys of the class names of the models the structure's are related to
name - the name keywords
description - the description keywords
storageType - the structure's storage type. It can be "xml" or "expando". For more information, see StorageType.
type - the structure's type. For more information, see DDMStructureConstants.
andOperator - whether every field must match its keywords, or just one field
Returns:
the number of matching structures

setBeanIdentifier

public void setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean.

Specified by:
setBeanIdentifier in interface DDMStructureLocalService
Parameters:
beanIdentifier - the Spring bean ID for this bean

setDLFileEntryTypeDDMStructures

public void setDLFileEntryTypeDDMStructures(long fileEntryTypeId,
                                            long[] structureIds)
Specified by:
setDLFileEntryTypeDDMStructures in interface DDMStructureLocalService

setJournalFolderDDMStructures

public void setJournalFolderDDMStructures(long folderId,
                                          long[] structureIds)
Specified by:
setJournalFolderDDMStructures in interface DDMStructureLocalService

updateDDMForm

public DDMStructure updateDDMForm(long structureId,
                                  DDMForm ddmForm,
                                  ServiceContext serviceContext)
                           throws PortalException
Specified by:
updateDDMForm in interface DDMStructureLocalService
Throws:
PortalException

updateDDMStructure

public DDMStructure updateDDMStructure(DDMStructure ddmStructure)
Updates the d d m structure in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
updateDDMStructure in interface DDMStructureLocalService
Parameters:
ddmStructure - the d d m structure
Returns:
the d d m structure that was updated

updateStructure

public DDMStructure updateStructure(long groupId,
                                    long parentStructureId,
                                    long classNameId,
                                    String structureKey,
                                    Map<Locale,String> nameMap,
                                    Map<Locale,String> descriptionMap,
                                    DDMForm ddmForm,
                                    ServiceContext serviceContext)
                             throws PortalException
Specified by:
updateStructure in interface DDMStructureLocalService
Throws:
PortalException

updateStructure

@Deprecated
public DDMStructure updateStructure(long groupId,
                                               long parentStructureId,
                                               long classNameId,
                                               String structureKey,
                                               Map<Locale,String> nameMap,
                                               Map<Locale,String> descriptionMap,
                                               String definition,
                                               ServiceContext serviceContext)
                             throws PortalException
Deprecated. As of 7.0.0, replaced by updateStructure(long, long, long, String, Map, Map, DDMForm, ServiceContext)

Updates the structure matching the class name ID, structure key, and group, replacing its old parent structure, name map, description map, and XSD with new ones.

Specified by:
updateStructure in interface DDMStructureLocalService
Parameters:
groupId - the primary key of the group
parentStructureId - the primary key of the new parent structure
classNameId - the primary key of the class name for the structure's related model
structureKey - the unique string identifying the structure
nameMap - the structure's new locales and localized names
descriptionMap - the structure's new locales and localized description
definition - the structure's new XML schema definition
serviceContext - the service context to be applied. Can set the structure's modification date.
Returns:
the updated structure
Throws:
PortalException - if a matching structure could not be found, if the XSD was not well-formed, or if a portal exception occurred

updateStructure

public DDMStructure updateStructure(long structureId,
                                    long parentStructureId,
                                    Map<Locale,String> nameMap,
                                    Map<Locale,String> descriptionMap,
                                    DDMForm ddmForm,
                                    ServiceContext serviceContext)
                             throws PortalException
Specified by:
updateStructure in interface DDMStructureLocalService
Throws:
PortalException

updateStructure

@Deprecated
public DDMStructure updateStructure(long structureId,
                                               long parentStructureId,
                                               Map<Locale,String> nameMap,
                                               Map<Locale,String> descriptionMap,
                                               String definition,
                                               ServiceContext serviceContext)
                             throws PortalException
Deprecated. As of 7.0.0, replaced by updateStructure(long, long, Map, Map, DDMForm, ServiceContext)

Updates the structure matching the structure ID, replacing its old parent structure, name map, description map, and XSD with new ones.

Specified by:
updateStructure in interface DDMStructureLocalService
Parameters:
structureId - the primary key of the structure
parentStructureId - the primary key of the new parent structure
nameMap - the structure's new locales and localized names
descriptionMap - the structure's new locales and localized descriptions
definition - the structure's new XML schema definition
serviceContext - the service context to be applied. Can set the structure's modification date.
Returns:
the updated structure
Throws:
PortalException - if a matching structure could not be found, if the XSD was not well-formed, or if a portal exception occurred

updateXSD

@Deprecated
public DDMStructure updateXSD(long structureId,
                                         String definition,
                                         ServiceContext serviceContext)
                       throws PortalException
Deprecated. As of 7.0.0, replaced by #updateDDMForm(long, String, ServiceContext)

Updates the structure matching the structure ID, replacing its XSD with a new one.

Specified by:
updateXSD in interface DDMStructureLocalService
Parameters:
structureId - the primary key of the structure
definition - the structure's new XML schema definition
serviceContext - the service context to be applied. Can set the structure's modification date.
Returns:
the updated structure
Throws:
PortalException - if a matching structure could not be found, if the XSD was not well-formed, or if a portal exception occurred

getWrappedDDMStructureLocalService

@Deprecated
public DDMStructureLocalService getWrappedDDMStructureLocalService()
Deprecated. As of 6.1.0, replaced by getWrappedService()


setWrappedDDMStructureLocalService

@Deprecated
public void setWrappedDDMStructureLocalService(DDMStructureLocalService ddmStructureLocalService)
Deprecated. As of 6.1.0, replaced by setWrappedService(com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService)


getWrappedService

public DDMStructureLocalService getWrappedService()
Specified by:
getWrappedService in interface ServiceWrapper<DDMStructureLocalService>

setWrappedService

public void setWrappedService(DDMStructureLocalService ddmStructureLocalService)
Specified by:
setWrappedService in interface ServiceWrapper<DDMStructureLocalService>

Liferay 7.0-ce-m3