Class ReferenceIdentityDefinition
Represents a references to a public (shared) identity.
Inherited Members
Namespace: Nevatech.Vsb.Repository.Services.Identities
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class ReferenceIdentityDefinition : IdentityDefinitionBase, IValidator, IExtensibleDataObject
Constructors
ReferenceIdentityDefinition(Identity)
Initializes a new instance that references the provided identity.
Declaration
public ReferenceIdentityDefinition(Identity identity)
Parameters
Type | Name | Description |
---|---|---|
Identity | identity | Public identity to be referenced. |
ReferenceIdentityDefinition(IdentityDefinitionBase)
Initializes a new instance that references the provided identity definition.
Declaration
public ReferenceIdentityDefinition(IdentityDefinitionBase identity)
Parameters
Type | Name | Description |
---|---|---|
IdentityDefinitionBase | identity | Public identity to be referenced. |
ReferenceIdentityDefinition(Int32, IdentityKind)
Initializes a new instance that references an identity with the specified id and kind.
Declaration
public ReferenceIdentityDefinition(int id, IdentityKind kind)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | id | Identifier of the referenced identity. |
IdentityKind | kind | Kind of the referenced identity. |
Properties
FriendlyName
Gets or sets the referenced identity friendly name.
Declaration
public override string FriendlyName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Kind
Gets the referenced identity kind.
Declaration
public override IdentityKind Kind { get; protected set; }
Property Value
Type | Description |
---|---|
IdentityKind |
Overrides
Methods
GetIdentity()
Returns Identity object populated with the data stored in this instance. The returned object can be used to persist identity data to database.
Declaration
public override Identity GetIdentity()
Returns
Type | Description |
---|---|
Identity | Identity object populated with the data stored in this instance. |
Overrides
Validate()
Validates this domain object's state.
Declaration
public override bool Validate()
Returns
Type | Description |
---|---|
System.Boolean | True if object's state is valid; otherwise, false. |