Class urn_perun_vo_attribute_def_def_membershipExpirationRules
java.lang.Object
cz.metacentrum.perun.core.implApi.modules.attributes.AttributesModuleAbstract
cz.metacentrum.perun.core.implApi.modules.attributes.AbstractMembershipExpirationRulesModule<Vo>
cz.metacentrum.perun.core.impl.modules.attributes.urn_perun_vo_attribute_def_def_membershipExpirationRules
- All Implemented Interfaces:
AttributesModuleImplApi
,VoAttributesModuleImplApi
public class urn_perun_vo_attribute_def_def_membershipExpirationRules
extends AbstractMembershipExpirationRulesModule<Vo>
implements VoAttributesModuleImplApi
- Author:
- Michal Prochazka <michalp@ics.muni.cz>
-
Field Summary
Fields inherited from class cz.metacentrum.perun.core.implApi.modules.attributes.AbstractMembershipExpirationRulesModule
AUTO_EXTENSION_EXT_SOURCES, AUTO_EXTENSION_LAST_LOGIN_PERIOD, EXPIRE_SPONSORED_MEMBERS, MEMBERSHIP_DO_NOT_ALLOW_LOA_KEY_NAME, MEMBERSHIP_DO_NOT_EXTEND_LOA_KEY_NAME, MEMBERSHIP_GRACE_PERIOD_KEY_NAME, MEMBERSHIP_PERIOD_KEY_NAME, MEMBERSHIP_PERIOD_LOA_KEY_NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
changedAttributeHook
(PerunSessionImpl session, Vo vo, Attribute attribute) If you need to do some further work with other modules, this method do thatvoid
checkAttributeSemantics
(PerunSessionImpl perunSession, Vo entity, Attribute attribute) Checks if value of this vo attribute has valid semantics.fillAttribute
(PerunSessionImpl sess, Vo vo, AttributeDefinition attribute) This method tries to fill appropriate Virtual Organization (Vo) attributes.Return attributes definition which is represented by the moduleprotected boolean
isAllowedParameter
(String parameter) If parameter (key) is allowed in HashMap for membershipExpirationRulesMethods inherited from class cz.metacentrum.perun.core.implApi.modules.attributes.AbstractMembershipExpirationRulesModule
checkAttributeSyntax
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.VoAttributesModuleImplApi
checkAttributeSyntax
-
Field Details
-
VO_EXPIRATION_RULES_ATTR
- See Also:
-
-
Constructor Details
-
urn_perun_vo_attribute_def_def_membershipExpirationRules
public urn_perun_vo_attribute_def_def_membershipExpirationRules()
-
-
Method Details
-
changedAttributeHook
Description copied from interface:VoAttributesModuleImplApi
If you need to do some further work with other modules, this method do that- Specified by:
changedAttributeHook
in interfaceVoAttributesModuleImplApi
- Parameters:
session
- sessionvo
- the voattribute
- the attribute
-
checkAttributeSemantics
public void checkAttributeSemantics(PerunSessionImpl perunSession, Vo entity, Attribute attribute) throws WrongReferenceAttributeValueException, WrongAttributeAssignmentException Description copied from interface:VoAttributesModuleImplApi
Checks if value of this vo attribute has valid semantics.- Specified by:
checkAttributeSemantics
in interfaceVoAttributesModuleImplApi
- Overrides:
checkAttributeSemantics
in classAbstractMembershipExpirationRulesModule<Vo>
- Parameters:
perunSession
- Perun sessionentity
- Virtual Organizationattribute
- attribute to be checked- Throws:
WrongReferenceAttributeValueException
- if the attribute value has wrong/illegal semanticsWrongAttributeAssignmentException
-
fillAttribute
Description copied from interface:VoAttributesModuleImplApi
This method tries to fill appropriate Virtual Organization (Vo) attributes.- Specified by:
fillAttribute
in interfaceVoAttributesModuleImplApi
- Parameters:
sess
- Perun sessionvo
- Virtual Organizationattribute
- Attribute of which you'd like to check.- Returns:
- attribute which MAY by 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
-
isAllowedParameter
Description copied from class:AbstractMembershipExpirationRulesModule
If parameter (key) is allowed in HashMap for membershipExpirationRules- Specified by:
isAllowedParameter
in classAbstractMembershipExpirationRulesModule<Vo>
- Parameters:
parameter
- String- Returns:
- true if parameter is allowed, false if is not
-