SmeeView.Aspects.DiscoHints (SmeeView v0.1.0) View Source
This aspect contains a bundle of related Discovery ("Disco") aspects from entity metadata.
Since scopes, networks, gelocations, domains, keywords, etc are often used together this Aspect exists to make gathering them all a little simpler.
You can extract and process each of the different types of aspects using their own View modules:
Link to this section Summary
Functions
Return list of domain asspects (from <mdui:DomainHints> elements)
Returns a list of geolocation aspects (from <mdui:GeolocationHint> elements)
Is this aspect relevant to the IdP role?
Returns list of keyword aspects (from <mdui:Keywords> elements)
Returns a list of network aspects (from <mdui:IPHint> elements)
Returns the associated role for this aspect: :sp, :idp or :all
Returns a list of scope aspects used by the entity
Is this aspect relevant to the SP role?
Link to this section Types
Specs
Link to this section Functions
Specs
Return list of domain asspects (from <mdui:DomainHints> elements)
DiscoHints.domains(aspect)
# => [%Domain{}, %Domain{}]
Specs
Returns a list of geolocation aspects (from <mdui:GeolocationHint> elements)
DiscoHints.geolocations(aspect)
# => [%Network{}. %Network{}]
Specs
Is this aspect relevant to the IdP role?
Will return true
if the aspect has been derived from an IdP role, or is applicable to all roles.
DiscoHints.idp?(aspect)
# => true
Specs
Returns list of keyword aspects (from <mdui:Keywords> elements)
DiscoHints.keywords(aspect)
# => [%Keywords{}]
Specs
Returns a list of network aspects (from <mdui:IPHint> elements)
DiscoHints.networks(aspect)
# => [%Network{}. %Network{}]
Specs
Returns the associated role for this aspect: :sp, :idp or :all
The role type is useful when handling a mixed list of aspects that may be specific to certain roles of an entity.
DiscoHints.role(aspect)
# => :idp
Specs
Returns a list of scope aspects used by the entity
DiscoHints.scopes(aspect)
# => [%Scope{regex: false, domain: "unseen.edu"}]
Specs
Is this aspect relevant to the SP role?
Will return true
if the aspect has been derived from an SP role, or is applicable to all roles.
DiscoHints.sp?(aspect)
# => false