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
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 TypeMethodDescriptionvoid
changedAttributeHook
(PerunSessionImpl session, Member member, Group group, Attribute attribute) If you need to do some further work with other modules, this method do thatvoid
checkAttributeSemantics
(PerunSessionImpl perunSession, Member member, Group group, Attribute attribute) This method checks semantics of Member's attribute value in a specified group.void
checkAttributeSyntax
(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, resolveVirtualAttributeValueChange
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:MemberGroupAttributesModuleImplApi
If you need to do some further work with other modules, this method do that- Specified by:
changedAttributeHook
in interfaceMemberGroupAttributesModuleImplApi
- Parameters:
session
- sessionmember
- Membergroup
- Groupattribute
- the attribute
-
checkAttributeSemantics
public void checkAttributeSemantics(PerunSessionImpl perunSession, Member member, Group group, Attribute attribute) Description copied from interface:MemberGroupAttributesModuleImplApi
This method checks semantics of Member's attribute value in a specified group.- Specified by:
checkAttributeSemantics
in interfaceMemberGroupAttributesModuleImplApi
- Parameters:
perunSession
- Perun sessionmember
- Membergroup
- Groupattribute
- Attribute to be checked.
-
checkAttributeSyntax
public void checkAttributeSyntax(PerunSessionImpl perunSession, Member member, Group group, Attribute attribute) throws WrongAttributeValueException Description copied from interface:MemberGroupAttributesModuleImplApi
This method checks syntax of Member's attribute value in a specified group.- Specified by:
checkAttributeSyntax
in 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:MemberGroupAttributesModuleImplApi
This method MAY fill Member's attributes in a specified group.- Specified by:
fillAttribute
in interfaceMemberGroupAttributesModuleImplApi
- Parameters:
session
- Perun sessionmember
- Membergroup
- Groupattribute
- Attribute to be filled in- Returns:
- Attribute which MAY be filled in.
-