Class ServiceHistoryInstance
- java.lang.Object
-
- es.gob.afirma.tsl.parsing.impl.common.ServiceHistoryInstance
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ServiceInformation
public class ServiceHistoryInstance extends java.lang.Object implements java.io.SerializableClass 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 Summary
Constructors Constructor Description ServiceHistoryInstance()Constructor method for the class ServiceHistoryInstance.java.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddNewDigitalIdentity(DigitalID digitalIdentity)Adds a new digital identity to this service information.voidaddNewServiceInformationExtension(IAnyTypeExtension extension)Adds a new extension if it is notnull.voidaddNewServiceName(java.lang.String language, java.lang.String name)Add a new service name.java.util.List<DigitalID>getAllDigitalIdentities()Gets all the digital identities associated to this service information.java.util.List<IAnyTypeExtension>getServiceInformationExtensions()Gets the value of the attributeserviceInformationExtensions.java.lang.StringgetServiceNameInLanguage(java.lang.String language)Gets the service name in the specified language.java.util.Map<java.lang.String,java.lang.String>getServiceNames()Gets the value of the attributeserviceNames.java.net.URIgetServiceStatus()Gets the value of the attributeserviceStatus.java.util.DategetServiceStatusStartingTime()Gets the value of the attributeserviceStatusStartingTime.java.net.URIgetServiceTypeIdentifier()Gets the value of the attributeserviceTypeIdentifier.booleanisServiceValidAndUsable()Gets the value of the attributeserviceValidAndUsable.booleanisThereSomeIdentity()Checks if there is some digital identity associated to this Service Information.booleanisThereSomeServiceInformationExtension()Checks if there is at least one service information extension.booleanisThereSomeServiceName()Checks if there is at least one service name.voidsetServiceStatus(java.net.URI serviceStatusParam)Sets the value of the attributeserviceStatus.voidsetServiceStatusStartingTime(java.util.Date serviceStatusStartingTimeParam)Sets the value of the attributeserviceStatusStartingTime.voidsetServiceTypeIdentifier(java.net.URI serviceTypeIdentifierParam)Sets the value of the attributeserviceTypeIdentifier.voidsetServiceValidAndUsable(boolean serviceValidAndUsableParam)Sets the value of the attributeserviceValidAndUsable.
-
-
-
Method Detail
-
getServiceNames
public final java.util.Map<java.lang.String,java.lang.String> getServiceNames()
Gets the value of the attributeserviceNames.- 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
nullif 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:
trueif there is, otherwisefalse.
-
getServiceTypeIdentifier
public final java.net.URI getServiceTypeIdentifier()
Gets the value of the attributeserviceTypeIdentifier.- Returns:
- the value of the attribute
serviceTypeIdentifier.
-
setServiceTypeIdentifier
public final void setServiceTypeIdentifier(java.net.URI serviceTypeIdentifierParam)
Sets the value of the attributeserviceTypeIdentifier.- Parameters:
serviceTypeIdentifierParam- The value for the attributeserviceTypeIdentifier.
-
getServiceStatus
public final java.net.URI getServiceStatus()
Gets the value of the attributeserviceStatus.- Returns:
- the value of the attribute
serviceStatus.
-
setServiceStatus
public final void setServiceStatus(java.net.URI serviceStatusParam)
Sets the value of the attributeserviceStatus.- Parameters:
serviceStatusParam- The value for the attributeserviceStatus.
-
getServiceStatusStartingTime
public final java.util.Date getServiceStatusStartingTime()
Gets the value of the attributeserviceStatusStartingTime.- Returns:
- the value of the attribute
serviceStatusStartingTime.
-
setServiceStatusStartingTime
public final void setServiceStatusStartingTime(java.util.Date serviceStatusStartingTimeParam)
Sets the value of the attributeserviceStatusStartingTime.- Parameters:
serviceStatusStartingTimeParam- The value for the attributeserviceStatusStartingTime.
-
isThereSomeIdentity
public final boolean isThereSomeIdentity()
Checks if there is some digital identity associated to this Service Information.- Returns:
trueif there is some digital identity associated to this Service Information, otherwisefalse.
-
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.
-
getServiceInformationExtensions
public final java.util.List<IAnyTypeExtension> getServiceInformationExtensions()
Gets the value of the attributeserviceInformationExtensions.- Returns:
- the value of the attribute
serviceInformationExtensions.
-
addNewServiceInformationExtension
public final void addNewServiceInformationExtension(IAnyTypeExtension extension)
Adds a new extension if it is notnull.- Parameters:
extension- extension to add.
-
isThereSomeServiceInformationExtension
public final boolean isThereSomeServiceInformationExtension()
Checks if there is at least one service information extension.- Returns:
trueif there is at least one service information extension, otherwisefalse.
-
isServiceValidAndUsable
public final boolean isServiceValidAndUsable()
Gets the value of the attributeserviceValidAndUsable.- Returns:
- the value of the attribute
serviceValidAndUsable.
-
setServiceValidAndUsable
public final void setServiceValidAndUsable(boolean serviceValidAndUsableParam)
Sets the value of the attributeserviceValidAndUsable.- Parameters:
serviceValidAndUsableParam- The value for the attributeserviceValidAndUsable.
-
-