IProfileClassificationAggregateService Interface
Namespace: PTS.Modules.ProfileClassificationAggregate.Domain
Assembly: PTS.Modules.ProfileClassificationAggregate.dll
Syntax
public interface IProfileClassificationAggregateService
Methods
GetLink(Profile, Classification)
Gets the ProfileClassification link between Profile and Classification.
Declaration
ProfileClassification GetLink(Profile profile, Classification classification)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | The profile. |
Classification | classification | The classification. |
Returns
Type | Description |
---|---|
ProfileClassification |
GetLinkAsync(Profile, Classification)
Gets the ProfileClassification link between Profile and Classification.
Declaration
Task<ProfileClassification> GetLinkAsync(Profile profile, Classification classification)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | The profile. |
Classification | classification | The classification. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ProfileClassification> | A System.Threading.Tasks.Task with result of ProfileClassification. |
GetProfileClassificationAggregate(Profile)
Gets the ProfileClassification links for profile
.
Declaration
List<ProfileClassification> GetProfileClassificationAggregate(Profile profile)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | The profile. |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<ProfileClassification> | The System.Collections.Generic.List<T>. |
GetProfileClassificationAggregateAsync(Profile)
Gets the ProfileClassification links for profile
.
Declaration
Task<List<ProfileClassification>> GetProfileClassificationAggregateAsync(Profile profile)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | The profile. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.List<ProfileClassification>> | A System.Threading.Tasks.Task with result of System.Collections.Generic.List<T>. |
ReplaceLinks(Profile, Int64[])
Replaces the ProfileClassification for profile
.
Declaration
List<ProfileClassification> ReplaceLinks(Profile profile, long[] classificationIds)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | The profile. |
System.Int64[] | classificationIds | The classification ids. |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<ProfileClassification> |
ReplaceLinksAsync(Profile, Int64[])
Replaces the ProfileClassification for profile
.
Declaration
Task<List<ProfileClassification>> ReplaceLinksAsync(Profile profile, long[] classificationIds)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | The profile. |
System.Int64[] | classificationIds | The classification ids. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.List<ProfileClassification>> |
SetLink(Profile, Classification, ValueType, Object, Int32)
Sets the ProfileClassification link between Profile and Classification.
Declaration
ProfileClassification SetLink(Profile profile, Classification classification, ValueType type = ValueType.None, object value = null, int sort = 0)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | The profile. |
Classification | classification | The classification. |
ValueType | type | The type. |
System.Object | value | The value. |
System.Int32 | sort | The sort. |
Returns
Type | Description |
---|---|
ProfileClassification |
SetLinkAsync(Profile, Classification, ValueType, Object, Int32)
Sets the ProfileClassification link between Profile and Classification.
Declaration
Task<ProfileClassification> SetLinkAsync(Profile profile, Classification classification, ValueType type = ValueType.None, object value = null, int sort = 0)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | The profile. |
Classification | classification | The classification. |
ValueType | type | The type. |
System.Object | value | The value. |
System.Int32 | sort | The sort. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ProfileClassification> | A System.Threading.Tasks.Task with result of ProfileClassification. |
UnsetLink(Profile, Classification)
Unsets the ProfileClassification link between Profile and Classification.
Declaration
void UnsetLink(Profile profile, Classification classification)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | The profile. |
Classification | classification | The classification. |
UnsetLinkAsync(Profile, Classification)
Unsets the ProfileClassification link between Profile and Classification.
Declaration
Task UnsetLinkAsync(Profile profile, Classification classification)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | The profile. |
Classification | classification | The classification. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | The System.Threading.Tasks.Task of completed operation. |