Class urn_perun_group_attribute_def_def_applicationExpirationRules
java.lang.Object
cz.metacentrum.perun.core.implApi.modules.attributes.AttributesModuleAbstract
cz.metacentrum.perun.core.implApi.modules.attributes.AbstractApplicationExpirationRulesModule<Group>
cz.metacentrum.perun.core.impl.modules.attributes.urn_perun_group_attribute_def_def_applicationExpirationRules
- All Implemented Interfaces:
AttributesModuleImplApi
,GroupAttributesModuleImplApi
public class urn_perun_group_attribute_def_def_applicationExpirationRules
extends AbstractApplicationExpirationRulesModule<Group>
implements GroupAttributesModuleImplApi
- Author:
- Jakub Hejda <Jakub.Hejda@cesnet.cz>
-
Field Summary
Fields inherited from class cz.metacentrum.perun.core.implApi.modules.attributes.AbstractApplicationExpirationRulesModule
applicationIgnoredByAdminKeyName, applicationWaitingForEmailVerificationKeyName
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
changedAttributeHook
(PerunSessionImpl session, Group group, Attribute attribute) If you need to do some further work with other modules, this method do thatvoid
checkAttributeSemantics
(PerunSessionImpl perunSession, Group group, Attribute attribute) Checks if value of this group attribute has valid semantics.void
checkAttributeSyntax
(PerunSessionImpl perunSession, Group group, Attribute attribute) Checks if value of this group attribute has valid syntax.fillAttribute
(PerunSessionImpl perunSession, Group group, AttributeDefinition attribute) This method MAY fill an attribute at the specified resource.Return attributes definition which is represented by the moduleMethods 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
-
Constructor Details
-
urn_perun_group_attribute_def_def_applicationExpirationRules
public urn_perun_group_attribute_def_def_applicationExpirationRules()
-
-
Method Details
-
fillAttribute
public Attribute fillAttribute(PerunSessionImpl perunSession, Group group, AttributeDefinition attribute) throws WrongAttributeAssignmentException Description copied from interface:GroupAttributesModuleImplApi
This method MAY fill an attribute at the specified resource.- Specified by:
fillAttribute
in interfaceGroupAttributesModuleImplApi
- Parameters:
perunSession
- perun sessiongroup
- groupattribute
- attribute to fill in- Returns:
- Throws:
WrongAttributeAssignmentException
-
checkAttributeSyntax
public void checkAttributeSyntax(PerunSessionImpl perunSession, Group group, Attribute attribute) throws WrongAttributeValueException Description copied from interface:GroupAttributesModuleImplApi
Checks if value of this group attribute has valid syntax.- Specified by:
checkAttributeSyntax
in interfaceGroupAttributesModuleImplApi
- Overrides:
checkAttributeSyntax
in classAbstractApplicationExpirationRulesModule<Group>
- Parameters:
perunSession
- perun sessiongroup
- string for which you want to check validity of attributeattribute
- attribute to check- Throws:
WrongAttributeValueException
- if the attribute value has wrong/illegal syntax
-
checkAttributeSemantics
public void checkAttributeSemantics(PerunSessionImpl perunSession, Group group, Attribute attribute) throws WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:GroupAttributesModuleImplApi
Checks if value of this group attribute has valid semantics.- Specified by:
checkAttributeSemantics
in interfaceGroupAttributesModuleImplApi
- Parameters:
perunSession
- perun sessiongroup
- groupattribute
- attribute to check- Throws:
WrongAttributeAssignmentException
- if attribute does not belong to appropriate entityWrongReferenceAttributeValueException
- if the attribute value has wrong/illegal semantics
-
changedAttributeHook
public void changedAttributeHook(PerunSessionImpl session, Group group, Attribute attribute) throws WrongReferenceAttributeValueException Description copied from interface:GroupAttributesModuleImplApi
If you need to do some further work with other modules, this method do that- Specified by:
changedAttributeHook
in interfaceGroupAttributesModuleImplApi
- Parameters:
session
- sessiongroup
- the groupattribute
- the attribute- Throws:
WrongReferenceAttributeValueException
-
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
-