PRIMAVERA | Developers

    Show / Hide Table of Contents

    Class StdBSLicensingInformation

    Business class to manage licensing information.

    Inheritance
    System.Object
    StdBSLicensingInformation
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: StdPlatBS100.ServiceClasses
    Assembly: StdPlatBS100.dll
    Syntax
    public class StdBSLicensingInformation

    Constructors

    StdBSLicensingInformation()

    Declaration
    public StdBSLicensingInformation()

    Properties

    ContractState

    Gets the contract state.

    Declaration
    public StdBETipos.EnumContractState ContractState { get; }
    Property Value
    Type Description
    StdBETipos.EnumContractState

    CustomerID

    Gets the customer identifier.

    Declaration
    public string CustomerID { get; }
    Property Value
    Type Description
    System.String

    CustomerSecret

    Gets the customer secret.

    Declaration
    public string CustomerSecret { get; }
    Property Value
    Type Description
    System.String

    LicensingEnvironment

    Gets the current Licensing Environment.

    Declaration
    public LicensingEnvironment LicensingEnvironment { get; }
    Property Value
    Type Description
    Primavera.Platform.Licensing.Entities.LicensingEnvironment

    Subscription

    Gets the subscription.

    Declaration
    public ErpSubscription Subscription { get; }
    Property Value
    Type Description
    Primavera.Platform.Licensing.Entities.ErpSubscription

    Methods

    CanCreateProductionCompany()

    Determines whether this instance [can create production company].

    Declaration
    public bool CanCreateProductionCompany()
    Returns
    Type Description
    System.Boolean

    Delete(String)

    Deletes the specified identifier.

    Declaration
    public void Delete(string id)
    Parameters
    Type Name Description
    System.String id

    The identifier.

    Exists()

    Existses this instance.

    Declaration
    public bool Exists()
    Returns
    Type Description
    System.Boolean

    GetDataTable(String, Int32)

    Gets the data table.

    Declaration
    public DataTable GetDataTable(string instance, int platform)
    Parameters
    Type Name Description
    System.String instance

    The instance.

    System.Int32 platform

    The platform.

    Returns
    Type Description
    System.Data.DataTable

    GetFields(String, String[], Boolean)

    Gets the fields.

    Declaration
    public StdBECampos GetFields(string id, string[] fields, bool withNoLock = false)
    Parameters
    Type Name Description
    System.String id

    The identifier.

    System.String[] fields

    The fields.

    System.Boolean withNoLock

    if set to true [with no lock].

    Returns
    Type Description
    StdBECampos

    GetFieldValue(String, String, Boolean)

    Gets the field value.

    Declaration
    public object GetFieldValue(string id, string fieldName, bool withNoLock = false)
    Parameters
    Type Name Description
    System.String id

    The identifier.

    System.String fieldName

    Name of the field.

    System.Boolean withNoLock

    if set to true [with no lock].

    Returns
    Type Description
    System.Object

    LoadLicenseXmlLic()

    Loads the license XML lic.

    Declaration
    public StdBEXmlLic LoadLicenseXmlLic()
    Returns
    Type Description
    StdBEXmlLic

    ModulesByUser(String, Int32)

    Moduleses the by user.

    Declaration
    public List<LicUserModule> ModulesByUser(string user, int userCulture)
    Parameters
    Type Name Description
    System.String user

    The user.

    System.Int32 userCulture

    The user culture.

    Returns
    Type Description
    System.Collections.Generic.List<Primavera.Platform.Licensing.Entities.LicUserModule>

    ModulesFromAllUsers(Int32, Boolean)

    Moduleses from all users.

    Declaration
    public List<LicUserModule> ModulesFromAllUsers(int userCulture, bool format = false)
    Parameters
    Type Name Description
    System.Int32 userCulture

    The user culture.

    System.Boolean format

    Format module description

    Returns
    Type Description
    System.Collections.Generic.List<Primavera.Platform.Licensing.Entities.LicUserModule>

    UpdateField(String, String, Object)

    Update field.

    Declaration
    public void UpdateField(string id, string fieldName, object value)
    Parameters
    Type Name Description
    System.String id
    System.String fieldName
    System.Object value

    UpdateFields(String, StdBECampos)

    Update fields.

    Declaration
    public void UpdateFields(string id, StdBECampos fields)
    Parameters
    Type Name Description
    System.String id
    StdBECampos fields

    VerifyLicensing()

    Verifies that licensing is valid.

    Declaration
    public void VerifyLicensing()