Interface MemberVirtualAttributesModuleImplApi

All Superinterfaces:
AttributesModuleImplApi, MemberAttributesModuleImplApi, VirtualAttributesModuleImplApi
All Known Implementing Classes:
MemberVirtualAttributesModuleAbstract, urn_perun_member_attribute_def_virt_isLifecycleAlterable, urn_perun_member_attribute_def_virt_isSuspended, urn_perun_member_attribute_def_virt_mails

public interface MemberVirtualAttributesModuleImplApi extends MemberAttributesModuleImplApi, VirtualAttributesModuleImplApi
This interface serves as a template for virtual attributes.
Author:
Michal Prochazka <michalp@ics.muni.cz>, Michal Stava <stavamichal@gmail.com>
  • Method Details

    • getAttributeValue

      Attribute getAttributeValue(PerunSessionImpl perunSession, Member member, AttributeDefinition attribute)
      This method will return computed value.
      Parameters:
      perunSession - perun session
      member - member 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
    • setAttributeValue

      boolean setAttributeValue(PerunSessionImpl perunSession, Member member, Attribute attribute)
      Method sets attributes' values which are dependent on this virtual attribute.
      Parameters:
      perunSession -
      member - member which is needed for computing the value
      attribute - attribute to operate on
      Returns:
    • removeAttributeValue

      void removeAttributeValue(PerunSessionImpl perunSession, Member member, AttributeDefinition attribute)
      Currently do nothing.
      Parameters:
      perunSession -
      member - member which is needed for computing the value
      attribute - attribute to operate on
      Throws:
      InternalErrorException - if an exception is raised in particular implementation, the exception is wrapped in InternalErrorException