ResourceFactoryExtensions Class
Extension methods for creating IResource objects. Used for authorization.
public static class ResourceFactoryExtensionsInheritance System.Object 🡒 ResourceFactoryExtensions
Fields
Section titled “Fields”ResourceFactoryExtensions.ATTRIBUTE_RESOURCE_TYPE Field
Section titled “ResourceFactoryExtensions.ATTRIBUTE_RESOURCE_TYPE Field”A constant used for the creation of attribute resources.
public const string ATTRIBUTE_RESOURCE_TYPE = "Attribute";Field Value
Section titled “Field Value”ResourceFactoryExtensions.ATTRIBUTE_TYPE_RESOURCE_TYPE Field
Section titled “ResourceFactoryExtensions.ATTRIBUTE_TYPE_RESOURCE_TYPE Field”A constant used for the creation of attribute type resources.
public const string ATTRIBUTE_TYPE_RESOURCE_TYPE = "AttributeType";Field Value
Section titled “Field Value”Methods
Section titled “Methods”ResourceFactoryExtensions.AttributeResource(this IResourceFactory) Method
Section titled “ResourceFactoryExtensions.AttributeResource(this IResourceFactory) Method”Creates a new attribute IResource.
public static HAKOM.Security.Core.Net.Api.Authorization.IResource AttributeResource(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 ATTRIBUTE_RESOURCE_TYPE.
ResourceFactoryExtensions.AttributeResource(this IResourceFactory, IStorageProvider) Method
Section titled “ResourceFactoryExtensions.AttributeResource(this IResourceFactory, IStorageProvider) Method”Creates a new attribute IResource.
public static HAKOM.Security.Core.Net.Api.Authorization.IResource AttributeResource(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 ATTRIBUTE_RESOURCE_TYPE.
ResourceFactoryExtensions.AttributeResource(this IResourceFactory, IStorageProvider, string) Method
Section titled “ResourceFactoryExtensions.AttributeResource(this IResourceFactory, IStorageProvider, string) Method”Creates a new attribute IResource with the given identifier.
public static HAKOM.Security.Core.Net.Api.Authorization.IResource AttributeResource(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 ATTRIBUTE_RESOURCE_TYPE
and its Identifier equal to the given identifier.
ResourceFactoryExtensions.AttributeResource(this IResourceFactory, string) Method
Section titled “ResourceFactoryExtensions.AttributeResource(this IResourceFactory, string) Method”Creates a new attribute IResource with the given identifier.
public static HAKOM.Security.Core.Net.Api.Authorization.IResource AttributeResource(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 ATTRIBUTE_RESOURCE_TYPE
and its Identifier equal to the given identifier.
ResourceFactoryExtensions.AttributeTypeResource(this IResourceFactory) Method
Section titled “ResourceFactoryExtensions.AttributeTypeResource(this IResourceFactory) Method”Creates a new attribute type IResource.
public static HAKOM.Security.Core.Net.Api.Authorization.IResource AttributeTypeResource(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 ATTRIBUTE_TYPE_RESOURCE_TYPE.
ResourceFactoryExtensions.AttributeTypeResource(this IResourceFactory, IStorageProvider) Method
Section titled “ResourceFactoryExtensions.AttributeTypeResource(this IResourceFactory, IStorageProvider) Method”Creates a new attribute type IResource.
public static HAKOM.Security.Core.Net.Api.Authorization.IResource AttributeTypeResource(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 ATTRIBUTE_TYPE_RESOURCE_TYPE.
ResourceFactoryExtensions.AttributeTypeResource(this IResourceFactory, IStorageProvider, string) Method
Section titled “ResourceFactoryExtensions.AttributeTypeResource(this IResourceFactory, IStorageProvider, string) Method”Creates a new attribute type IResource with the given identifier.
public static HAKOM.Security.Core.Net.Api.Authorization.IResource AttributeTypeResource(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 ATTRIBUTE_TYPE_RESOURCE_TYPE
and its Identifier equal to the given identifier.
ResourceFactoryExtensions.AttributeTypeResource(this IResourceFactory, string) Method
Section titled “ResourceFactoryExtensions.AttributeTypeResource(this IResourceFactory, string) Method”Creates a new attribute type IResource with the given identifier.
public static HAKOM.Security.Core.Net.Api.Authorization.IResource AttributeTypeResource(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 ATTRIBUTE_TYPE_RESOURCE_TYPE
and its Identifier equal to the given identifier.