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
FieldsFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchangedAttributeHook(PerunSessionImpl session, Vo vo, Attribute attribute) If you need to do some further work with other modules, this method do thatvoidcheckAttributeSemantics(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 booleanisAllowedParameter(String parameter) If parameter (key) is allowed in HashMap for membershipExpirationRulesMethods inherited from class cz.metacentrum.perun.core.implApi.modules.attributes.AbstractMembershipExpirationRulesModule
checkAttributeSyntaxMethods 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.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:VoAttributesModuleImplApiIf you need to do some further work with other modules, this method do that- Specified by:
changedAttributeHookin 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:VoAttributesModuleImplApiChecks if value of this vo attribute has valid semantics.- Specified by:
checkAttributeSemanticsin interfaceVoAttributesModuleImplApi- Overrides:
checkAttributeSemanticsin 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:VoAttributesModuleImplApiThis method tries to fill appropriate Virtual Organization (Vo) attributes.- Specified by:
fillAttributein 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:AttributesModuleImplApiReturn attributes definition which is represented by the module- Specified by:
getAttributeDefinitionin interfaceAttributesModuleImplApi- Overrides:
getAttributeDefinitionin classAttributesModuleAbstract- Returns:
- attribute definition
-
isAllowedParameter
Description copied from class:AbstractMembershipExpirationRulesModuleIf parameter (key) is allowed in HashMap for membershipExpirationRules- Specified by:
isAllowedParameterin classAbstractMembershipExpirationRulesModule<Vo>- Parameters:
parameter- String- Returns:
- true if parameter is allowed, false if is not
-