Interface ILinkHelper
このページの翻訳はAIによって自動的に行われました。可能な限り正確な翻訳を心掛けていますが、原文と異なる表現や解釈が含まれる場合があります。正確で公式な情報については、必ず英語の原文をご参照ください。
Contains functionality to build and parse links.
Namespace: Stylelabs.M.Sdk.WebClient.Contracts
Assembly: Stylelabs.M.Sdk.WebClient.dll
Syntax
Methods
CommandToLinkAsync(String, String)
Generates a link to a command.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | namespace | |
| System.String | command |
Returns
| Type | Description |
|---|---|
| Task<Link> |
CreateUploadToLinkAsync()
Generates a link to create an upload.
Declaration
Returns
| Type | Description |
|---|---|
| Task<Link> |
DataSourcesLinkAsync()
Creates a link to the datasources endpoint.
Declaration
Returns
| Type | Description |
|---|---|
| Task<Link> |
Link |
DataSourceToLinkAsync(String)
Creates a link to the datasource with the specified name.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name |
The name of the datasource to link to. |
Returns
| Type | Description |
|---|---|
| Task<Link> |
A link to the datasource with the specified |
DefinitionsToLinksAsync(IEnumerable<Int64>, Nullable<Int64>, Nullable<Int64>, Nullable<Boolean>)
Creates links to the specified entity definitions by id.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<System.Int64> | ids |
The ids of the entity definitions to include in the result. |
| System.Nullable<System.Int64> | skip |
Number of results to skip. |
| System.Nullable<System.Int64> | take |
Number or results to fetch. |
| System.Nullable<System.Boolean> | includeConditionalMembers |
Optionally include conditional members. |
Returns
| Type | Description |
|---|---|
| Task<Link> |
Links to the entity definitions with the specified |
DefinitionsToLinksAsync(IEnumerable<String>, Nullable<Int64>, Nullable<Int64>, Nullable<Boolean>)
Creates links to the specified entity definitions by name.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<System.String> | names |
The names of the entity definitions to include in the result. |
| System.Nullable<System.Int64> | skip |
Number of results to skip. |
| System.Nullable<System.Int64> | take |
Number or results to fetch. |
| System.Nullable<System.Boolean> | includeConditionalMembers |
Optionally include conditional members. |
Returns
| Type | Description |
|---|---|
| Task<Link> |
Links to the entity definitions with the specified |
DefinitionsToLinksAsync(Nullable<Int64>, Nullable<Int64>, Nullable<Boolean>)
Creates a link to the entity definitions endpoint.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| System.Nullable<System.Int64> | skip |
Number of results to skip. |
| System.Nullable<System.Int64> | take |
Number or results to fetch. |
| System.Nullable<System.Boolean> | includeConditionalMembers |
Optionally include conditional members. |
Returns
| Type | Description |
|---|---|
| Task<Link> |
Links to the entity definitions included in this batch. |
DefinitionToLinkAsync(Int64, Nullable<Boolean>)
Creates a link to the entity definition with the specified id.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | id |
The id of the entity definition to link to. |
| System.Nullable<System.Boolean> | includeConditionalMembers |
Optionally include conditional members. |
Returns
| Type | Description |
|---|---|
| Task<Link> |
A link to the entity definition with the specified |
DefinitionToLinkAsync(String, Nullable<Boolean>)
Creates a link to the entity definition with the specified name.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name |
The name of the entity definition to link to. |
| System.Nullable<System.Boolean> | includeConditionalMembers |
Optionally include conditional members. |
Returns
| Type | Description |
|---|---|
| Task<Link> |
A link to the entity definition with the specified |
DefinitionToLinkV2Async(String, Nullable<Boolean>)
Creates a link to the entity definition with the specified name.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name |
The name of the entity definition to link to. |
| System.Nullable<System.Boolean> | includeConditionalMembers |
Optionally include conditional members. |
Returns
| Type | Description |
|---|---|
| Task<Link> |
A link to the entity definition with the specified |
DownloadOrderToLinkAsync(Int64)
Generates a link to send a download order.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | downloadOrderId |
Returns
| Type | Description |
|---|---|
| Task<Link> |
EntitiesLinkAsync()
Creates a link to the entities endpoint.
Declaration
Returns
| Type | Description |
|---|---|
| Task<Link> |
Link |
EntitiesToLinksAsync(IEnumerable<Int64>)
Creates links to the entities with the specified ids.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<System.Int64> | ids |
The ids of the entities to link to. |
Returns
| Type | Description |
|---|---|
| Task<IList<Link>> |
Link to the entities with the specified |
EntityToLinkAsync(Int64, CultureInfo)
Creates a link to the entity with the specified id.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | id |
The id of the entity to link to. |
| CultureInfo | culture |
Optional culture for the entity. |
Returns
| Type | Description |
|---|---|
| Task<Link> |
A link to the entity with the specified |
EntityToLinkAsync(String)
Creates a link to the entity with the specified identifier.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | identifier |
The identifier of the entity to link to. |
Returns
| Type | Description |
|---|---|
| Task<Link> |
A link to the entity with the specified |
ExecuteScriptToLinkAsync(String)
Gets the link to execute a script with specified identifier.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | identifier |
The identifier of the script. |
Returns
| Type | Description |
|---|---|
| Task<Link> |
ExplainUserPermissionsForEntityToLinkAsync(Int64, Int64)
Returns a user's permissions for an entity
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | id |
The identifier of the entity. |
| System.Int64 | userId |
The identifier of the user. |
Returns
FetchJobsToLinkAsync()
Gets the link to the fetch jobs.
Declaration
Returns
| Type | Description |
|---|---|
| Task<Link> |
The fetch job endpoint link. |
FinalizeUploadToLinkAsync()
Generates a link to finalize an upload.
Declaration
Returns
| Type | Description |
|---|---|
| Task<Link> |
IdentifierFromEntityAsync(Link)
Extracts the identifier of an entity from the specified link.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| Link | link |
The link to extract the identifier from. |
Returns
| Type | Description |
|---|---|
| Task<System.String> |
The identifier as extracted from the link. If the link doesn't contain an identifier, null is returned. |
IdFromDownloadOrderAsync(Link)
Gets the download order id from the specified link.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| Link | link |
The link. |
Returns
| Type | Description |
|---|---|
| Task<System.Nullable<System.Int64>> |
Download order id. |
IdFromEntityAsync(Link)
Extracts the id of an entity from the specified link.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| Link | link |
The link to extract the name from. |
Returns
| Type | Description |
|---|---|
| Task<System.Nullable<System.Int64>> |
The id as extracted from the link. If the link doesn't contain an id, null is returned. |
IdFromFetchJobsAsync(Link)
Extracts the id from a FetchJobs with the specified link.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| Link | link |
The link to extract the id from. |
Returns
| Type | Description |
|---|---|
| Task<System.Nullable<System.Int64>> |
The id as extracted from the link. If the link doesn't contain an id, null is returned. |
IdFromPolicyAsync(Link)
Extracts the id from a policy with the specified link.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| Link | link |
The link to extract the id from. |
Returns
| Type | Description |
|---|---|
| Task<System.Nullable<System.Int64>> |
The id as extracted from the link. If the link doesn't contain an id, null is returned. |
IdsFromEntitiesAsync(IEnumerable<Link>)
Extracts the id of entities from the specified links.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<Link> | links |
The links to extract the names from. |
Returns
| Type | Description |
|---|---|
| Task<IList<System.Int64>> |
The ids as extracted from the links. |
NameFromDataSourceAsync(Link)
Extracts the name of a datasource from the specified link.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| Link | link |
The link to extract the name from. |
Returns
| Type | Description |
|---|---|
| Task<System.String> |
The name as extracted from the link. If the link doesn't contain a name, null is returned. |
NameFromDefinitionAsync(Link)
Extracts the name of an entity definition from the specified link.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| Link | link |
The link to extract the name from. |
Returns
| Type | Description |
|---|---|
| Task<System.String> |
The name as extracted from the link. If the link doesn't contain a name, null is returned. |
NamesFromDefinitionsAsync(IEnumerable<Link>)
Extracts the names of the specified entity definition links.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<Link> | links |
The links to extract the names from. |
Returns
| Type | Description |
|---|---|
| Task<IList<System.String>> |
The names as extracted from the links. If the link doesn't contain a name, null is returned. |
PackageLinkAsync()
Gets the link to the package endpoint.
Declaration
Returns
| Type | Description |
|---|---|
| Task<Link> |
PermissionsForEntityToLinkAsync(Int64)
Creates a link to the permissions for entity endpoint.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | id |
The entity id. |
Returns
| Type | Description |
|---|---|
| Task<Link> |
Link |
PolicyToLinkAsync(Int64)
Generates a link to the policy.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | id |
The policy id. |
Returns
| Type | Description |
|---|---|
| Task<Link> |
ResetPasswordToLinkAsync(Int64)
Gets the link to reset the password of the specified user.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | userId |
Id of the user. |
Returns
| Type | Description |
|---|---|
| Task<Link> |
SendConfirmationMailToLinkAsync(Int64)
Generates a link to send a confirmation mail.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | userId |
Returns
| Type | Description |
|---|---|
| Task<Link> |
SendNotificationToLinkAsync(String)
Generates a link to send a notification.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | notificationType |
Returns
| Type | Description |
|---|---|
| Task<Link> |
SetUserPasswordToLinkAsync(Int64)
Gets the link to set the password of the specified user.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | userId |
Id of the user. |
Returns
| Type | Description |
|---|---|
| Task<Link> |