Interface GroupResourceVirtualAttributesModuleImplApi

All Superinterfaces:
AttributesModuleImplApi, GroupResourceAttributesModuleImplApi, VirtualAttributesModuleImplApi
All Known Implementing Classes:
GroupResourceVirtualAttributesModuleAbstract, urn_perun_group_resource_attribute_def_virt_googleGroupName, urn_perun_group_resource_attribute_def_virt_unixGID, urn_perun_group_resource_attribute_def_virt_unixGroupName

public interface GroupResourceVirtualAttributesModuleImplApi extends GroupResourceAttributesModuleImplApi, VirtualAttributesModuleImplApi
This interface serves as a template for virtual attributes.
Author:
Slavek Licehammer <glory@ics.muni.cz>
  • Method Details

    • getAttributeValue

      Attribute getAttributeValue(PerunSessionImpl sess, Group group, Resource resource, AttributeDefinition attribute)
      This method will return computed value.
      Parameters:
      sess - perun session
      group - group which is needed for computing the value
      resource - resource which is needed for computing the value
      attribute - attribute to operate on
      Returns:
      Throws:
      InternalErrorException - if an exception is raised in particular implementation, the exception is wrapped in InternalErrorException
    • removeAttributeValue

      boolean removeAttributeValue(PerunSessionImpl sess, Group group, Resource resource, AttributeDefinition attribute)
      Currently do nothing.
      Parameters:
      sess -
      group - group which is needed for computing the value
      resource - resource which is needed for computing the value
      attribute - attribute to operate on
      Returns:
      true if attribute was changed (deleted) or false if attribute was not present in a first place
    • setAttributeValue

      boolean setAttributeValue(PerunSessionImpl sess, Group group, Resource resource, Attribute attribute) throws WrongReferenceAttributeValueException
      Method sets attributes' values which are dependent on this virtual attribute.
      Parameters:
      sess -
      group - group which is needed for computing the value
      resource - resource which is needed for computing the value
      attribute - attribute to operate on
      Returns:
      true if attribute was really changed
      Throws:
      InternalErrorException - if an exception is raised in particular implementation, the exception is wrapped in InternalErrorException
      WrongReferenceAttributeValueException