Examples of Tenant


Examples of com.avaje.tests.model.m2m.Tenant

    Ebean.createUpdate(Permission.class, "delete from Permission").execute();
    Ebean.createUpdate(Tenant.class, "delete from Tenant").execute();
    Ebean.createUpdate(Role.class, "delete from Role").execute();

    Tenant t = new Tenant();
    t.setName("tenant");

    Ebean.save(t);

    Permission p1 = new Permission();
    Permission p2 = new Permission();
View Full Code Here

Examples of com.avaje.tests.model.m2m.Tenant

   
    Ebean.createUpdate(Permission.class, "delete from Permission").execute();
    Ebean.createUpdate(Tenant.class, "delete from Tenant").execute();
    Ebean.createUpdate(Role.class, "delete from Role").execute();
   
    Tenant tenant1 = new Tenant();
    tenant1.setName("Tenant");

    Ebean.save(tenant1);

    Permission p1 = new Permission();
    Permission p2 = new Permission();
View Full Code Here

Examples of com.btmatthews.atlas.tenancy.support.domain.Tenant

            final FilterChain chain)
            throws ServletException, IOException {
        if (request instanceof HttpServletRequest) {
            final String headerValue = ((HttpServletRequest) request).getHeader(headerName);
            if (headerValue != null) {
                final Tenant tenant = tenantService.lookupTenantByKey(headerValue);
                if (tenant != null) {
                    LOGGER.debug("Tenant being set for tenant key {}", headerValue);
                    TenantContextHolder.push(tenant);
                    try {
                        chain.doFilter(request, response);
View Full Code Here

Examples of com.saasovation.collaboration.domain.model.tenant.Tenant

        super();
    }

    protected Calendar calendarAggregate() {

        Tenant tenant = new Tenant("01234567");

        Calendar calendar =
            new Calendar(
                    tenant,
                    DomainRegistry.calendarRepository().nextIdentity(),
View Full Code Here

Examples of com.saasovation.identityaccess.domain.model.identity.Tenant

    @Transactional
    public void provisionRole(ProvisionRoleCommand aCommand) {

        TenantId tenantId = new TenantId(aCommand.getTenantId());

        Tenant tenant = this.tenantRepository().tenantOfId(tenantId);

        Role role =
                tenant.provisionRole(
                        aCommand.getRoleName(),
                        aCommand.getDescription(),
                        aCommand.isSupportsNesting());

        this.roleRepository().add(role);
View Full Code Here

Examples of com.woorea.openstack.keystone.model.Tenant

 
  public static void main(String[] args) {
    Keystone client = new Keystone(KEYSTONE_ENDPOINT);
    client.setTokenProvider(new OpenStackSimpleTokenProvider("secret0"));
    client.tenants().delete("36c481aec1d54fc49190c92c3ef6840a").execute();
    Tenant tenant = client.tenants().create(new Tenant("new_api")).execute();
    System.out.println(tenant);
    System.out.println(client.tenants().list().execute());
    client.tenants().delete(tenant.getId()).execute();
  }
View Full Code Here

Examples of com.woorea.openstack.keystone.model.Tenant

        new UsernamePassword(ExamplesConfiguration.KEYSTONE_USERNAME, ExamplesConfiguration.KEYSTONE_PASSWORD))
        .execute();

    access = keystone.tokens().authenticate(new TokenAuthentication(access.getToken().getId())).withTenantName("admin").execute();

    Tenant tenant = new Tenant();
    tenant.setName("benn.cs");
    tenant.setDescription("benn.cs");
    tenant.setEnabled(true);
    //Get the adminURL client and use the token got above
    keystone = new Keystone("http://keystone.x.org/v2.0");
    keystone.token(access.getToken().getId());
    tenant = keystone.tenants().create(tenant).execute();
    System.out.println(tenant);
    keystone.tenants().delete(tenant.getId());
  }
View Full Code Here

Examples of com.woorea.openstack.keystone.model.Tenant

  }

  @Override
  public void execute(Keystone keystone, CommandLine cmd) {
   
    Tenant tenant = new Tenant();
    tenant.setName(cmd.getOptionValue("name"));
    tenant.setDescription(cmd.getOptionValue("description"));
    if(cmd.getOptionValue("enabled") != null) {
      tenant.setEnabled(Boolean.TRUE);
    }
   
    tenant = keystone.tenants().create(tenant).execute();
   
    Table t = new Table(new TableModel<Tenant>(Arrays.asList(tenant)) {

      @Override
      public Column[] getHeaders() {
        return new Column[]{
          new Column("id", 32, Column.ALIGN_LEFT),
          new Column("name", 10, Column.ALIGN_LEFT),
          new Column("description", 32, Column.ALIGN_LEFT),
          new Column("enabled", 7, Column.ALIGN_LEFT)
        };
      }

      @Override
      public String[] getRow(Tenant tenant) {
        return new String[]{
          tenant.getId(),
          tenant.getName(),
          tenant.getDescription(),
          tenant.getEnabled().toString()
        };
      }
    });
    System.out.println(t.render());
  }
View Full Code Here

Examples of io.fathom.cloud.identity.api.os.model.v2.Tenant

        TokenInfo tokenInfo = loginService.buildTokenInfo(authentication);

        token.expires = TokenAuth.getExpiration(tokenInfo);
        token.id = tokenService.encodeToken(tokenInfo);
        if (project != null) {
            Tenant tenant = new Tenant();
            tenant.id = "" + project.getId();
            tenant.name = project.getName();
            token.tenant = tenant;
        }
View Full Code Here

Examples of org.apache.sling.tenant.Tenant

            if (matcher.find()) {
                // assuming that first group is tenantId in the path, we can
                // make group number configurable.
                if (matcher.groupCount() >= 1) {
                    String tenantId = matcher.group(1);
                    final Tenant tenant = this.tenantProvider.getTenant(tenantId);
                    if (tenant != null) {
                        return tenant;
                    }
                }
            }
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.