Class DataContract

    • Constructor Detail

      • DataContract

        public DataContract()
        Basic constructor
      • DataContract

        @Deprecated
        public DataContract​(DataSetID providerDataSetID,
                            AccountID providerAccountID,
                            Calendar beginDateOfContract,
                            Calendar endDateOfContract)
        Deprecated.
        Builds a new private data contract without applicants, the date this data contract is valid from and the date this contact expires.
        Parameters:
        providerDataSetID - Name of provided dataset
        newProviderAccount - the account that provides data contract
        applicantsAccountIDs - set of account ids of data contract's applicants
        beginDateOfContract - the date this data contract is valid from
        endDateOfContract - the date this data contract expires
      • DataContract

        @Deprecated
        public DataContract​(DataSetID providerDataSetID,
                            AccountID providerAccountID,
                            Set<AccountID> applicantsAccountIDs,
                            Calendar beginDateOfContract,
                            Calendar endDateOfContract)
        Deprecated.
        Builds a new public data contract without applicants, the date this data contract is valid from and the date this contact expires.
        Parameters:
        providerDataSetID - Name of provided dataset
        newProviderAccount - the account that provides data contract
        applicantsAccountIDs - set of account ids of data contract's applicants
        beginDateOfContract - the date this data contract is valid from
        endDateOfContract - the date this data contract expires
    • Method Detail

      • getProviderDataSetID

        public DataSetID getProviderDataSetID()
        Returns:
        the providerDataSetID
      • setProviderDataSetID

        public void setProviderDataSetID​(DataSetID datasetIDofProvider)
        Parameters:
        datasetIDofProvider - the dataset id of the provider of the data contract
      • getApplicantsAccountsIDs

        public Set<AccountID> getApplicantsAccountsIDs()
        Returns:
        the applicantsAccountsID
      • setApplicantsAccountsIDs

        public void setApplicantsAccountsIDs​(Set<AccountID> accountsIDsofTheApplicants)
        Parameters:
        accountsIDsofTheApplicants - the applicantAccountID to set
      • getBeginDate

        public Calendar getBeginDate()
        Returns:
        the beginDate
      • setBeginDate

        public void setBeginDate​(Calendar beginDateOfContract)
        Parameters:
        beginDateOfContract - the beginDate to set
      • getEndDate

        public Calendar getEndDate()
        Returns:
        the endDate
      • setEndDate

        public void setEndDate​(Calendar endDateOfContract)
        Parameters:
        endDateOfContract - the endDate to set
      • isPublicAvailable

        public boolean isPublicAvailable()
        Returns:
        the isPublic
      • setPublicAvailable

        public void setPublicAvailable​(boolean isContractPublic)
        Parameters:
        isContractPublic - whether the data contract must be set as public or not
      • isActive

        public boolean isActive()
        Returns:
        the isActive
      • getProviderAccountID

        public AccountID getProviderAccountID()
        Get providerAccount
        Returns:
        the providerAccount
      • setProviderAccountID

        public void setProviderAccountID​(AccountID newproviderAccount)
        Set providerAccount
        Parameters:
        newproviderAccount - the providerAccount to set
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object