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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
changedAttributeHook
(PerunSessionImpl session, Member member, Attribute attribute) If you need to do some further work with other modules, this method do thatvoid
checkAttributeSyntax
(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
checkAttributeSemantics
Methods inherited from class cz.metacentrum.perun.core.implApi.modules.attributes.AttributesModuleAbstract
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
getAuthorizedRoles, getDependencies, resolveVirtualAttributeValueChange
Methods 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:MemberAttributesModuleImplApi
If you need to do some further work with other modules, this method do that- Specified by:
changedAttributeHook
in interfaceMemberAttributesModuleImplApi
- Overrides:
changedAttributeHook
in 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:
checkAttributeSyntax
in interfaceMemberAttributesModuleImplApi
- Overrides:
checkAttributeSyntax
in 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:
fillAttribute
in interfaceMemberAttributesModuleImplApi
- Overrides:
fillAttribute
in classMemberAttributesModuleAbstract
- Parameters:
perunSession
- Perun Sessionmember
- Memberattribute
- Attribute of the member- Returns:
- Attribute which MAY be filled in
-
getAttributeDefinition
Description copied from interface:AttributesModuleImplApi
Return attributes definition which is represented by the module- Specified by:
getAttributeDefinition
in interfaceAttributesModuleImplApi
- Overrides:
getAttributeDefinition
in classAttributesModuleAbstract
- Returns:
- attribute definition
-