APISonar


org.zstack.header.message.DocUtils.date

> org > zstack > header > message > DocUtils > date
org APIs zstack APIs header APIs message APIs DocUtils APIs date APIs

Example 1
public static APICleanInvalidLdapBindingEvent __example__() {
        APICleanInvalidLdapBindingEvent event = new APICleanInvalidLdapBindingEvent();
        AccountInventory inventory = new AccountInventory();
        inventory.setName("admin");
        inventory.setUuid(uuid());
        inventory.setType(AccountType.Normal.toString());
        inventory.setCreateDate(new Timestamp(DocUtils.date));
        inventory.setLastOpDate(new Timestamp(DocUtils.date));

        event.setInventories(list(inventory));
        return event;
    }
Example 2
public static APIGetTaskProgressReply __example__() {
        APIGetTaskProgressReply msg = new APIGetTaskProgressReply();
        TaskProgressInventory inv = new TaskProgressInventory();
        inv.setContent("Choose backup storage for downloading the image");
        inv.setTaskName("org.zstack.header.vm.APICreateVmInstanceMsg");
        inv.setTaskUuid("931102503f64436ea649939ff3957406");
        inv.setTime(DocUtils.date);
        inv.setType("Task");
        msg.setInventories(asList(inv));
        return msg;
    }