ResourceFactoryExtensions Class
HAKOM.TSM.Net.Api.Attributes.Nodes.Extensions
Section titled “HAKOM.TSM.Net.Api.Attributes.Nodes.Extensions”Extension methods for creating IResource objects. Used for authorization.
public static class ResourceFactoryExtensionsInheritance System.Object 🡒 ResourceFactoryExtensions
Fields
Section titled “Fields”ResourceFactoryExtensions.NODE_RESOURCE_TYPE Field
Section titled “ResourceFactoryExtensions.NODE_RESOURCE_TYPE Field”A constant used for the creation of node resources.
public const string NODE_RESOURCE_TYPE = "Node";Field Value
Section titled “Field Value”Methods
Section titled “Methods”ResourceFactoryExtensions.NodeResource(this IResourceFactory) Method
Section titled “ResourceFactoryExtensions.NodeResource(this IResourceFactory) Method”Creates a new node IResource.
public static HAKOM.Security.Core.Net.Api.Authorization.IResource NodeResource(this HAKOM.Security.Core.Net.Api.Authorization.IResourceFactory resourceFactory);Parameters
Section titled “Parameters”resourceFactory IResourceFactory
The IResourceFactory used to create the IResource.
Returns
Section titled “Returns”IResource
The newly created IResource with its Type equal to NODE_RESOURCE_TYPE.
ResourceFactoryExtensions.NodeResource(this IResourceFactory, IStorageProvider) Method
Section titled “ResourceFactoryExtensions.NodeResource(this IResourceFactory, IStorageProvider) Method”Creates a new node IResource.
public static HAKOM.Security.Core.Net.Api.Authorization.IResource NodeResource(this HAKOM.Security.Core.Net.Api.Authorization.IResourceFactory resourceFactory, HAKOM.Persistence.Core.Net.Api.Storage.IStorageProvider storageProvider);Parameters
Section titled “Parameters”resourceFactory IResourceFactory
The IResourceFactory used to create the IResource.
storageProvider IStorageProvider
The IStorageProvider used to access the resource.
Returns
Section titled “Returns”IResource
The newly created IResource with its Type equal to NODE_RESOURCE_TYPE.
ResourceFactoryExtensions.NodeResource(this IResourceFactory, IStorageProvider, string) Method
Section titled “ResourceFactoryExtensions.NodeResource(this IResourceFactory, IStorageProvider, string) Method”Creates a new node IResource with the given identifier.
public static HAKOM.Security.Core.Net.Api.Authorization.IResource NodeResource(this HAKOM.Security.Core.Net.Api.Authorization.IResourceFactory resourceFactory, HAKOM.Persistence.Core.Net.Api.Storage.IStorageProvider storageProvider, string identifier);Parameters
Section titled “Parameters”resourceFactory IResourceFactory
The IResourceFactory used to create the IResource.
storageProvider IStorageProvider
The IStorageProvider used to access the resource.
identifier System.String
The System.String identifier used in the creation.
Returns
Section titled “Returns”IResource
The newly created IResource with its Type equal to NODE_RESOURCE_TYPE
and its Identifier equal to the given identifier.
ResourceFactoryExtensions.NodeResource(this IResourceFactory, string) Method
Section titled “ResourceFactoryExtensions.NodeResource(this IResourceFactory, string) Method”Creates a new node IResource with the given identifier.
public static HAKOM.Security.Core.Net.Api.Authorization.IResource NodeResource(this HAKOM.Security.Core.Net.Api.Authorization.IResourceFactory resourceFactory, string identifier);Parameters
Section titled “Parameters”resourceFactory IResourceFactory
The IResourceFactory used to create the IResource.
identifier System.String
The System.String identifier used in the creation.
Returns
Section titled “Returns”IResource
The newly created IResource with its Type equal to NODE_RESOURCE_TYPE
and its Identifier equal to the given identifier.