Class MemberGroupAttributesModuleAbstract
java.lang.Object
cz.metacentrum.perun.core.implApi.modules.attributes.AttributesModuleAbstract
cz.metacentrum.perun.core.implApi.modules.attributes.MemberGroupAttributesModuleAbstract
- All Implemented Interfaces:
AttributesModuleImplApi,MemberGroupAttributesModuleImplApi
- Direct Known Subclasses:
MemberGroupVirtualAttributesModuleAbstract,urn_perun_member_group_attribute_def_def_groupMembershipExpiration,urn_perun_member_group_attribute_def_def_lifecycleTimestamps
public abstract class MemberGroupAttributesModuleAbstract
extends AttributesModuleAbstract
implements MemberGroupAttributesModuleImplApi
Abstract class for Member Group Attributes modules.
----------------------------------------------------------------------------- Implements methods for modules to
perform default function. In the function that the method in the module does nothing, it is not necessary to
implement it, simply extend this abstract class.
author: Oliver Mrázik version: 2015-03-22
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchangedAttributeHook(PerunSessionImpl session, Member member, Group group, Attribute attribute) If you need to do some further work with other modules, this method do thatvoidcheckAttributeSemantics(PerunSessionImpl perunSession, Member member, Group group, Attribute attribute) This method checks semantics of Member's attribute value in a specified group.voidcheckAttributeSyntax(PerunSessionImpl perunSession, Member member, Group group, Attribute attribute) This method checks syntax of Member's attribute value in a specified group.fillAttribute(PerunSessionImpl session, Member member, Group group, AttributeDefinition attribute) This method MAY fill Member's attributes in a specified group.Methods inherited from class cz.metacentrum.perun.core.implApi.modules.attributes.AttributesModuleAbstract
getAttributeDefinition, getAuthorizedRoles, getDependencies, resolveVirtualAttributeValueChangeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface cz.metacentrum.perun.core.implApi.modules.attributes.AttributesModuleImplApi
getAttributeDefinition, getAuthorizedRoles, getDependencies, resolveVirtualAttributeValueChange
-
Constructor Details
-
MemberGroupAttributesModuleAbstract
public MemberGroupAttributesModuleAbstract()
-
-
Method Details
-
changedAttributeHook
public void changedAttributeHook(PerunSessionImpl session, Member member, Group group, Attribute attribute) Description copied from interface:MemberGroupAttributesModuleImplApiIf you need to do some further work with other modules, this method do that- Specified by:
changedAttributeHookin interfaceMemberGroupAttributesModuleImplApi- Parameters:
session- sessionmember- Membergroup- Groupattribute- the attribute
-
checkAttributeSemantics
public void checkAttributeSemantics(PerunSessionImpl perunSession, Member member, Group group, Attribute attribute) throws WrongReferenceAttributeValueException Description copied from interface:MemberGroupAttributesModuleImplApiThis method checks semantics of Member's attribute value in a specified group.- Specified by:
checkAttributeSemanticsin interfaceMemberGroupAttributesModuleImplApi- Parameters:
perunSession- Perun sessionmember- Membergroup- Groupattribute- Attribute to be checked.- Throws:
WrongReferenceAttributeValueException
-
checkAttributeSyntax
public void checkAttributeSyntax(PerunSessionImpl perunSession, Member member, Group group, Attribute attribute) throws WrongAttributeValueException Description copied from interface:MemberGroupAttributesModuleImplApiThis method checks syntax of Member's attribute value in a specified group.- Specified by:
checkAttributeSyntaxin interfaceMemberGroupAttributesModuleImplApi- Parameters:
perunSession- Perun sessionmember- Membergroup- Groupattribute- Attribute to be checked.- Throws:
WrongAttributeValueException- if the attribute value has wrong/illegal syntax
-
fillAttribute
public Attribute fillAttribute(PerunSessionImpl session, Member member, Group group, AttributeDefinition attribute) Description copied from interface:MemberGroupAttributesModuleImplApiThis method MAY fill Member's attributes in a specified group.- Specified by:
fillAttributein interfaceMemberGroupAttributesModuleImplApi- Parameters:
session- Perun sessionmember- Membergroup- Groupattribute- Attribute to be filled in- Returns:
- Attribute which MAY be filled in.
-