Class UserPersistentShadowAttribute
java.lang.Object
cz.metacentrum.perun.core.implApi.modules.attributes.AttributesModuleAbstract
cz.metacentrum.perun.core.implApi.modules.attributes.UserAttributesModuleAbstract
cz.metacentrum.perun.core.impl.modules.attributes.urn_perun_user_attribute_def_def_login_namespace
cz.metacentrum.perun.core.implApi.modules.attributes.UserPersistentShadowAttribute
- All Implemented Interfaces:
AttributesModuleImplApi,UserAttributesModuleImplApi
- Direct Known Subclasses:
urn_perun_user_attribute_def_def_login_namespace_bbmri_persistent_shadow,urn_perun_user_attribute_def_def_login_namespace_eduteams_acc_persistent_shadow,urn_perun_user_attribute_def_def_login_namespace_einfraid_persistent_shadow,urn_perun_user_attribute_def_def_login_namespace_elixir_persistent_shadow,urn_perun_user_attribute_def_def_login_namespace_elterid_persistent_shadow,urn_perun_user_attribute_def_def_login_namespace_envriid_persistent_shadow,urn_perun_user_attribute_def_def_login_namespace_mu_persistent_shadow,UserPersistentShadowAttributeWithConfig
public abstract class UserPersistentShadowAttribute
extends urn_perun_user_attribute_def_def_login_namespace
Abstract class that can be used to created persistent shadow modules.
- Author:
- Vojtech Sassmann invalid input: '<'vojtech.sassmann@gmail.com>
-
Field Summary
Fields inherited from class cz.metacentrum.perun.core.impl.modules.attributes.urn_perun_user_attribute_def_def_login_namespace
generatedNamespaces -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchangedAttributeHook(PerunSessionImpl session, User user, Attribute attribute) ChangedAttributeHook() sets UserExtSource with following properties: - extSourceType is IdP - extSourceName is {getExtSourceName()} - user's extSource login is the same as his persistent attributefillAttribute(PerunSessionImpl perunSession, User user, AttributeDefinition attribute) Format is: "[hash]@{getDomainName()}" where [hash] represents sha1hash counted from user's id and perun instance id a login-namespace name.Return attributes definition which is represented by the moduleabstract StringGet description of the attribute.abstract StringGet attribute's display name.abstract StringGet domain name that is used to fill the attribute valueabstract StringGet name of the extSource where the login will be set.abstract StringGet attribute's friendly name.abstract StringGet attribute's friendly name parameter.Methods inherited from class cz.metacentrum.perun.core.impl.modules.attributes.urn_perun_user_attribute_def_def_login_namespace
checkAttributeSemantics, checkAttributeSyntax, sha1HashCountMethods inherited from class cz.metacentrum.perun.core.implApi.modules.attributes.UserAttributesModuleAbstract
deletedEntityHook, getAnonymizedValueMethods 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.UserAttributesModuleImplApi
deletedEntityHook, getAnonymizedValue
-
Constructor Details
-
UserPersistentShadowAttribute
public UserPersistentShadowAttribute()
-
-
Method Details
-
changedAttributeHook
ChangedAttributeHook() sets UserExtSource with following properties: - extSourceType is IdP - extSourceName is {getExtSourceName()} - user's extSource login is the same as his persistent attribute- Specified by:
changedAttributeHookin interfaceUserAttributesModuleImplApi- Overrides:
changedAttributeHookin classUserAttributesModuleAbstract- Parameters:
session- sessionuser- the userattribute- the attribute
-
fillAttribute
public Attribute fillAttribute(PerunSessionImpl perunSession, User user, AttributeDefinition attribute) Format is: "[hash]@{getDomainName()}" where [hash] represents sha1hash counted from user's id and perun instance id a login-namespace name.- Specified by:
fillAttributein interfaceUserAttributesModuleImplApi- Overrides:
fillAttributein classurn_perun_user_attribute_def_def_login_namespace- Parameters:
perunSession- PerunSessionuser- User to fill attribute forattribute- Attribute to fill value to- Returns:
- Filled attribute
-
getAttributeDefinition
Description copied from interface:AttributesModuleImplApiReturn attributes definition which is represented by the module- Specified by:
getAttributeDefinitionin interfaceAttributesModuleImplApi- Overrides:
getAttributeDefinitionin classAttributesModuleAbstract- Returns:
- attribute definition
-
getDescription
Get description of the attribute.- Returns:
- attribute's description
-
getDisplayName
Get attribute's display name.- Returns:
- attribute's display name
-
getDomainName
Get domain name that is used to fill the attribute value- Returns:
- domain name used in fill
-
getExtSourceName
Get name of the extSource where the login will be set.- Returns:
- extSource name for the login
-
getFriendlyName
Get attribute's friendly name.- Returns:
- attribute's friendly name
-
getFriendlyNameParameter
Get attribute's friendly name parameter.- Returns:
- attribute's friendly name parameter.
-