io.camunda.webapps.schema.entities.usermanagement.AuthorizationEntity Maven / Gradle / Ivy
/*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under
* one or more contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright ownership.
* Licensed under the Camunda License 1.0. You may not use this file
* except in compliance with the Camunda License 1.0.
*/
package io.camunda.webapps.schema.entities.usermanagement;
import io.camunda.security.entity.Permission;
import io.camunda.webapps.schema.entities.AbstractExporterEntity;
import java.util.List;
public class AuthorizationEntity extends AbstractExporterEntity {
public static final String DEFAULT_TENANT_IDENTIFIER = "";
private String id;
private Long ownerKey;
private String ownerType;
private String resourceType;
private List permissions;
public AuthorizationEntity() {}
@Override
public String getId() {
return id;
}
@Override
public AuthorizationEntity setId(final String id) {
this.id = id;
return this;
}
public Long getOwnerKey() {
return ownerKey;
}
public AuthorizationEntity setOwnerKey(final Long ownerKey) {
this.ownerKey = ownerKey;
return this;
}
public String getOwnerType() {
return ownerType;
}
public AuthorizationEntity setOwnerType(final String ownerType) {
this.ownerType = ownerType;
return this;
}
public String getResourceType() {
return resourceType;
}
public AuthorizationEntity setResourceType(final String resourceType) {
this.resourceType = resourceType;
return this;
}
public List getPermissions() {
return permissions == null ? List.of() : permissions;
}
public AuthorizationEntity setPermissions(final List permissions) {
this.permissions = permissions;
return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy