use of org.teiid.adminapi.impl.DataPolicyMetadata in project teiid by teiid.
the class EmbeddedAdminImpl method setAnyAuthenticatedForDataRole.
@Override
public void setAnyAuthenticatedForDataRole(String vdbName, String vdbVersion, String dataRole, boolean anyAuthenticated) throws AdminException {
VDBMetaData vdb = checkVDB(vdbName, vdbVersion);
synchronized (vdb) {
DataPolicyMetadata policy = getPolicy(vdb, dataRole);
policy.setAnyAuthenticated(anyAuthenticated);
}
}
use of org.teiid.adminapi.impl.DataPolicyMetadata in project teiid by teiid.
the class EmbeddedAdminImpl method removeDataRoleMapping.
@Override
public void removeDataRoleMapping(String vdbName, String vdbVersion, String dataRole, String mappedRoleName) throws AdminException {
VDBMetaData vdb = checkVDB(vdbName, vdbVersion);
synchronized (vdb) {
DataPolicyMetadata policy = getPolicy(vdb, dataRole);
policy.removeMappedRoleName(mappedRoleName);
}
}
Aggregations