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@.
| Constructor and Description |
|---|
ServiceHistoryInstance()
Constructor method for the class ServiceHistoryInstance.java.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addNewDigitalIdentity(DigitalID digitalIdentity)
Adds a new digital identity to this service information.
|
void |
addNewServiceInformationExtension(IAnyTypeExtension extension)
Adds a new extension if it is not
null. |
void |
addNewServiceName(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 attribute
serviceInformationExtensions. |
java.lang.String |
getServiceNameInLanguage(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 attribute
serviceNames. |
java.net.URI |
getServiceStatus()
Gets the value of the attribute
serviceStatus. |
java.util.Date |
getServiceStatusStartingTime()
Gets the value of the attribute
serviceStatusStartingTime. |
java.net.URI |
getServiceTypeIdentifier()
Gets the value of the attribute
serviceTypeIdentifier. |
boolean |
isServiceValidAndUsable()
Gets the value of the attribute
serviceValidAndUsable. |
boolean |
isThereSomeIdentity()
Checks if there is some digital identity associated to this Service Information.
|
boolean |
isThereSomeServiceInformationExtension()
Checks if there is at least one service information extension.
|
boolean |
isThereSomeServiceName()
Checks if there is at least one service name.
|
void |
setServiceStatus(java.net.URI serviceStatusParam)
Sets the value of the attribute
serviceStatus. |
void |
setServiceStatusStartingTime(java.util.Date serviceStatusStartingTimeParam)
Sets the value of the attribute
serviceStatusStartingTime. |
void |
setServiceTypeIdentifier(java.net.URI serviceTypeIdentifierParam)
Sets the value of the attribute
serviceTypeIdentifier. |
void |
setServiceValidAndUsable(boolean serviceValidAndUsableParam)
Sets the value of the attribute
serviceValidAndUsable. |
public ServiceHistoryInstance()
public final java.util.Map<java.lang.String,java.lang.String> getServiceNames()
serviceNames.serviceNames.public final java.lang.String getServiceNameInLanguage(java.lang.String language)
language - Language from which search the service name.null if not is defined.public final void addNewServiceName(java.lang.String language,
java.lang.String name)
language - language (ISO 639) in which is writed the name.name - Service name.public final boolean isThereSomeServiceName()
true if there is, otherwise false.public final java.net.URI getServiceTypeIdentifier()
serviceTypeIdentifier.serviceTypeIdentifier.public final void setServiceTypeIdentifier(java.net.URI serviceTypeIdentifierParam)
serviceTypeIdentifier.serviceTypeIdentifierParam - The value for the attribute serviceTypeIdentifier.public final java.net.URI getServiceStatus()
serviceStatus.serviceStatus.public final void setServiceStatus(java.net.URI serviceStatusParam)
serviceStatus.serviceStatusParam - The value for the attribute serviceStatus.public final java.util.Date getServiceStatusStartingTime()
serviceStatusStartingTime.serviceStatusStartingTime.public final void setServiceStatusStartingTime(java.util.Date serviceStatusStartingTimeParam)
serviceStatusStartingTime.serviceStatusStartingTimeParam - The value for the attribute serviceStatusStartingTime.public final boolean isThereSomeIdentity()
true if there is some digital identity associated to this Service
Information, otherwise false.public final void addNewDigitalIdentity(DigitalID digitalIdentity)
digitalIdentity - Digital identity to add.public final java.util.List<DigitalID> getAllDigitalIdentities()
public final java.util.List<IAnyTypeExtension> getServiceInformationExtensions()
serviceInformationExtensions.serviceInformationExtensions.public final void addNewServiceInformationExtension(IAnyTypeExtension extension)
null.extension - extension to add.public final boolean isThereSomeServiceInformationExtension()
true if there is at least one service information extension, otherwise false.public final boolean isServiceValidAndUsable()
serviceValidAndUsable.serviceValidAndUsable.public final void setServiceValidAndUsable(boolean serviceValidAndUsableParam)
serviceValidAndUsable.serviceValidAndUsableParam - The value for the attribute serviceValidAndUsable.