ResourceFactoryExtensions Class
Extension methods for creating IResource objects. Used for authorization.
public static class ResourceFactoryExtensionsInheritance System.Object 🡒 ResourceFactoryExtensions
Fields
Section titled “Fields”ResourceFactoryExtensions.CONSTANT_UNIT_CONVERSION_RESOURCE_TYPE Field
Section titled “ResourceFactoryExtensions.CONSTANT_UNIT_CONVERSION_RESOURCE_TYPE Field”A constant used for the creation of constant unit conversion resources.
public const string CONSTANT_UNIT_CONVERSION_RESOURCE_TYPE = "ConstantUnitConversion";Field Value
Section titled “Field Value”ResourceFactoryExtensions.TIMEDEPENDENT_UNIT_CONVERSION_RESOURCE_TYPE Field
Section titled “ResourceFactoryExtensions.TIMEDEPENDENT_UNIT_CONVERSION_RESOURCE_TYPE Field”A constant used for the creation of time dependent unit conversion resources.
public const string TIMEDEPENDENT_UNIT_CONVERSION_RESOURCE_TYPE = "TimeDependentUnitConversion";Field Value
Section titled “Field Value”ResourceFactoryExtensions.UNIT_RESOURCE_TYPE Field
Section titled “ResourceFactoryExtensions.UNIT_RESOURCE_TYPE Field”A constant used for the creation of unit resources.
public const string UNIT_RESOURCE_TYPE = "Unit";Field Value
Section titled “Field Value”Methods
Section titled “Methods”ResourceFactoryExtensions.ConstantUnitConversionResource(this IResourceFactory) Method
Section titled “ResourceFactoryExtensions.ConstantUnitConversionResource(this IResourceFactory) Method”Creates a new constant unit conversion IResource.
public static HAKOM.Security.Core.Net.Api.Authorization.IResource ConstantUnitConversionResource(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 CONSTANT_UNIT_CONVERSION_RESOURCE_TYPE.
ResourceFactoryExtensions.ConstantUnitConversionResource(this IResourceFactory, IStorageProvider) Method
Section titled “ResourceFactoryExtensions.ConstantUnitConversionResource(this IResourceFactory, IStorageProvider) Method”Creates a new constant unit conversion IResource and associates it with the given storage provider.
public static HAKOM.Security.Core.Net.Api.Authorization.IResource ConstantUnitConversionResource(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 associated to the IResource.
Returns
Section titled “Returns”IResource
The newly created IResource with its Type equal to CONSTANT_UNIT_CONVERSION_RESOURCE_TYPE.
ResourceFactoryExtensions.ConstantUnitConversionResource(this IResourceFactory, IStorageProvider, string) Method
Section titled “ResourceFactoryExtensions.ConstantUnitConversionResource(this IResourceFactory, IStorageProvider, string) Method”Creates a new constant unit conversion IResource with the given identifier and associates it with the given storage provider.
public static HAKOM.Security.Core.Net.Api.Authorization.IResource ConstantUnitConversionResource(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 CONSTANT_UNIT_CONVERSION_RESOURCE_TYPE
and its Identifier equal to the given identifier.
ResourceFactoryExtensions.ConstantUnitConversionResource(this IResourceFactory, string) Method
Section titled “ResourceFactoryExtensions.ConstantUnitConversionResource(this IResourceFactory, string) Method”Creates a new constant unit conversion IResource with the given identifier.
public static HAKOM.Security.Core.Net.Api.Authorization.IResource ConstantUnitConversionResource(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 CONSTANT_UNIT_CONVERSION_RESOURCE_TYPE
and its Identifier equal to the given identifier.
ResourceFactoryExtensions.TimeDependentUnitConversionResource(this IResourceFactory) Method
Section titled “ResourceFactoryExtensions.TimeDependentUnitConversionResource(this IResourceFactory) Method”Creates a new time dependent unit conversion IResource.
public static HAKOM.Security.Core.Net.Api.Authorization.IResource TimeDependentUnitConversionResource(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 TIMEDEPENDENT_UNIT_CONVERSION_RESOURCE_TYPE.
ResourceFactoryExtensions.TimeDependentUnitConversionResource(this IResourceFactory, IStorageProvider) Method
Section titled “ResourceFactoryExtensions.TimeDependentUnitConversionResource(this IResourceFactory, IStorageProvider) Method”Creates a new time dependent unit conversion IResource.
public static HAKOM.Security.Core.Net.Api.Authorization.IResource TimeDependentUnitConversionResource(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 TIMEDEPENDENT_UNIT_CONVERSION_RESOURCE_TYPE.
ResourceFactoryExtensions.TimeDependentUnitConversionResource(this IResourceFactory, IStorageProvider, string) Method
Section titled “ResourceFactoryExtensions.TimeDependentUnitConversionResource(this IResourceFactory, IStorageProvider, string) Method”Creates a new time dependent unit conversion IResource with the given identifier.
public static HAKOM.Security.Core.Net.Api.Authorization.IResource TimeDependentUnitConversionResource(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 TIMEDEPENDENT_UNIT_CONVERSION_RESOURCE_TYPE
and its Identifier equal to the given identifier.
ResourceFactoryExtensions.TimeDependentUnitConversionResource(this IResourceFactory, string) Method
Section titled “ResourceFactoryExtensions.TimeDependentUnitConversionResource(this IResourceFactory, string) Method”Creates a new time dependent unit conversion IResource with the given identifier.
public static HAKOM.Security.Core.Net.Api.Authorization.IResource TimeDependentUnitConversionResource(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 TIMEDEPENDENT_UNIT_CONVERSION_RESOURCE_TYPE
and its Identifier equal to the given identifier.
ResourceFactoryExtensions.UnitResource(this IResourceFactory) Method
Section titled “ResourceFactoryExtensions.UnitResource(this IResourceFactory) Method”Creates a new unit IResource.
public static HAKOM.Security.Core.Net.Api.Authorization.IResource UnitResource(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 UNIT_RESOURCE_TYPE.
ResourceFactoryExtensions.UnitResource(this IResourceFactory, IStorageProvider) Method
Section titled “ResourceFactoryExtensions.UnitResource(this IResourceFactory, IStorageProvider) Method”Creates a new unit IResource associated with the given storage provider.
public static HAKOM.Security.Core.Net.Api.Authorization.IResource UnitResource(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 IResource.
Returns
Section titled “Returns”IResource
The newly created IResource with its Type equal to UNIT_RESOURCE_TYPE.
ResourceFactoryExtensions.UnitResource(this IResourceFactory, IStorageProvider, string) Method
Section titled “ResourceFactoryExtensions.UnitResource(this IResourceFactory, IStorageProvider, string) Method”Creates a new unit IResource with the given identifier and associates the resource with a given storage provider.
public static HAKOM.Security.Core.Net.Api.Authorization.IResource UnitResource(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 unit.
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 UNIT_RESOURCE_TYPE
and its Identifier equal to the given identifier.
ResourceFactoryExtensions.UnitResource(this IResourceFactory, string) Method
Section titled “ResourceFactoryExtensions.UnitResource(this IResourceFactory, string) Method”Creates a new unit IResource with the given identifier.
public static HAKOM.Security.Core.Net.Api.Authorization.IResource UnitResource(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 UNIT_RESOURCE_TYPE
and its Identifier equal to the given identifier.