Check if RepositoryAttribute can be created
This use case checks whether a RepositoryAttribute, which is an unshared LocalAttribute whose content is an IdentityAttribute, can be created without actually creating it.
If a RepositoryAttribute can be created, this can be achieved by executing the Create a RepositoryAttribute use case.
Parameters
- The
contentis an IdentityAttribute without theownerproperty, since its value would automatically be set to theaddressof your Identity during the potential creation of the RepositoryAttribute.
On Success
- Returns a
resultthat indicates if a RepositoryAttribute can be created based on the specifiedcontent. - If the
isSuccessproperty of theresulthas the valuetrue, the RepositoryAttribute can currently be created. - If the
isSuccessproperty of theresulthas the valuefalse, the RepositoryAttribute cannot currently be created. This may have the following reasons:- The provided
content.value.@typedoes not match one of the allowed IdentityAttribute value types. - There is already an existing RepositoryAttribute whose
succeededByproperty is undefined that has the exact samecontent.value.
- The provided
On Failure
- The parameters are malformed.