protected BonitaRuntimeException wrapThrowable(final Throwable cause) { return new BonitaRuntimeException(cause); }
@Override public String getMessage() { return getUserNameMessage() + super.getMessage(); }
protected BonitaRuntimeException wrapThrowable(final Throwable cause) { return new BonitaRuntimeException(cause); }
@Override public String getMessage() { return getUserNameMessage() + super.getMessage(); }
public ProcessDefinitionBARContribution() { try { jaxbContext = JAXBContext.newInstance(DesignProcessDefinitionImpl.class); } catch (final Exception e) { throw new BonitaRuntimeException(e); } }
protected String urlEncode(final String stringToEncode) { try { return URLEncoder.encode(stringToEncode, "UTF-8"); } catch (final UnsupportedEncodingException e) { throw new BonitaRuntimeException(e); } }
public ProcessDefinitionBARContribution() { try { jaxbContext = JAXBContext.newInstance(DesignProcessDefinitionImpl.class); } catch (final Exception e) { throw new BonitaRuntimeException(e); } }
protected String urlEncode(final String stringToEncode) { try { return URLEncoder.encode(stringToEncode, "UTF-8"); } catch (final UnsupportedEncodingException e) { throw new BonitaRuntimeException(e); } }
public OrganizationParser() { try { jaxbContext = JAXBContext.newInstance(Organization.class); URL schemaURL = Organization.class.getResource("/organization.xsd"); final SchemaFactory sf = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI); schema = sf.newSchema(schemaURL); } catch (final Exception e) { throw new BonitaRuntimeException(e); } }
public OrganizationParser() { try { jaxbContext = JAXBContext.newInstance(Organization.class); URL schemaURL = Organization.class.getResource("/organization.xsd"); final SchemaFactory sf = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI); schema = sf.newSchema(schemaURL); } catch (final Exception e) { throw new BonitaRuntimeException(e); } }
public String toXML(final Object object) { final StringWriter stringWriter = new StringWriter(); try (final ObjectOutputStream out = XSTREAM.createObjectOutputStream(stringWriter)){ out.writeObject(object); } catch (IOException e) { throw new BonitaRuntimeException("Unable to serialize object " + object, e); } return stringWriter.toString(); }
@SuppressWarnings("unchecked") public <T> T fromXML(final String object) { try (final StringReader xmlReader = new StringReader(object); final ObjectInputStream in = XSTREAM.createObjectInputStream(xmlReader)) { return (T) in.readObject(); } catch (final ClassNotFoundException | IOException | RuntimeException e) { throw new BonitaRuntimeException("Unable to deserialize object " + object, e); } }
@SuppressWarnings("unchecked") public <T> T fromXML(final String object) { try (final StringReader xmlReader = new StringReader(object); final ObjectInputStream in = XSTREAM.createObjectInputStream(xmlReader)) { return (T) in.readObject(); } catch (final ClassNotFoundException | IOException | RuntimeException e) { throw new BonitaRuntimeException("Unable to deserialize object " + object, e); } }
public String toXML(final Object object) { final StringWriter stringWriter = new StringWriter(); try (final ObjectOutputStream out = XSTREAM.createObjectOutputStream(stringWriter)){ out.writeObject(object); } catch (IOException e) { throw new BonitaRuntimeException("Unable to serialize object " + object, e); } return stringWriter.toString(); }
@SuppressWarnings("unchecked") public <T> T fromXML(final String object) { try (final StringReader xmlReader = new StringReader(object); final ObjectInputStream in = XSTREAM.createObjectInputStream(xmlReader)) { return (T) in.readObject(); } catch (final ClassNotFoundException | IOException | RuntimeException e) { throw new BonitaRuntimeException("Unable to deserialize object " + object, e); } } }
public String toXML(final Object object) { final StringWriter stringWriter = new StringWriter(); try (final ObjectOutputStream out = XSTREAM.createObjectOutputStream(stringWriter)){ out.writeObject(object); } catch (IOException e) { throw new BonitaRuntimeException("Unable to serialize object " + object, e); } return stringWriter.toString(); }
@SuppressWarnings("unchecked") public <T> T fromXML(final String object) { try (final StringReader xmlReader = new StringReader(object); final ObjectInputStream in = XSTREAM.createObjectInputStream(xmlReader)) { return (T) in.readObject(); } catch (final ClassNotFoundException | IOException | RuntimeException e) { throw new BonitaRuntimeException("Unable to deserialize object " + object, e); } } }
public String toXML(final Object object) { final StringWriter stringWriter = new StringWriter(); try (final ObjectOutputStream out = XSTREAM.createObjectOutputStream(stringWriter)){ out.writeObject(object); } catch (IOException e) { throw new BonitaRuntimeException("Unable to serialize object " + object, e); } return stringWriter.toString(); }
public UserFilterServiceImpl(final ConnectorExecutor connectorExecutor, final CacheService cacheService, final ExpressionResolverService expressionResolverService, final TechnicalLoggerService logger, ProcessResourcesService processResourcesService) { super(); this.connectorExecutor = connectorExecutor; this.cacheService = cacheService; this.expressionResolverService = expressionResolverService; this.logger = logger; this.processResourcesService = processResourcesService; try { jaxbContext = JAXBContext.newInstance(UserFilterImplementationDescriptor.class); URL schemaURL = ConnectorService.class.getResource("/connectors-impl.xsd"); final SchemaFactory sf = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI); schema = sf.newSchema(schemaURL); } catch (final Exception e) { throw new BonitaRuntimeException("Unable to load unmarshaller for connector implementation descriptor", e); } }
public UserFilterServiceImpl(final ConnectorExecutor connectorExecutor, final CacheService cacheService, final ExpressionResolverService expressionResolverService, final TechnicalLoggerService logger, ProcessResourcesService processResourcesService) { super(); this.connectorExecutor = connectorExecutor; this.cacheService = cacheService; this.expressionResolverService = expressionResolverService; this.logger = logger; this.processResourcesService = processResourcesService; try { jaxbContext = JAXBContext.newInstance(UserFilterImplementationDescriptor.class); URL schemaURL = ConnectorService.class.getResource("/connectors-impl.xsd"); final SchemaFactory sf = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI); schema = sf.newSchema(schemaURL); } catch (final Exception e) { throw new BonitaRuntimeException("Unable to load unmarshaller for connector implementation descriptor", e); } }