Class urn_perun_user_facility_attribute_def_virt_login
java.lang.Object
cz.metacentrum.perun.core.implApi.modules.attributes.AttributesModuleAbstract
cz.metacentrum.perun.core.implApi.modules.attributes.UserFacilityAttributesModuleAbstract
cz.metacentrum.perun.core.implApi.modules.attributes.UserFacilityVirtualAttributesModuleAbstract
cz.metacentrum.perun.core.impl.modules.attributes.urn_perun_user_facility_attribute_def_virt_login
- All Implemented Interfaces:
AttributesModuleImplApi,UserFacilityAttributesModuleImplApi,UserFacilityVirtualAttributesModuleImplApi,VirtualAttributesModuleImplApi
public class urn_perun_user_facility_attribute_def_virt_login
extends UserFacilityVirtualAttributesModuleAbstract
implements UserFacilityVirtualAttributesModuleImplApi
Checks and fills at specified facility users login.
- Author:
- Lukáš Pravda invalid input: '<'luky.pravda@gmail.com>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckAttributeSemantics(PerunSessionImpl sess, User user, Facility facility, Attribute attribute) Calls checkAttribute on u:login-namespace:[login-namespace]fillAttribute(PerunSessionImpl sess, User user, Facility facility, AttributeDefinition attributeDefinition) Calls fillAttribute on u:login-namespace:[login-namespace]Return attributes definition which is represented by the modulegetAttributeValue(PerunSessionImpl sess, User user, Facility facility, AttributeDefinition attributeDefinition) Gets the value of the attribute f:login-namespace and then finds the value of the attribute u:login-namespace:[login-namespace]Get list of attributes whose value are used in checking of validity of this attribute.Get list of attributes which this attribute value is computed from.booleansetAttributeValue(PerunSessionImpl sess, User user, Facility facility, Attribute attribute) Method sets attributes' values which are dependent on this virtual attribute.Methods inherited from class cz.metacentrum.perun.core.implApi.modules.attributes.UserFacilityVirtualAttributesModuleAbstract
removeAttributeValue, resolveVirtualAttributeValueChangeMethods inherited from class cz.metacentrum.perun.core.implApi.modules.attributes.UserFacilityAttributesModuleAbstract
changedAttributeHook, checkAttributeSyntaxMethods inherited from class cz.metacentrum.perun.core.implApi.modules.attributes.AttributesModuleAbstract
getAuthorizedRolesMethods 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, resolveVirtualAttributeValueChangeMethods inherited from interface cz.metacentrum.perun.core.implApi.modules.attributes.UserFacilityAttributesModuleImplApi
changedAttributeHook, checkAttributeSyntaxMethods inherited from interface cz.metacentrum.perun.core.implApi.modules.attributes.UserFacilityVirtualAttributesModuleImplApi
removeAttributeValue
-
Constructor Details
-
urn_perun_user_facility_attribute_def_virt_login
public urn_perun_user_facility_attribute_def_virt_login()
-
-
Method Details
-
checkAttributeSemantics
public void checkAttributeSemantics(PerunSessionImpl sess, User user, Facility facility, Attribute attribute) throws WrongReferenceAttributeValueException, WrongAttributeAssignmentException Calls checkAttribute on u:login-namespace:[login-namespace]- Specified by:
checkAttributeSemanticsin interfaceUserFacilityAttributesModuleImplApi- Overrides:
checkAttributeSemanticsin classUserFacilityAttributesModuleAbstract- Parameters:
sess- Perun sessionuser- User of the facility.facility- Facility to be used by a user.attribute- Attribute in relationship between facility and user.- Throws:
WrongReferenceAttributeValueException- if the attribute value has wrong/illegal semanticsWrongAttributeAssignmentException
-
fillAttribute
public Attribute fillAttribute(PerunSessionImpl sess, User user, Facility facility, AttributeDefinition attributeDefinition) throws WrongAttributeAssignmentException Calls fillAttribute on u:login-namespace:[login-namespace]- Specified by:
fillAttributein interfaceUserFacilityAttributesModuleImplApi- Overrides:
fillAttributein classUserFacilityAttributesModuleAbstract- Parameters:
sess- Perun Sessionuser- User of the facilityfacility- Facility to be used by user.attributeDefinition- Attribute in relationship between facility and user to be filled in.- Returns:
- Attribute which MAY be filled in
- Throws:
WrongAttributeAssignmentException
-
getAttributeDefinition
Description copied from interface:AttributesModuleImplApiReturn attributes definition which is represented by the module- Specified by:
getAttributeDefinitionin interfaceAttributesModuleImplApi- Overrides:
getAttributeDefinitionin classAttributesModuleAbstract- Returns:
- attribute definition
-
getAttributeValue
public Attribute getAttributeValue(PerunSessionImpl sess, User user, Facility facility, AttributeDefinition attributeDefinition) Gets the value of the attribute f:login-namespace and then finds the value of the attribute u:login-namespace:[login-namespace]- Specified by:
getAttributeValuein interfaceUserFacilityVirtualAttributesModuleImplApi- Overrides:
getAttributeValuein classUserFacilityVirtualAttributesModuleAbstract- Parameters:
sess- perun sessionuser- user which is needed for computing the valuefacility- facility which is needed for computing the valueattributeDefinition- attribute to operate on- Returns:
-
getDependencies
Description copied from interface:AttributesModuleImplApiGet list of attributes whose value are used in checking of validity of this attribute. In other words any change of these attributes' values can cause that value of this attribute is no longer valid.An attribute should depend on all attributes which values are used in method "checkAttributeSemantics" defined in attribute module.
- Specified by:
getDependenciesin interfaceAttributesModuleImplApi- Overrides:
getDependenciesin classAttributesModuleAbstract- Returns:
- list of attributes this attribute depends on
- See Also:
-
getStrongDependencies
Description copied from interface:VirtualAttributesModuleImplApiGet list of attributes which this attribute value is computed from. In other words attributes whose values change can also directly affect value of this attribute.An attribute should strongly depend on all attributes which values are used in method "getAttributeValue" defined in attribute module for virtual attributes.
- Specified by:
getStrongDependenciesin interfaceVirtualAttributesModuleImplApi- Overrides:
getStrongDependenciesin classUserFacilityVirtualAttributesModuleAbstract- Returns:
- list of attributes this attribute strongly depends on
- See Also:
-
setAttributeValue
public boolean setAttributeValue(PerunSessionImpl sess, User user, Facility facility, Attribute attribute) throws WrongReferenceAttributeValueException Description copied from interface:UserFacilityVirtualAttributesModuleImplApiMethod sets attributes' values which are dependent on this virtual attribute.- Specified by:
setAttributeValuein interfaceUserFacilityVirtualAttributesModuleImplApi- Overrides:
setAttributeValuein classUserFacilityVirtualAttributesModuleAbstract- Parameters:
sess-user- user which is needed for computing the valuefacility- facility which is needed for computing the valueattribute- attribute to operate on- Returns:
- true if attribute was really changed
- Throws:
WrongReferenceAttributeValueException
-