Class Service
java.lang.Object
de.hybris.platform.b2ctelcotmfresources.v4.dto.Service
Service is a base class for defining the Service hierarchy. All Services are characterized as either being possibly visible and usable by a Customer or not. This gives rise to the two subclasses of Service: CustomerFacingService and ResourceFacingService.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddFeatureItem(Feature featureItem) addNoteItem(Note noteItem) addPlaceItem(RelatedPlaceRefOrValue placeItem) addRelatedEntityItem(RelatedEntityRefOrValue relatedEntityItem) addRelatedPartyItem(RelatedParty relatedPartyItem) addServiceCharacteristicItem(Characteristic serviceCharacteristicItem) addServiceOrderItemItem(RelatedServiceOrderItem serviceOrderItemItem) addServiceRelationshipItem(ServiceRelationship serviceRelationshipItem) addSupportingResourceItem(ResourceRef supportingResourceItem) addSupportingServiceItem(ServiceRefOrValue supportingServiceItem) atBaseType(String atBaseType) atSchemaLocation(String atSchemaLocation) description(String description) booleanWhen sub-classing, this defines the super-classA URI to a JSON-Schema file that defines additional attributes and relationshipsWhen sub-classing, this defines the sub-class entity nameIs it a customer facing or resource facing serviceFree-text description of the service@Valid DateDate when the service endsA list of feature associated with this servicegetHref()Reference of the servicegetId()Unique identifier of the servicegetName()Name of the servicegetNote()A list of notes made on this service@Valid List<RelatedPlaceRefOrValue>getPlace()A list of places (Place [*]).@Valid List<RelatedEntityRefOrValue>A list of related entity in relationship with this service@Valid List<RelatedParty>A list of related party references (RelatedParty [*]).@Valid List<Characteristic>A list of characteristics that characterize this service (ServiceCharacteristic [*])Date when the service was created (whatever its status).@Valid List<RelatedServiceOrderItem>A list of service order items related to this service@Valid List<ServiceRelationship>A list of service relationships (ServiceRelationship [*]).@Valid ServiceSpecificationRefGet serviceSpecificationBusiness type of the service@Valid DateDate when the service startsThis attribute is an enumerated integer that indicates how the Service is started, such as: 0: Unknown; 1: Automatically by the managed environment; 2: Automatically by the owning device; 3: Manually by the Provider of the Service; 4: Manually by a Customer of the Provider; 5: Any of the above@Valid ServiceStateTypegetState()Get state@Valid List<ResourceRef>A list of supporting resources (SupportingResource [*]).Note: only Service of type RFS can be associated with Resources@Valid List<ServiceRefOrValue>A list of supporting services (SupportingService [*]).inthashCode()hasStarted(Boolean hasStarted) If TRUE, this Service has already been startedIf true, the service is a ServiceBundle which regroup a service hierachy.If FALSE and hasStarted is FALSE, this particular Service has NOT been enabled for use - if FALSE and hasStarted is TRUE then the service has failedIf TRUE, this Service can be changed without affecting any other servicesisServiceEnabled(Boolean isServiceEnabled) isStateful(Boolean isStateful) place(List<RelatedPlaceRefOrValue> place) relatedEntity(List<RelatedEntityRefOrValue> relatedEntity) relatedParty(List<RelatedParty> relatedParty) serviceCharacteristic(List<Characteristic> serviceCharacteristic) serviceDate(String serviceDate) serviceOrderItem(List<RelatedServiceOrderItem> serviceOrderItem) serviceRelationship(List<ServiceRelationship> serviceRelationship) serviceSpecification(ServiceSpecificationRef serviceSpecification) serviceType(String serviceType) voidsetAtBaseType(String atBaseType) voidsetAtSchemaLocation(String atSchemaLocation) voidvoidsetCategory(String category) voidsetDescription(String description) voidsetEndDate(Date endDate) voidsetFeature(List<Feature> feature) voidsetHasStarted(Boolean hasStarted) voidvoidvoidsetIsBundle(Boolean isBundle) voidsetIsServiceEnabled(Boolean isServiceEnabled) voidsetIsStateful(Boolean isStateful) voidvoidvoidsetPlace(List<RelatedPlaceRefOrValue> place) voidsetRelatedEntity(List<RelatedEntityRefOrValue> relatedEntity) voidsetRelatedParty(List<RelatedParty> relatedParty) voidsetServiceCharacteristic(List<Characteristic> serviceCharacteristic) voidsetServiceDate(String serviceDate) voidsetServiceOrderItem(List<RelatedServiceOrderItem> serviceOrderItem) voidsetServiceRelationship(List<ServiceRelationship> serviceRelationship) voidsetServiceSpecification(ServiceSpecificationRef serviceSpecification) voidsetServiceType(String serviceType) voidsetStartDate(Date startDate) voidsetStartMode(String startMode) voidsetState(ServiceStateType state) voidsetSupportingResource(List<ResourceRef> supportingResource) voidsetSupportingService(List<ServiceRefOrValue> supportingService) state(ServiceStateType state) supportingResource(List<ResourceRef> supportingResource) supportingService(List<ServiceRefOrValue> supportingService) toString()
-
Constructor Details
-
Service
public Service()
-
-
Method Details
-
id
-
getId
Unique identifier of the service- Returns:
- id
-
setId
-
href
-
getHref
Reference of the service- Returns:
- href
-
setHref
-
category
-
getCategory
Is it a customer facing or resource facing service- Returns:
- category
-
setCategory
-
description
-
getDescription
Free-text description of the service- Returns:
- description
-
setDescription
-
endDate
-
getEndDate
Date when the service ends- Returns:
- endDate
-
setEndDate
-
hasStarted
-
isHasStarted
If TRUE, this Service has already been started- Returns:
- hasStarted
-
setHasStarted
-
isBundle
-
isIsBundle
If true, the service is a ServiceBundle which regroup a service hierachy. If false, the service is a 'atomic' service (hierachy leaf).- Returns:
- isBundle
-
setIsBundle
-
isServiceEnabled
-
isIsServiceEnabled
If FALSE and hasStarted is FALSE, this particular Service has NOT been enabled for use - if FALSE and hasStarted is TRUE then the service has failed- Returns:
- isServiceEnabled
-
setIsServiceEnabled
-
isStateful
-
isIsStateful
If TRUE, this Service can be changed without affecting any other services- Returns:
- isStateful
-
setIsStateful
-
name
-
getName
Name of the service- Returns:
- name
-
setName
-
serviceDate
-
getServiceDate
Date when the service was created (whatever its status).- Returns:
- serviceDate
-
setServiceDate
-
serviceType
-
getServiceType
Business type of the service- Returns:
- serviceType
-
setServiceType
-
startDate
-
getStartDate
Date when the service starts- Returns:
- startDate
-
setStartDate
-
startMode
-
getStartMode
This attribute is an enumerated integer that indicates how the Service is started, such as: 0: Unknown; 1: Automatically by the managed environment; 2: Automatically by the owning device; 3: Manually by the Provider of the Service; 4: Manually by a Customer of the Provider; 5: Any of the above- Returns:
- startMode
-
setStartMode
-
feature
-
addFeatureItem
-
getFeature
A list of feature associated with this service- Returns:
- feature
-
setFeature
-
note
-
addNoteItem
-
getNote
A list of notes made on this service- Returns:
- note
-
setNote
-
place
-
addPlaceItem
-
getPlace
A list of places (Place [*]). Used to define a place useful for the service (for example a geographical place whre the service is installed)- Returns:
- place
-
setPlace
-
addRelatedEntityItem
-
getRelatedEntity
A list of related entity in relationship with this service- Returns:
- relatedEntity
-
setRelatedEntity
-
addRelatedPartyItem
-
getRelatedParty
A list of related party references (RelatedParty [*]). A related party defines party or party role linked to a specific entity- Returns:
- relatedParty
-
setRelatedParty
-
serviceCharacteristic
-
addServiceCharacteristicItem
-
getServiceCharacteristic
A list of characteristics that characterize this service (ServiceCharacteristic [*])- Returns:
- serviceCharacteristic
-
setServiceCharacteristic
-
serviceOrderItem
-
addServiceOrderItemItem
-
getServiceOrderItem
A list of service order items related to this service- Returns:
- serviceOrderItem
-
setServiceOrderItem
-
serviceRelationship
-
addServiceRelationshipItem
-
getServiceRelationship
A list of service relationships (ServiceRelationship [*]). Describes links with other service(s) in the inventory.- Returns:
- serviceRelationship
-
setServiceRelationship
-
serviceSpecification
-
getServiceSpecification
Get serviceSpecification- Returns:
- serviceSpecification
-
setServiceSpecification
-
state
-
getState
Get state- Returns:
- state
-
setState
-
supportingResource
-
addSupportingResourceItem
-
getSupportingResource
A list of supporting resources (SupportingResource [*]).Note: only Service of type RFS can be associated with Resources- Returns:
- supportingResource
-
setSupportingResource
-
supportingService
-
addSupportingServiceItem
-
getSupportingService
A list of supporting services (SupportingService [*]). A collection of services that support this service (bundling, link CFS to RFS)- Returns:
- supportingService
-
setSupportingService
-
atBaseType
-
getAtBaseType
When sub-classing, this defines the super-class- Returns:
- atBaseType
-
setAtBaseType
-
atSchemaLocation
-
getAtSchemaLocation
A URI to a JSON-Schema file that defines additional attributes and relationships- Returns:
- atSchemaLocation
-
setAtSchemaLocation
-
atType
-
getAtType
When sub-classing, this defines the sub-class entity name- Returns:
- atType
-
setAtType
-
equals
-
hashCode
public int hashCode() -
toString
-