Class ServiceHistoryInstance

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    ServiceInformation

    public class ServiceHistoryInstance
    extends java.lang.Object
    implements java.io.Serializable

    Class that defines a TSP Service History Information with all its information not dependent of the specification or TSL version.

    Project:

    Library for the integration with the services of @Firma, eVisor and TS@.

    Version:
    1.0, 10/11/2020.
    See Also:
    Serialized Form
    • Constructor Detail

      • ServiceHistoryInstance

        public ServiceHistoryInstance()
        Constructor method for the class ServiceHistoryInstance.java.
    • Method Detail

      • getServiceNames

        public final java.util.Map<java.lang.String,​java.lang.String> getServiceNames()
        Gets the value of the attribute serviceNames.
        Returns:
        the value of the attribute serviceNames.
      • getServiceNameInLanguage

        public final java.lang.String getServiceNameInLanguage​(java.lang.String language)
        Gets the service name in the specified language.
        Parameters:
        language - Language from which search the service name.
        Returns:
        Service name in the language specified, or null if not is defined.
      • addNewServiceName

        public final void addNewServiceName​(java.lang.String language,
                                            java.lang.String name)
        Add a new service name.
        Parameters:
        language - language (ISO 639) in which is writed the name.
        name - Service name.
      • isThereSomeServiceName

        public final boolean isThereSomeServiceName()
        Checks if there is at least one service name.
        Returns:
        true if there is, otherwise false.
      • setServiceTypeIdentifier

        public final void setServiceTypeIdentifier​(java.net.URI serviceTypeIdentifierParam)
        Sets the value of the attribute serviceTypeIdentifier.
        Parameters:
        serviceTypeIdentifierParam - The value for the attribute serviceTypeIdentifier.
      • getServiceStatus

        public final java.net.URI getServiceStatus()
        Gets the value of the attribute serviceStatus.
        Returns:
        the value of the attribute serviceStatus.
      • setServiceStatus

        public final void setServiceStatus​(java.net.URI serviceStatusParam)
        Sets the value of the attribute serviceStatus.
        Parameters:
        serviceStatusParam - The value for the attribute serviceStatus.
      • setServiceStatusStartingTime

        public final void setServiceStatusStartingTime​(java.util.Date serviceStatusStartingTimeParam)
        Sets the value of the attribute serviceStatusStartingTime.
        Parameters:
        serviceStatusStartingTimeParam - The value for the attribute serviceStatusStartingTime.
      • isThereSomeIdentity

        public final boolean isThereSomeIdentity()
        Checks if there is some digital identity associated to this Service Information.
        Returns:
        true if there is some digital identity associated to this Service Information, otherwise false.
      • addNewDigitalIdentity

        public final void addNewDigitalIdentity​(DigitalID digitalIdentity)
        Adds a new digital identity to this service information.
        Parameters:
        digitalIdentity - Digital identity to add.
      • getAllDigitalIdentities

        public final java.util.List<DigitalID> getAllDigitalIdentities()
        Gets all the digital identities associated to this service information.
        Returns:
        List with all the digital identities associated to this service information.
      • addNewServiceInformationExtension

        public final void addNewServiceInformationExtension​(IAnyTypeExtension extension)
        Adds a new extension if it is not null.
        Parameters:
        extension - extension to add.
      • isThereSomeServiceInformationExtension

        public final boolean isThereSomeServiceInformationExtension()
        Checks if there is at least one service information extension.
        Returns:
        true if there is at least one service information extension, otherwise false.
      • setServiceValidAndUsable

        public final void setServiceValidAndUsable​(boolean serviceValidAndUsableParam)
        Sets the value of the attribute serviceValidAndUsable.
        Parameters:
        serviceValidAndUsableParam - The value for the attribute serviceValidAndUsable.