Interface INovaRazorLinkFactory
Create links to binaries, external binaries and objects, independent of the output format
Namespace: Noxum.Nova.Razor.Model
Assembly: Noxum.Nova.Razor.Model.dll
Syntax
public interface INovaRazorLinkFactory
Methods
CreateBinaryUrlAsync(BinId)
Create an URL for a BinId value. T This method may copy the binary elsewhere or create a link to web controller.
Declaration
Task<string> CreateBinaryUrlAsync(BinId binId)
Parameters
| Type | Name | Description |
|---|---|---|
| BinId | binId | The binary ID |
Returns
| Type | Description |
|---|---|
| Task<string> | An URL that can be used for presentation |
CreateExternalBinaryUrlAsync(ObjId, ObjId)
Get an URL for an external binary object. This method may copy external binaries elsewhere or create a link to the original binary.
Declaration
Task<string> CreateExternalBinaryUrlAsync(ObjId bpoId, ObjId branchId)
Parameters
| Type | Name | Description |
|---|---|---|
| ObjId | bpoId | The object ID of the external binary proxy |
| ObjId | branchId | The branch ID |
Returns
| Type | Description |
|---|---|
| Task<string> | An URL that can be used for presentation or null if the object s not a binary proxy |
CreateHyperRefAsync(ObjId, ObjId)
Create a hypertext reference to an object in a branch
Declaration
Task<NovaRazorHyperLink> CreateHyperRefAsync(ObjId objId, ObjId branchId)
Parameters
| Type | Name | Description |
|---|---|---|
| ObjId | objId | The object ID |
| ObjId | branchId | The branch ID |
Returns
| Type | Description |
|---|---|
| Task<NovaRazorHyperLink> | An hypertext reference URI to the object or default(NovaRazorHyperLink), if a hyperlink should not be created |