Package com.highdeal.admin.hci
Class ServiceInfo
java.lang.Object
com.highdeal.admin.hci.ServiceInfo
- All Implemented Interfaces:
Comparable<ServiceInfo>
This
Java class represents the service information.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThisJava classdefines the URL of an SAP CC service.static final classThisJava classstatic enumThisenumerationdefines the security information: off, one way, or dual.static enumThisenumerationlists all the types of communication services. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ServiceInfo.ServiceAvailability[]This service is forbidden for all the instances.static final ServiceInfo.ServiceAvailability[]This service is mandatory for all the instances in the SAP CC system.static final ServiceInfo.ServiceAvailability[]This service is optional for all the instances.static final intUsed if no port is defined.static final StringThe XML tag name of this class: "serviceInfo" -
Constructor Summary
ConstructorsConstructorDescriptionBuilds an emptyServiceInfoinstance.ServiceInfo(ServiceInfo.ServiceInfoType serviceInfoType) -
Method Summary
Modifier and TypeMethodDescriptionintgetURL()Returns the URL of the service.booleanIndicates if the service is available, i.e.booleanIndicates if the service is enabled, i.e.voidsetServiceInfoSecurity(ServiceInfo.ServiceInfoSecurity serviceInfoSecurity) voidsetServiceInfoType(ServiceInfo.ServiceInfoType serviceInfoType)
-
Field Details
-
TAG_NAME
The XML tag name of this class: "serviceInfo"- See Also:
-
NO_DEFINED_PORT
public static final int NO_DEFINED_PORTUsed if no port is defined.- See Also:
-
ALL_MANDATORY
This service is mandatory for all the instances in the SAP CC system. -
ALL_OPTIONAL
This service is optional for all the instances. -
ALL_FORBIDDEN
This service is forbidden for all the instances.
-
-
Constructor Details
-
ServiceInfo
public ServiceInfo()Builds an emptyServiceInfoinstance. -
ServiceInfo
-
-
Method Details
-
getServiceInfoType
-
setServiceInfoType
-
getServiceInfoSecurity
-
setServiceInfoSecurity
-
getAddress
-
isEnabled
public boolean isEnabled()Indicates if the service is enabled, i.e. it is defined.- Returns:
trueif service is enabled,falseotherwise
-
isAvailable
public boolean isAvailable()Indicates if the service is available, i.e. it is possible to enable it.- Returns:
trueif service is available,falseotherwise
-
getURL
Returns the URL of the service.- Returns:
- The URL of the service if it is available,
nullotherwise
-
compareTo
- Specified by:
compareToin interfaceComparable<ServiceInfo>
-