public DeliveryResult(String code, String text, Throwable error) { this( IDGenerator.getOrganisationID(), IDGenerator.nextID(DeliveryResult.class), code, text, error); }
/** * @param scriptLanguage * @param script * @param structField */ public ScriptDataFieldValidator( String scriptLanguage, String script, StructField<?> structField) { this( IDGenerator.getOrganisationID(), IDGenerator.nextID(DataFieldValidator.class), scriptLanguage, script, structField); }
public DeliveryResult(Throwable error) { this( IDGenerator.getOrganisationID(), IDGenerator.nextID(DeliveryResult.class), error instanceof DeliveryException ? ((DeliveryException) error).getDeliveryResult().getCode() : CODE_FAILED, error instanceof DeliveryException ? ((DeliveryException) error).getDeliveryResult().getText() : error.getLocalizedMessage(), error instanceof DeliveryException ? ((DeliveryException) error).getDeliveryResult().getError() : error); }
/** Creates the columns with defalt variables filled in. */ public List<ColumnDescriptor> getIssueTableColumnDescriptors(String... fieldNames) { MultiLanguagePropertiesBundle propertiesBundle = new MultiLanguagePropertiesBundle( "org.nightlabs.jfire.issue.resource.messages", IssueTableConfigModule.class.getClassLoader(), true); String organisationID = IDGenerator.getOrganisationID(); List<ColumnDescriptor> columnDescs = new LinkedList<ColumnDescriptor>(); for (String fieldName : fieldNames) { ColumnDescriptorID colDescID = ColumnDescriptorID.create(IDGenerator.nextID(ColumnDescriptor.class), organisationID); columnDescs.add( IssueTableColumnDescriptorFactory.fillColumnDescriptorInfos( new ColumnDescriptor(colDescID), fieldName, propertiesBundle)); } return columnDescs; }