/** * Creates a new account creator instance * * @return */ public AccountCreator newAccountCreator() { return factory.newCreator(null); }
public AccountQuery newQuery() { return factory.newQuery(null); } }
/** * Creates a new account instance * * @return */ public Account newAccount() { return factory.newEntity(null); }
/** * Creates a new organization instance * * @return */ public Organization newOrganization() { return factory.newOrganization(); }
/** * Creates a new account list result instance * * @return */ public AccountListResult newAccountListResult() { return factory.newListResult(); }
@ApiParam(value = "The result set offset.", defaultValue = "0") @QueryParam("offset") @DefaultValue("0") int offset, // @ApiParam(value = "The result set limit.", defaultValue = "50") @QueryParam("limit") @DefaultValue("50") int limit) throws Exception { AccountQuery query = accountFactory.newQuery(scopeId);
Account createAccount(String name, String orgName, String orgEmail) throws KapuaException { configureAccountService(ROOT_SCOPE_ID, SYS_ID); AccountCreator accountCreator = accountFactory.newCreator(ROOT_SCOPE_ID, name); accountCreator.setOrganizationName(orgName); accountCreator.setOrganizationEmail(orgEmail); return accountService.create(accountCreator); }
AccountQuery childAccountsQuery = accountFactory.newQuery(scopeId);
AccountCreator accountCreator = accountFactory.newCreator(settings.getRootAccount(), name); accountCreator.setOrganizationEmail(email); accountCreator.setOrganizationName(name);
AccountQuery childAccountsQuery = accountFactory.newQuery(scopeId);