Interface MemberGroupVirtualAttributesModuleImplApi

All Superinterfaces:
AttributesModuleImplApi, MemberGroupAttributesModuleImplApi, VirtualAttributesModuleImplApi
All Known Implementing Classes:
MemberGroupVirtualAttributesModuleAbstract, urn_perun_member_group_attribute_def_virt_groupStatus, urn_perun_member_group_attribute_def_virt_groupStatusIndirect, urn_perun_member_group_attribute_def_virt_isGroupAdmin, urn_perun_member_group_attribute_def_virt_o365SendAs, urn_perun_member_group_attribute_def_virt_o365SendOnBehalf

public interface MemberGroupVirtualAttributesModuleImplApi extends MemberGroupAttributesModuleImplApi, VirtualAttributesModuleImplApi
This interface serves as a template for checking and filling in virtual attribute for a member in a specified group.

author: Oliver Mrazik version: 2015-04-16

  • Method Details

    • getAttributeValue

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

      boolean removeAttributeValue(PerunSessionImpl sess, Member member, Group group, AttributeDefinition attribute)
      Method remove attributes' value which are dependent on this virtual attribute.
      Parameters:
      sess - perun session
      member - member which is needed for computing the value
      group - group 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, Member member, Group group, Attribute attribute)
      Method sets attributes' values which are dependent on this virtual attribute.
      Parameters:
      sess - perun session
      member - member which is needed for computing the value
      group - group which is needed for computing the value
      attribute - attribute to operate on
      Returns:
      true if attribute was really changed