Class urn_perun_member_attribute_def_def_membershipExpiration
java.lang.Object
cz.metacentrum.perun.core.implApi.modules.attributes.AttributesModuleAbstract
cz.metacentrum.perun.core.implApi.modules.attributes.MemberAttributesModuleAbstract
cz.metacentrum.perun.core.impl.modules.attributes.urn_perun_member_attribute_def_def_membershipExpiration
- All Implemented Interfaces:
AttributesModuleImplApi,MemberAttributesModuleImplApi
public class urn_perun_member_attribute_def_def_membershipExpiration
extends MemberAttributesModuleAbstract
implements MemberAttributesModuleImplApi
Checks and fills at specified membership expiration
- Author:
- Michal Šťava invalid input: '<'stava.michal@gmail.com>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchangedAttributeHook(PerunSessionImpl session, Member member, Attribute attribute) If you need to do some further work with other modules, this method do thatvoidcheckAttributeSyntax(PerunSessionImpl perunSession, Member member, Attribute attribute) Checks if the corresponding attribute um:membershipExpiration is null or matches with regular expression yyyy-MM-ddfillAttribute(PerunSessionImpl perunSession, Member member, AttributeDefinition attribute) Fill membership expiration time.Return attributes definition which is represented by the moduleMethods inherited from class cz.metacentrum.perun.core.implApi.modules.attributes.MemberAttributesModuleAbstract
checkAttributeSemanticsMethods inherited from class cz.metacentrum.perun.core.implApi.modules.attributes.AttributesModuleAbstract
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
getAuthorizedRoles, getDependencies, resolveVirtualAttributeValueChangeMethods inherited from interface cz.metacentrum.perun.core.implApi.modules.attributes.MemberAttributesModuleImplApi
checkAttributeSemantics
-
Constructor Details
-
urn_perun_member_attribute_def_def_membershipExpiration
public urn_perun_member_attribute_def_def_membershipExpiration()
-
-
Method Details
-
changedAttributeHook
Description copied from interface:MemberAttributesModuleImplApiIf you need to do some further work with other modules, this method do that- Specified by:
changedAttributeHookin interfaceMemberAttributesModuleImplApi- Overrides:
changedAttributeHookin classMemberAttributesModuleAbstract- Parameters:
session- sessionmember- the memberattribute- the attribute
-
checkAttributeSyntax
public void checkAttributeSyntax(PerunSessionImpl perunSession, Member member, Attribute attribute) throws WrongAttributeValueException Checks if the corresponding attribute um:membershipExpiration is null or matches with regular expression yyyy-MM-dd- Specified by:
checkAttributeSyntaxin interfaceMemberAttributesModuleImplApi- Overrides:
checkAttributeSyntaxin classMemberAttributesModuleAbstract- Parameters:
perunSession- Perun sessionmember- Memberattribute- Attribute of the member.- Throws:
WrongAttributeValueException- if the attribute value has wrong/illegal syntax
-
fillAttribute
public Attribute fillAttribute(PerunSessionImpl perunSession, Member member, AttributeDefinition attribute) Fill membership expiration time. If membership starts from Janury to September, time will be the last day of starting year, if membership start from October, to December, time will be the last day of next year.- Specified by:
fillAttributein interfaceMemberAttributesModuleImplApi- Overrides:
fillAttributein classMemberAttributesModuleAbstract- Parameters:
perunSession- Perun Sessionmember- Memberattribute- Attribute of the member- Returns:
- Attribute which MAY be filled in
-
getAttributeDefinition
Description copied from interface:AttributesModuleImplApiReturn attributes definition which is represented by the module- Specified by:
getAttributeDefinitionin interfaceAttributesModuleImplApi- Overrides:
getAttributeDefinitionin classAttributesModuleAbstract- Returns:
- attribute definition
-