Package org.kuali.rice.ksb.api.registry
Class ServiceDescriptor.Builder
java.lang.Object
org.kuali.rice.ksb.api.registry.ServiceDescriptor.Builder
- All Implemented Interfaces:
Serializable,org.kuali.rice.core.api.mo.common.Versioned,org.kuali.rice.core.api.mo.ModelBuilder,ServiceDescriptorContract
- Enclosing class:
ServiceDescriptor
public static final class ServiceDescriptor.Builder
extends Object
implements Serializable, org.kuali.rice.core.api.mo.ModelBuilder, ServiceDescriptorContract
A builder which can be used to construct
ServiceDescriptor instances. Enforces the constraints of the ServiceDescriptorContract.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbuild()static ServiceDescriptor.Buildercreate()static ServiceDescriptor.Buildercreate(ServiceDescriptorContract contract) Returns an XML value which can be used to materialize theServiceConfigurationfor the service.getId()Returns the id of this service descriptor.Deprecated: Will always return null as service descriptors have no version number column.voidsetDescriptor(String descriptor) voidvoidsetVersionNumber(Long versionNumber)
-
Method Details
-
create
-
create
-
build
- Specified by:
buildin interfaceorg.kuali.rice.core.api.mo.ModelBuilder
-
getId
Description copied from interface:ServiceDescriptorContractReturns the id of this service descriptor. This value should be unique across service descriptors. This value is generated when the service is published to the registry, so this value can be null if the service has not yet been published to the registry.- Specified by:
getIdin interfaceServiceDescriptorContract- Returns:
- the id of this service descriptor, or null if the service and it's descriptor has not yet been published to the registry
-
getDescriptor
Description copied from interface:ServiceDescriptorContractReturns an XML value which can be used to materialize theServiceConfigurationfor the service.- Specified by:
getDescriptorin interfaceServiceDescriptorContract- Returns:
- the XML representation of the
ServiceConfigurationfor the service, should never return a null or blank value
-
getVersionNumber
Description copied from interface:ServiceDescriptorContractDeprecated: Will always return null as service descriptors have no version number column. This was included on the contract interface by mistake during the original implementation.- Specified by:
getVersionNumberin interfaceServiceDescriptorContract- Specified by:
getVersionNumberin interfaceorg.kuali.rice.core.api.mo.common.Versioned- Returns:
- always returns null
-
setId
-
setDescriptor
-
setVersionNumber
-