Examples of resourceId()


Examples of org.mifosplatform.commands.domain.CommandSource.resourceId()

        final CommandSource commandSourceInput = validateMakerCheckerTransaction(makerCheckerId);
        validateIsUpdateAllowed();

        final CommandWrapper wrapper = CommandWrapper.fromExistingCommand(makerCheckerId, commandSourceInput.getActionName(),
                commandSourceInput.getEntityName(), commandSourceInput.resourceId(), commandSourceInput.subresourceId(),
                commandSourceInput.getResourceGetUrl(), commandSourceInput.getProductId(), commandSourceInput.getOfficeId(),
                commandSourceInput.getGroupId(), commandSourceInput.getClientId(), commandSourceInput.getLoanId(),
                commandSourceInput.getSavingsId(), commandSourceInput.getTransactionId());
        final JsonElement parsedCommand = this.fromApiJsonHelper.parse(commandSourceInput.json());
        final JsonCommand command = JsonCommand.fromExistingCommand(makerCheckerId, commandSourceInput.json(), parsedCommand,
View Full Code Here

Examples of org.mifosplatform.commands.domain.CommandSource.resourceId()

                commandSourceInput.getResourceGetUrl(), commandSourceInput.getProductId(), commandSourceInput.getOfficeId(),
                commandSourceInput.getGroupId(), commandSourceInput.getClientId(), commandSourceInput.getLoanId(),
                commandSourceInput.getSavingsId(), commandSourceInput.getTransactionId());
        final JsonElement parsedCommand = this.fromApiJsonHelper.parse(commandSourceInput.json());
        final JsonCommand command = JsonCommand.fromExistingCommand(makerCheckerId, commandSourceInput.json(), parsedCommand,
                this.fromApiJsonHelper, commandSourceInput.getEntityName(), commandSourceInput.resourceId(),
                commandSourceInput.subresourceId(), commandSourceInput.getGroupId(), commandSourceInput.getClientId(),
                commandSourceInput.getLoanId(), commandSourceInput.getSavingsId(), commandSourceInput.getTransactionId(),
                commandSourceInput.getResourceGetUrl(), commandSourceInput.getProductId());

        final boolean makerCheckerApproval = true;
View Full Code Here

Examples of org.mifosplatform.infrastructure.core.data.CommandProcessingResult.resourceId()

            commandSourceResult = this.commandSourceRepository.findOne(command.commandId());
            commandSourceResult.markAsChecked(maker, DateTime.now());
        } else {
            commandSourceResult = CommandSource.fullEntryFrom(wrapper, command, maker);
        }
        commandSourceResult.updateResourceId(result.resourceId());
        commandSourceResult.updateForAudit(result.getOfficeId(), result.getGroupId(), result.getClientId(), result.getLoanId(),
                result.getSavingsId(), result.getProductId(), result.getTransactionId());

        String changesOnlyJson = null;
        if (result.hasChanges()) {
View Full Code Here

Examples of org.opengis.filter.FilterFactory.resourceId()

        // This is in consistent as the FIRST entry cannot have a previous1
        ResourceIdImpl resourceId =  new ResourceIdImpl("rid1", "abc", new Version(FIRST));
        resourceId.setPreviousRid("previous1");
        assertEquals( resourceId.getID(), ids.get(0).getID());
       
        assertEquals(ff.resourceId("rid2", "", new Version(LAST)).getID(),
                     ids.get(1).getID());
        assertEquals(ff.resourceId("rid3", "", new Version(PREVIOUS)).getID(),
                     ids.get(2).getID());
        assertEquals(ff.resourceId("rid4", "", new Version(NEXT)).getID(),
                     ids.get(3).getID());
View Full Code Here

Examples of org.opengis.filter.FilterFactory.resourceId()

        resourceId.setPreviousRid("previous1");
        assertEquals( resourceId.getID(), ids.get(0).getID());
       
        assertEquals(ff.resourceId("rid2", "", new Version(LAST)).getID(),
                     ids.get(1).getID());
        assertEquals(ff.resourceId("rid3", "", new Version(PREVIOUS)).getID(),
                     ids.get(2).getID());
        assertEquals(ff.resourceId("rid4", "", new Version(NEXT)).getID(),
                     ids.get(3).getID());
        assertEquals(ff.resourceId("rid5", "", new Version(ALL)).getID(),
                     ids.get(4).getID());
View Full Code Here

Examples of org.opengis.filter.FilterFactory.resourceId()

       
        assertEquals(ff.resourceId("rid2", "", new Version(LAST)).getID(),
                     ids.get(1).getID());
        assertEquals(ff.resourceId("rid3", "", new Version(PREVIOUS)).getID(),
                     ids.get(2).getID());
        assertEquals(ff.resourceId("rid4", "", new Version(NEXT)).getID(),
                     ids.get(3).getID());
        assertEquals(ff.resourceId("rid5", "", new Version(ALL)).getID(),
                     ids.get(4).getID());
       
        // This is inconsistent as date and resource based query cannot be used at the same time
View Full Code Here

Examples of org.opengis.filter.FilterFactory.resourceId()

                     ids.get(1).getID());
        assertEquals(ff.resourceId("rid3", "", new Version(PREVIOUS)).getID(),
                     ids.get(2).getID());
        assertEquals(ff.resourceId("rid4", "", new Version(NEXT)).getID(),
                     ids.get(3).getID());
        assertEquals(ff.resourceId("rid5", "", new Version(ALL)).getID(),
                     ids.get(4).getID());
       
        // This is inconsistent as date and resource based query cannot be used at the same time
        ResourceIdImpl resourceId2 =  new ResourceIdImpl("rid6", "", new Version(4));
        resourceId2.setPreviousRid("previous2");
View Full Code Here

Examples of org.opengis.filter.FilterFactory.resourceId()

        resourceId2.setStartTime(date1);
        resourceId2.setEndTime(date2);
        assertEquals( resourceId2.getID(),
                      ids.get(5).getID());
       
        assertEquals(ff.resourceId("rid7", "123"new Version(date1)).getID(), ids.get(6).getID());
    }
}
View Full Code Here

Examples of org.opengis.filter.FilterFactory2.resourceId()

   
    // grab a specific revision
    filter = ff.id( ff.featureId("CITY.98734597823459687235","A457") );
   
    // You can also use ResourceId to grab a specific revision
    filter = ff.id( ff.resourceId("CITY.98734597823459687235","A457", new Version()) );
   
    // grab the one before that
    filter = ff.id(ff.resourceId("CITY.98734597823459687235","A457",new Version(Action.PREVIOUS) ));
   
     // grab the one after that
View Full Code Here

Examples of org.opengis.filter.FilterFactory2.resourceId()

   
    // You can also use ResourceId to grab a specific revision
    filter = ff.id( ff.resourceId("CITY.98734597823459687235","A457", new Version()) );
   
    // grab the one before that
    filter = ff.id(ff.resourceId("CITY.98734597823459687235","A457",new Version(Action.PREVIOUS) ));
   
     // grab the one after that
    filter = ff.id(ff.resourceId("CITY.98734597823459687235","A457",new Version(Action.NEXT) ));
   
     // grab the first one
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.