/** * Returns the structure with the ID. * * @param structureId the primary key of the structure * @return the structure with the structure ID, or <code>null</code> if a matching structure could not be found */ @Override public com.liferay.dynamic.data.mapping.model.DDMStructure fetchStructure( long structureId) { return _ddmStructureLocalService.fetchStructure(structureId); }
/** * Returns the structure with the ID. * * @param structureId the primary key of the structure * @return the structure with the ID */ @Override public com.liferay.dynamic.data.mapping.model.DDMStructure getStructure( long structureId) throws com.liferay.portal.kernel.exception.PortalException { return _ddmStructureLocalService.getStructure(structureId); }
@Override public com.liferay.dynamic.data.mapping.model.DDMStructure fetchDDMStructure( long structureId) { return _ddmStructureLocalService.fetchDDMStructure(structureId); }
protected void deleteDDMStructures(Set<Long> ddmStructureIds) throws PortalException { for (Long ddmStructureId : ddmStructureIds) { if (_ddmStructureLocalService.fetchDDMStructure(ddmStructureId) != null) { _ddmStructureLocalService.deleteStructure(ddmStructureId); } } }
@Override public void updateStructureKey(long structureId, String structureKey) throws PortalException { com.liferay.dynamic.data.mapping.model.DDMStructure ddmStructure = _ddmStructureLocalService.getDDMStructure(structureId); ddmStructure.setStructureKey(structureKey); _ddmStructureLocalService.updateDDMStructure(ddmStructure); }
@Override public void updatedPermission(String primKey) { DDMStructure ddmStructure = _ddmStructureLocalService.fetchDDMStructure( GetterUtil.getLong(primKey)); if (ddmStructure == null) { return; } ddmStructure.setModifiedDate(new Date()); _ddmStructureLocalService.updateDDMStructure(ddmStructure); }
/** * Returns all the structures belonging to the groups. * * @param groupIds the primary keys of the groups * @return the structures belonging to the groups */ @Override public java.util.List<com.liferay.dynamic.data.mapping.model.DDMStructure> getStructures( long[] groupIds) { return _ddmStructureLocalService.getStructures(groupIds); }
@Override public com.liferay.dynamic.data.mapping.model.DDMStructure updateStructure( long userId, long groupId, long parentStructureId, long classNameId, String structureKey, java.util.Map<java.util.Locale, String> nameMap, java.util.Map<java.util.Locale, String> descriptionMap, com.liferay.dynamic.data.mapping.model.DDMForm ddmForm, com.liferay.dynamic.data.mapping.model.DDMFormLayout ddmFormLayout, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { return _ddmStructureLocalService.updateStructure(userId, groupId, parentStructureId, classNameId, structureKey, nameMap, descriptionMap, ddmForm, ddmFormLayout, serviceContext); }
/** * Returns the ddm structure with the primary key. * * @param structureId the primary key of the ddm structure * @return the ddm structure * @throws PortalException if a ddm structure with the primary key could not be found */ @Override public com.liferay.dynamic.data.mapping.model.DDMStructure getDDMStructure( long structureId) throws com.liferay.portal.kernel.exception.PortalException { return _ddmStructureLocalService.getDDMStructure(structureId); }
throws PortalException { DDMStructure ddmStructure = ddmStructureLocalService.fetchDDMStructure( ddmStructureId); serviceContext.setIndexingEnabled(false); ddmStructureLocalService.updateStructure( serviceContext.getUserId(), ddmStructureId, ddmForm, ddmStructure.getDDMFormLayout(), serviceContext);
@Override public com.liferay.dynamic.data.mapping.model.DDMStructure addStructure( long userId, long groupId, long classNameId, java.util.Map<java.util.Locale, String> nameMap, java.util.Map<java.util.Locale, String> descriptionMap, com.liferay.dynamic.data.mapping.model.DDMForm ddmForm, com.liferay.dynamic.data.mapping.model.DDMFormLayout ddmFormLayout, String storageType, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { return _ddmStructureLocalService.addStructure(userId, groupId, classNameId, nameMap, descriptionMap, ddmForm, ddmFormLayout, storageType, serviceContext); }
_ddmStructureLocalService.fetchStructureByUuidAndGroupId( uuid, groupId, true); _ddmStructureLocalService.fetchDDMStructureByUuidAndGroupId( defaultStructureUuid, groupId);
/** * Returns the ddm structure matching the UUID and group. * * @param uuid the ddm structure's UUID * @param groupId the primary key of the group * @return the matching ddm structure, or <code>null</code> if a matching ddm structure could not be found */ @Override public com.liferay.dynamic.data.mapping.model.DDMStructure fetchDDMStructureByUuidAndGroupId( String uuid, long groupId) { return _ddmStructureLocalService.fetchDDMStructureByUuidAndGroupId(uuid, groupId); }
@Override public com.liferay.dynamic.data.mapping.model.DDMStructure copyStructure( long userId, long structureId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { return _ddmStructureLocalService.copyStructure(userId, structureId, serviceContext); }
/** * Deletes the ddm structure from the database. Also notifies the appropriate model listeners. * * @param ddmStructure the ddm structure * @return the ddm structure that was removed */ @Override public com.liferay.dynamic.data.mapping.model.DDMStructure deleteDDMStructure( com.liferay.dynamic.data.mapping.model.DDMStructure ddmStructure) { return _ddmStructureLocalService.deleteDDMStructure(ddmStructure); }
/** * Returns all the structures present in the group. * * @param groupId the primary key of the group * @return the structures present in the group */ @Override public java.util.List<com.liferay.dynamic.data.mapping.model.DDMStructure> getStructures( long groupId) { return _ddmStructureLocalService.getStructures(groupId); }
@Override public com.liferay.dynamic.data.mapping.model.DDMStructure updateStructure( long userId, long structureId, long parentStructureId, java.util.Map<java.util.Locale, String> nameMap, java.util.Map<java.util.Locale, String> descriptionMap, com.liferay.dynamic.data.mapping.model.DDMForm ddmForm, com.liferay.dynamic.data.mapping.model.DDMFormLayout ddmFormLayout, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { return _ddmStructureLocalService.updateStructure(userId, structureId, parentStructureId, nameMap, descriptionMap, ddmForm, ddmFormLayout, serviceContext); }
/** * Returns the ddm structure with the primary key. * * @param structureId the primary key of the ddm structure * @return the ddm structure * @throws PortalException if a ddm structure with the primary key could not be found */ public static com.liferay.dynamic.data.mapping.model.DDMStructure getDDMStructure( long structureId) throws com.liferay.portal.kernel.exception.PortalException { return getService().getDDMStructure(structureId); }
@Override @SystemEvent( action = SystemEventConstants.ACTION_SKIP, type = SystemEventConstants.TYPE_DELETE ) public void deleteFormInstance(DDMFormInstance ddmFormInstance) throws PortalException { deleteDDMFormInstance(ddmFormInstance); resourceLocalService.deleteResource( ddmFormInstance.getCompanyId(), DDMFormInstance.class.getName(), ResourceConstants.SCOPE_INDIVIDUAL, ddmFormInstance.getFormInstanceId()); ddmFormInstanceRecordLocalService.deleteFormInstanceRecords( ddmFormInstance.getFormInstanceId()); ddmFormInstanceVersionLocalService.deleteByFormInstanceId( ddmFormInstance.getFormInstanceId()); long structureId = ddmFormInstance.getStructureId(); if (ddmStructureLocalService.fetchDDMStructure(structureId) != null) { ddmStructureLocalService.deleteStructure(structureId); } workflowDefinitionLinkLocalService.deleteWorkflowDefinitionLink( ddmFormInstance.getCompanyId(), ddmFormInstance.getGroupId(), DDMFormInstance.class.getName(), ddmFormInstance.getFormInstanceId(), 0); }
@Override public void updateStructureDefinition(long structureId, String definition) throws PortalException { try { com.liferay.dynamic.data.mapping.model.DDMStructure ddmStructure = _ddmStructureLocalService.getDDMStructure(structureId); ddmStructure.setDefinition(definition); _ddmStructureLocalService.updateDDMStructure(ddmStructure); } catch (PortalException pe) { throw translate(pe); } }