@Override public SIcon getIcon(long id) throws SBonitaReadException { return persistenceService.selectById(new SelectByIdDescriptor<>(SIcon.class, id)); } }
@Override public SIcon getIcon(long id) throws SBonitaReadException { return persistenceService.selectById(new SelectByIdDescriptor<>(SIcon.class, id)); } }
@Override public SLightDocument getDocument(final long documentId) throws SObjectNotFoundException, SBonitaReadException { final SLightDocument document = persistenceService.selectById(new SelectByIdDescriptor<SLightDocument>(SLightDocument.class, documentId)); if (document == null) { throw new SObjectNotFoundException("Document with id " + documentId + " not found"); } return document; }
@Override public SApplicationMenu getApplicationMenu(final long applicationMenuId) throws SBonitaReadException, SObjectNotFoundException { final SApplicationMenu applicationMenu = persistenceService .selectById(new SelectByIdDescriptor<SApplicationMenu>(SApplicationMenu.class, applicationMenuId)); if (applicationMenu == null) { throw new SObjectNotFoundException("No application found with id '" + applicationMenuId + "'."); } return applicationMenu; }
@Override public SPage getPage(final long pageId) throws SBonitaReadException, SObjectNotFoundException { final SPage page = persistenceService.selectById(new SelectByIdDescriptor<>(SPage.class, pageId)); if (page == null) { throw new SObjectNotFoundException("Page with id " + pageId + " not found"); } return page; }
@Override public SQueriableLog getLog(final long logId) throws SQueriableLogNotFoundException, SBonitaReadException { final SQueriableLog selectOne = persistenceService.selectById(new SelectByIdDescriptor<>(SQueriableLog.class, logId)); if (selectOne == null) { throw new SQueriableLogNotFoundException(logId); } return selectOne; }
@Override public SApplication getApplication(final long applicationId) throws SBonitaReadException, SObjectNotFoundException { final SApplication application = persistenceService .selectById(new SelectByIdDescriptor<SApplication>(SApplication.class, applicationId)); if (application == null) { throw new SObjectNotFoundException("No application found with id '" + applicationId + "'."); } return application; }
private SDocument getDocumentWithContent(final Long id) throws SBonitaReadException, SObjectNotFoundException { final SDocument document = persistenceService.selectById(new SelectByIdDescriptor<SDocument>(SDocument.class, id)); if (document == null) { throw new SObjectNotFoundException("Document with id " + id + " not found"); } return document; }
@Override public SApplication getApplication(final long applicationId) throws SBonitaReadException, SObjectNotFoundException { final SApplication application = persistenceService .selectById(new SelectByIdDescriptor<SApplication>(SApplication.class, applicationId)); if (application == null) { throw new SObjectNotFoundException("No application found with id '" + applicationId + "'."); } return application; }
@Override public SFormMapping get(long formMappingId) throws SBonitaReadException, SObjectNotFoundException { SFormMapping getFormMappingById = persistenceService.selectById(new SelectByIdDescriptor<>(SFormMapping.class, formMappingId)); if (getFormMappingById == null) { throw new SObjectNotFoundException(formMappingId); } return getFormMappingById; }
@Override public SQueriableLog getLog(final long logId) throws SQueriableLogNotFoundException, SBonitaReadException { final SQueriableLog selectOne = persistenceService.selectById(new SelectByIdDescriptor<>(SQueriableLog.class, logId)); if (selectOne == null) { throw new SQueriableLogNotFoundException(logId); } return selectOne; }
@Override public SMappedDocument getMappedDocument(final long mappingId) throws SObjectNotFoundException, SBonitaReadException { final SMappedDocument document = persistenceService.selectById(new SelectByIdDescriptor<SMappedDocument>( SMappedDocument.class, mappingId)); if (document == null) { throw new SObjectNotFoundException("SMappedDocument with id " + mappingId + " not found"); } return document; }
@Override public SPage getPage(final long pageId) throws SBonitaReadException, SObjectNotFoundException { final SPage page = persistenceService.selectById(new SelectByIdDescriptor<>(SPage.class, pageId)); if (page == null) { throw new SObjectNotFoundException("Page with id " + pageId + " not found"); } return page; }
@Override public SApplicationMenu getApplicationMenu(final long applicationMenuId) throws SBonitaReadException, SObjectNotFoundException { final SApplicationMenu applicationMenu = persistenceService .selectById(new SelectByIdDescriptor<SApplicationMenu>(SApplicationMenu.class, applicationMenuId)); if (applicationMenu == null) { throw new SObjectNotFoundException("No application found with id '" + applicationMenuId + "'."); } return applicationMenu; }
@Override public SMappedDocument getMappedDocument(final long mappingId) throws SObjectNotFoundException, SBonitaReadException { final SMappedDocument document = persistenceService.selectById(new SelectByIdDescriptor<SMappedDocument>( SMappedDocument.class, mappingId)); if (document == null) { throw new SObjectNotFoundException("SMappedDocument with id " + mappingId + " not found"); } return document; }
@Override public SFormMapping get(long formMappingId) throws SBonitaReadException, SObjectNotFoundException { SFormMapping getFormMappingById = persistenceService.selectById(new SelectByIdDescriptor<>(SFormMapping.class, formMappingId)); if (getFormMappingById == null) { throw new SObjectNotFoundException(formMappingId); } return getFormMappingById; }
@Override public SLightDocument getDocument(final long documentId) throws SObjectNotFoundException, SBonitaReadException { final SLightDocument document = persistenceService.selectById(new SelectByIdDescriptor<SLightDocument>(SLightDocument.class, documentId)); if (document == null) { throw new SObjectNotFoundException("Document with id " + documentId + " not found"); } return document; }
private SDocument getDocumentWithContent(final Long id) throws SBonitaReadException, SObjectNotFoundException { final SDocument document = persistenceService.selectById(new SelectByIdDescriptor<SDocument>(SDocument.class, id)); if (document == null) { throw new SObjectNotFoundException("Document with id " + id + " not found"); } return document; }
@Override public SAComment getArchivedComment(final long archivedCommentId) throws SCommentNotFoundException, SBonitaReadException { final ReadPersistenceService persistenceService = archiveService.getDefinitiveArchiveReadPersistenceService(); final SAComment selectById = persistenceService.selectById(new SelectByIdDescriptor<SAComment>(SAComment.class, archivedCommentId)); if (selectById == null) { throw new SCommentNotFoundException("Archived comment not found with id=" + archivedCommentId); } return selectById; }
@Override public SAComment getArchivedComment(final long archivedCommentId) throws SCommentNotFoundException, SBonitaReadException { final ReadPersistenceService persistenceService = archiveService.getDefinitiveArchiveReadPersistenceService(); final SAComment selectById = persistenceService.selectById(new SelectByIdDescriptor<SAComment>(SAComment.class, archivedCommentId)); if (selectById == null) { throw new SCommentNotFoundException("Archived comment not found with id=" + archivedCommentId); } return selectById; }