Package org.jitterbit.integration.data.entity.id

Examples of org.jitterbit.integration.data.entity.id.OperationId


    }

    private SourceHistoryEntry buildEntryFromParts(String[] parts) {
        SourceHistoryEntryBuilder builder = new SourceHistoryEntryBuilder();
        // parts[0] is the project ID, which we are not interested in
        builder.setOperationId(new OperationId(parts[1]));
        builder.setOperationName(parts[2]);
        builder.setEntryId(Integer.parseInt(parts[3]));
        builder.setSourceFiles(parts[4]);
        builder.setFileSizeInBytes(Integer.parseInt(parts[5]));
        try {
View Full Code Here


            return;
    }
        lineNumber = wsBreakLocation.getLineNumber();
        String opGuid = wsBreakLocation.getOperationGuid();
        if (isNotEmpty(opGuid)) {
            integrationEntityId = new OperationId(opGuid);
        }
        String tranGuid = wsBreakLocation.getTransformationGuid();
        if (isNotEmpty(tranGuid)) {
            integrationEntityId = new TransformationId(tranGuid);
        }
View Full Code Here

        private final Function<WsOperationMessage, OperationLogMessage> messageFunction = new LogMessage();

        @Override
        public OperationLogEntry apply(WsOperationLogInstance ws) {
            OperationLogEntry e = new OperationLogEntry(
                        new OperationId(ws.getOperationGuid()),
                        ws.getOperationName(),
                        ws.getOperationInstanceId(),
                        LogStatus.fromServerId(ws.getStatus()),
                        fromServerDateFormat(ws.getStartTimeStamp()),
                        fromServerDateFormat(ws.getStatusTimeStamp()),
View Full Code Here

    public static final class QueueEntry implements Function<WsOperationLogInstance, OperationLogEntry> {

        @Override
        public OperationLogEntry apply(WsOperationLogInstance ws) {
            OperationLogEntry e = new OperationLogEntry(
                            new OperationId(ws.getOperationGuid()),
                            ws.getOperationName(),
                            ws.getOperationInstanceId(),
                            getStatus(ws).toLogStatus(),
                            null,
                            null,
View Full Code Here

    public static final class Progress implements Function<WsOperationProgress, OperationProgressMessage> {

        @Override
        public OperationProgressMessage apply(WsOperationProgress ws) {
            ProgressSnapshot snapshot = new ProgressSnapshot(ws.getSection(), ws.getMessage(), ws.getPercentageDone(), getEndTime(ws));
            return new OperationProgressMessage(new OperationId(ws.getOperationGuid()), ws.getOperationInstanceId(), snapshot);
        }
View Full Code Here

  public static OperationFactory getFactory() {
      return INSTANCE;
  }

    public Operation getInstance(String sName, String sId) {
        return new Operation(new OperationId(sId), sName);
    }
View Full Code Here

  public Operation getInstance(String sName, IntegrationEntityId id) {
    return new Operation((OperationId)id, sName);
  }

  public IntegrationEntity getInstance(StringKeyValuePairs keyValues) {
    OperationId opId = getOperationId( keyValues.get(Operation.OPERATION_ID) );
    String sName = keyValues.get(Operation.OPERATION_NAME);
    String sDesc = keyValues.get(Operation.DESCRIPTION);
    Operation operation = getInstance(sName, opId);
    operation.setDescription(sDesc);
    operation.setPropertyValues(keyValues);
View Full Code Here

 
  private Operation getOperationImpl(StringKeyValuePairs serverKeyValues) {
    Map<String, ServerPropertyKey> clientServerMappings = ClientServerDeployKeyMappings.getClientServerKeyMappings(EntityType.Operation);
   
    String serverKey = clientServerMappings.get(Operation.OPERATION_ID).getServerKeyName();
    OperationId opId = getOperationId( serverKeyValues.get(serverKey) );
   
    serverKey = clientServerMappings.get(Operation.OPERATION_NAME).getServerKeyName();
    String sName = serverKeyValues.get(serverKey);
    Operation operation = new Operation(opId, sName);
   
View Full Code Here

        assertEquals(WHERE, parser.getNextSql());
        SourceHistoryEntry e = entries.get(0);
        mustEqualFirstEntry(e);
        e = entries.get(1);
        assertEquals(27, e.getID());
        assertEquals(new OperationId("93f0da04-8398-4e9c-b24d-7d857626cd09"), e.getOperationId());
        assertEquals("FindValue()", e.getOperationName());
        assertEquals("\\\\linuxdoc\\source\\torgil\\xml\\InstanceFunctions\\IntegerCapsule_Advanced.xml", e.getSourceFiles());
        assertEquals(564, e.getFileSizeInBytes());
        assertEquals(ServerConversionUtils.fromServerDateFormat("2009-07-24 10:53:47"), e.getFileTimestamp());
    }
View Full Code Here

        assertEquals(ServerConversionUtils.fromServerDateFormat("2009-07-24 10:53:47"), e.getFileTimestamp());
    }

    private void mustEqualFirstEntry(SourceHistoryEntry e) {
        assertEquals(28, e.getID());
        assertEquals(new OperationId("1520ead5-2a7a-43b3-93f2-5aa8b9c1832f"), e.getOperationId());
        assertEquals("Text > Text", e.getOperationName());
        assertEquals("\\\\linuxdoc\\source\\torgil\\tsc_1.txt", e.getSourceFiles());
        assertEquals(12, e.getFileSizeInBytes());
        assertEquals(ServerConversionUtils.fromServerDateFormat("2009-07-24 15:03:58"), e.getFileTimestamp());
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.data.entity.id.OperationId

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.