use of cz.metacentrum.perun.core.api.exceptions.ResourceTagNotAssignedException in project perun by CESNET.
the class ResourcesManagerBlImpl method removeResourceTagFromResource.
@Override
public void removeResourceTagFromResource(PerunSession perunSession, ResourceTag resourceTag, Resource resource) throws ResourceTagNotAssignedException {
List<ResourceTag> allResourceTags = this.getAllResourcesTagsForResource(perunSession, resource);
if (!allResourceTags.contains(resourceTag))
throw new ResourceTagNotAssignedException(resourceTag);
getResourcesManagerImpl().removeResourceTagFromResource(perunSession, resourceTag, resource);
}
Aggregations