@Override public void pageDeleted(final SPage page) throws SBonitaReadException, SDeletionException { if (SContentType.API_EXTENSION.equals(page.getContentType())) { List<SPageMapping> mappings; do { mappings = pageMappingService.get(page.getId(), 0, MAX_RESULTS); for (final SPageMapping mapping : mappings) { pageMappingService.delete(mapping); } } while (mappings.size() == MAX_RESULTS); } }
@Override public void pageDeleted(final SPage page) throws SBonitaReadException, SDeletionException { if (SContentType.API_EXTENSION.equals(page.getContentType())) { List<SPageMapping> mappings; do { mappings = pageMappingService.get(page.getId(), 0, MAX_RESULTS); for (final SPageMapping mapping : mappings) { pageMappingService.delete(mapping); } } while (mappings.size() == MAX_RESULTS); } }
@Override public void pageInserted(final SPage sPage, final byte[] content) throws SObjectCreationException { if (SContentType.API_EXTENSION.equals(sPage.getContentType())){ try { addPageMapping(sPage, helper.loadPageProperties(content)); } catch (final IOException | SInvalidPageZipMissingPropertiesException e) { throw new SObjectCreationException(e); } } }
@Override public void pageUpdated(final SPage page, final byte[] content) throws SObjectModificationException { if (SContentType.API_EXTENSION.equals(page.getContentType())) { try { updateMappings(page, helper.loadPageProperties(content)); } catch (SBonitaReadException | SDeletionException | SObjectCreationException | SInvalidPageZipMissingPropertiesException | IOException e) { throw new SObjectModificationException(e); } } }
@Override public void pageInserted(final SPage sPage, final byte[] content) throws SObjectCreationException { if (SContentType.API_EXTENSION.equals(sPage.getContentType())){ try { addPageMapping(sPage, helper.loadPageProperties(content)); } catch (final IOException | SInvalidPageZipMissingPropertiesException e) { throw new SObjectCreationException(e); } } }
@Override public void pageUpdated(final SPage page, final byte[] content) throws SObjectModificationException { if (SContentType.API_EXTENSION.equals(page.getContentType())) { try { updateMappings(page, helper.loadPageProperties(content)); } catch (SBonitaReadException | SDeletionException | SObjectCreationException | SInvalidPageZipMissingPropertiesException | IOException e) { throw new SObjectModificationException(e); } } }
/** * @param sPage */ public SPageImpl(final SPage sPage) { this(sPage.getName(), sPage.getDescription(), sPage.getDisplayName(), sPage.getInstallationDate(), sPage.getInstalledBy(), sPage.isProvided(), sPage.isHidden(), sPage .getLastModificationDate(), sPage.getLastUpdatedBy(), sPage.getContentName()); setContentType(sPage.getContentType()); setProcessDefinitionId(sPage.getProcessDefinitionId()); }
/** * @param sPage */ public SPageImpl(final SPage sPage) { this(sPage.getName(), sPage.getDescription(), sPage.getDisplayName(), sPage.getInstallationDate(), sPage.getInstalledBy(), sPage.isProvided(), sPage.isHidden(), sPage .getLastModificationDate(), sPage.getLastUpdatedBy(), sPage.getContentName()); setContentType(sPage.getContentType()); setProcessDefinitionId(sPage.getProcessDefinitionId()); }
public Page toPage(final SPage sPage) { Long processDefinitionId = sPage.getProcessDefinitionId() > 0 ? sPage.getProcessDefinitionId() : null; return new PageImpl(sPage.getId(), sPage.getName(), sPage.getDisplayName(), sPage.isProvided(), sPage.isHidden(), sPage.getDescription(), sPage.getInstallationDate(), sPage.getInstalledBy(), sPage.getLastModificationDate(), sPage.getLastUpdatedBy(), sPage.getContentName(), sPage.getContentType(), processDefinitionId); }
public Page toPage(final SPage sPage) { Long processDefinitionId = sPage.getProcessDefinitionId() > 0 ? sPage.getProcessDefinitionId() : null; return new PageImpl(sPage.getId(), sPage.getName(), sPage.getDisplayName(), sPage.isProvided(), sPage.isHidden(), sPage.getDescription(), sPage.getInstallationDate(), sPage.getInstalledBy(), sPage.getLastModificationDate(), sPage.getLastUpdatedBy(), sPage.getContentName(), sPage.getContentType(), processDefinitionId); }
break; case CONTENT_TYPE: pageUpdateBuilder.updateContentType(sPage.getContentType()); break; case PROCESS_DEFINITION_ID:
break; case CONTENT_TYPE: pageUpdateBuilder.updateContentType(sPage.getContentType()); break; case PROCESS_DEFINITION_ID: