@XmlRootElement(name="deploy-task-def-command") @XmlAccessorType(XmlAccessType.NONE) public class DeployTaskDefCommand extends TaskCommand<Void> { private static final long serialVersionUID = 5656199063761548979L; @XmlTransient private TaskDef taskDef; public DeployTaskDefCommand() { } public DeployTaskDefCommand(TaskDef taskDef) { this.taskDef = taskDef; } public Void execute(Context cntxt ) { TaskContext context = (TaskContext) cntxt; context.getTaskDefService().deployTaskDef(taskDef); return null; } }
@ToString @EqualsAndHashCode @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") @XmlRootElement(name = "copy-by-references") public class CopyByReferencesDefinition { @XmlTransient private final ConfigurationDefinition parent; @XmlElement(name = "copy-by-reference", required = true) protected List<String> copyByReference;
@XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "CT_Empty") public class CTEmpty implements Child @XmlTransient private Object parent;
@XmlAccessorType(XmlAccessType.NONE) public abstract class AuditCommand<T> implements ExecutableCommand<T> { @XmlTransient protected AuditLogService auditLogService = null; public AuditCommand() { } public void setAuditLogService(AuditLogService auditLogService) { this.auditLogService = auditLogService; } protected void setLogEnvironment(Context cntxt) { if( auditLogService != null ) { return; } if( ! (cntxt instanceof RegistryContext ) ) { throw new UnsupportedOperationException("This command must be executed by a " + KieSession.class.getSimpleName() + " instance!"); } this.auditLogService = new JPAAuditLogService( ((RegistryContext) cntxt).lookup( KieSession.class ).getEnvironment(), PersistenceStrategyType.KIE_SESSION); } }
/** Get this vertex's unique index, that can serve as a hashcode or an index into a table */ @XmlTransient public int getIndex() { return index; }
@ToString @EqualsAndHashCode @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "variable") public class VariableDefinition { @XmlTransient private final VariablesDefinition parent; protected String clazz; @XmlAttribute(name = "name", required = true) protected String name;
/** * @return a Collection containing the paths of all files in the HDFS Listing whose Modification date * was equal to {@link #getLatestTimestamp()} */ @XmlTransient public Collection<String> getMatchingPaths() { return matchingPaths; }
@ToString @EqualsAndHashCode @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") @XmlRootElement(name = "variables") public class VariablesDefinition { @XmlTransient private final ConfigurationDefinition parent; @XmlElement(name = "variable", required = true) protected List<VariableDefinition> variables;
/** * @return a Collection containing the identifiers of all entities in the listing whose timestamp * was equal to {@link #getLatestTimestamp()} */ @XmlTransient public Collection<String> getMatchingIdentifiers() { return matchingIdentifiers; }
@ToString @EqualsAndHashCode @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") @XmlRootElement(name = "custom-converters") public class CustomConvertersDefinition { @XmlTransient private final ConfigurationDefinition parent; @XmlElement(name = "converter", required = true) protected List<ConverterTypeDefinition> converter;
@XmlTransient public long getCreatedTimestamp() { return createdTimestamp; } }
@XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") @XmlRootElement(name = "continuationSeparator") public static class ContinuationSeparator implements Child @XmlTransient private Object parent;
@XmlTransient public List<Trip> getTrips() { return trips; }
@XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") @XmlRootElement(name = "yearLong") public static class YearLong implements Child @XmlTransient private Object parent;
@XmlTransient public int getDegreeIn() { return incoming.length; }
@XmlAccessorType(XmlAccessType.FIELD) @XmlRootElement(name = "error-event") @XmlType(name = "") public class ErrorEvent implements Serializable { private final Date time = new Date(); @XmlElement(name = "formatted-date") private final String formattedDate = new SimpleDateFormat( "yyyy.MM.dd 'at' HH:mm:ss z").format(new Date()); @XmlElement(name = "error-code") @Getter private final ErrorCode code; @XmlElement(name = "error-message") @Getter private final String message; @XmlTransient @Getter private final boolean fatal;
@XmlTransient public int getDegreeOut() { return outgoing.length; }
@XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") @XmlRootElement(name = "annotationRef") public static class AnnotationRef implements Child @XmlTransient private Object parent;
@XmlTransient public ValidVertexTypes getValidVertexTypes() { return VALID_VERTEX_TYPES; }
@XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") @XmlRootElement(name = "dayShort") public static class DayShort implements Child @XmlTransient private Object parent;