Class SoftwareServerCapabilityHandler<B>
- java.lang.Object
-
- org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler<B>
-
- org.odpi.openmetadata.commonservices.generichandlers.ReferenceableHandler<B>
-
- org.odpi.openmetadata.commonservices.generichandlers.SoftwareServerCapabilityHandler<B>
-
public class SoftwareServerCapabilityHandler<B> extends ReferenceableHandler<B>
SoftwareServerCapabilityHandler provides the support for managing software server capabilities.
-
-
Field Summary
-
Fields inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler
auditLog, beanClass, converter, defaultZones, errorHandler, invalidParameterHandler, localServerUserId, publishZones, repositoryHandler, repositoryHelper, securityVerifier, serverName, serviceName, supportedZones
-
-
Constructor Summary
Constructors Constructor Description SoftwareServerCapabilityHandler(OpenMetadataAPIGenericConverter<B> converter, Class<B> beanClass, String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, String localServerUserId, OpenMetadataServerSecurityVerifier securityVerifier, List<String> supportedZones, List<String> defaultZones, List<String> publishZones, AuditLog auditLog)Construct the handler information needed to interact with the repository services
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSoftwareServerCapabilityClassification(String userId, String externalSourceGUID, String externalSourceName, String softwareServerCapabilityGUID, String softwareServerCapabilityGUIDParameterName, String classificationName, Date effectiveFrom, Date effectiveTo, String methodName)Create specialized Software Server Capabilities entities.StringcreateFileSystem(String userId, String externalSourceGUID, String externalSourceName, String uniqueName, String displayName, String description, String type, String version, String patchLevel, String source, String format, String encryption, Map<String,String> additionalProperties, Map<String,String> vendorProperties, Date effectiveFrom, Date effectiveTo, String methodName)Files live on a file system.StringcreateSoftwareServerCapability(String userId, String externalSourceGUID, String externalSourceName, String specializedTypeGUID, String specializedTypeName, String classificationName, String uniqueName, String displayName, String description, String type, String version, String patchLevel, String source, Map<String,String> additionalProperties, Map<String,String> vendorProperties, String methodName)Create specialized Software Server Capabilities entities.StringcreateSoftwareServerCapability(String userId, String externalSourceGUID, String externalSourceName, String specializedTypeName, String classificationName, String uniqueName, String displayName, String description, String type, String version, String patchLevel, String source, Map<String,String> additionalProperties, Map<String,Object> extendedProperties, Map<String,String> vendorProperties, Date effectiveFrom, Date effectiveTo, String methodName)Create specialized Software Server Capabilities entities.StringcreateSoftwareServerCapabilityFromTemplate(String userId, String externalSourceGUID, String externalSourceName, String templateGUID, String templateGUIDParameterName, String qualifiedName, String qualifiedNameParameterName, String displayName, String description, String methodName)Create a new metadata element to represent a connection using an existing metadata element as a template.List<B>getSoftwareServerCapabilitiesByClassification(String userId, String classificationName, int startingFrom, int maxPageSize, Date effectiveTime, String methodName)Retrieve a list of defined software server capabilities.List<B>getSoftwareServerCapabilitiesByType(String userId, String typeGUID, String typeName, int startingFrom, int maxPageSize, Date effectiveTime, String methodName)Retrieve a list of defined software server capabilities.List<String>getSoftwareServerCapabilityGUIDsByClassification(String userId, String classificationName, int startingFrom, int maxPageSize, String methodName)Retrieve a list of unique identifiers for defined software server capabilities.List<String>getSoftwareServerCapabilityGUIDsByType(String userId, String typeGUID, String typeName, int startingFrom, int maxPageSize, Date effectiveTime, String methodName)Retrieve a list of unique identifiers for defined software server capabilities.voidupdateSoftwareServerCapability(String userId, String externalSourceGUID, String externalSourceName, String capabilityGUID, String capabilityGUIDParameterName, String uniqueName, String displayName, String description, String type, String version, String patchLevel, String source, Map<String,String> additionalProperties, Map<String,Object> extendedProperties, Map<String,String> vendorProperties, boolean isMergeUpdate, Date effectiveFrom, Date effectiveTo, String methodName)Update a software server capability entity - the classification is not updated - assumed not to change as the classification is like its type.-
Methods inherited from class org.odpi.openmetadata.commonservices.generichandlers.ReferenceableHandler
addOwner, addSecurityTags, addTemplateClassification, clearBusinessSignificant, findBeanGUIDsByQualifiedName, findBeansByQualifiedName, findBeansByQualifiedName, getBeanByQualifiedName, getBeanByQualifiedName, getBeanGUIDByQualifiedName, getBeanGUIDByQualifiedName, getBeanGUIDsByQualifiedName, getBeanGUIDsByQualifiedName, getBeansByQualifiedName, getBeansByQualifiedName, getCollectionMembers, getEntityByUniqueQualifiedName, getMoreInformation, getMoreInformation, getVendorProperties, linkElementsAsPeerDuplicates, removeOwner, removeResourceListMember, removeSecurityTags, removeSemanticAssignment, removeTemplateClassification, saveResourceListMember, saveSemanticAssignment, saveSemanticAssignment, setBusinessSignificant, setVendorProperties, unlinkElementsAsPeerDuplicates
-
Methods inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler
addAnchorsClassification, archiveBeanInRepository, archiveBeanInRepository, countAttachments, createBeanFromTemplate, createBeanInRepository, deleteAnchoredEntity, deleteBeanInRepository, deleteBeanInRepository, deleteBeanInRepository, deleteBeanInRepository, deleteRelationship, entityMatchSearchCriteria, findAttachmentLinks, findBeanGUIDs, findBeans, findBeans, findBeans, findEntities, findEntities, getAllAttachmentLinks, getAnchorGUIDFromAnchorsClassification, getAttachedElement, getAttachedElementGUID, getAttachedElementGUID, getAttachedElementGUIDs, getAttachedElementGUIDs, getAttachedElements, getAttachedElements, getAttachedElements, getAttachedEntities, getAttachedEntities, getAttachedEntitiesFromUser, getAttachedEntity, getAttachedEntity, getAttachedEntity, getAttachedEntityFromUser, getAttachedFilteredEntities, getAttachedFilteredEntities, getAttachedFilteredEntities, getAttachmentLink, getAttachmentLinks, getAttachmentLinks, getAttachmentLinks, getBeanByUniqueName, getBeanByUniqueName, getBeanByValue, getBeanFromEntity, getBeanFromRepository, getBeanFromRepository, getBeanFromRepository, getBeanGUIDByUniqueName, getBeanGUIDByUniqueName, getBeanGUIDsByClassification, getBeanGUIDsByType, getBeanGUIDsByType, getBeanGUIDsByValue, getBeansByClassification, getBeansByCreator, getBeansByIntValue, getBeansByType, getBeansByType, getBeansByValue, getBeansByValue, getBeansByValue, getBeansByValue, getEffectiveTime, getEffectiveTime, getEntitiesByIntValue, getEntitiesByType, getEntitiesByType, getEntitiesByValue, getEntitiesByValue, getEntitiesByValue, getEntitiesByValue, getEntitiesByValue, getEntityByValue, getEntityFromRepository, getEntityFromRepository, getEntityGUIDByValue, getEntityGUIDsByValue, getRepositoryHandler, getRepositoryHelper, getServerName, getServiceName, getTypeDefByName, getUniqueAttachmentLink, getUniqueAttachmentLink, isBeanIsolated, isEntityATypeOf, linkElementToElement, linkElementToElement, linkElementToElement, linkElementToElement, maintainSupplementaryProperties, multiLinkElementToElement, regexSearchCriteria, relinkElementToNewElement, relinkElementToNewElement, removeClassificationFromRepository, removeClassificationFromRepository, setClassificationInRepository, setClassificationInRepository, setClassificationInRepository, setClassificationInRepository, setClassificationInRepository, setSecurityVerifier, unlinkAllElements, unlinkConnectedElement, unlinkElementFromElement, unlinkElementFromElement, unlinkElementFromElement, unlinkElementFromElement, updateBeanEffectivityDates, updateBeanEffectivityDates, updateBeanInRepository, updateBeanInRepository, updateBeanInRepository, updateBeanPropertyInRepository, updateBeanStatusInRepository, updateBeanStatusInRepository, updateBeanStatusInRepository, updateClassificationEffectivityDates, updateClassificationEffectivityDates, updateElementToElementLink, updateElementToElementLink, updateElementToElementLink, updateElementToElementLink, updateRelationshipEffectivityDates, updateRelationshipEffectivityDates, updateRelationshipProperties, validateAnchorEntity, validateAnchorEntity, validateUniqueProperty, verifyExternalSourceIdentity
-
-
-
-
Constructor Detail
-
SoftwareServerCapabilityHandler
public SoftwareServerCapabilityHandler(OpenMetadataAPIGenericConverter<B> converter, Class<B> beanClass, String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, String localServerUserId, OpenMetadataServerSecurityVerifier securityVerifier, List<String> supportedZones, List<String> defaultZones, List<String> publishZones, AuditLog auditLog)
Construct the handler information needed to interact with the repository services- Parameters:
converter- specific converter for this bean classbeanClass- name of bean class that is represented by the generic class BserviceName- name of this serviceserverName- name of the local serverinvalidParameterHandler- handler for managing parameter errorsrepositoryHandler- manages calls to the repository servicesrepositoryHelper- provides utilities for manipulating the repository services objectslocalServerUserId- userId for this serversecurityVerifier- open metadata security services verifiersupportedZones- list of zones that the access service is allowed to serve Asset instances from.defaultZones- list of zones that the access service should set in all new Asset instances.publishZones- list of zones that the access service sets up in published Asset instances.auditLog- destination for audit log events.
-
-
Method Detail
-
createFileSystem
public String createFileSystem(String userId, String externalSourceGUID, String externalSourceName, String uniqueName, String displayName, String description, String type, String version, String patchLevel, String source, String format, String encryption, Map<String,String> additionalProperties, Map<String,String> vendorProperties, Date effectiveFrom, Date effectiveTo, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Files live on a file system. This method creates a top level anchor for a file system. It has its own method because ot the extra properties in the FileSystem classification- Parameters:
userId- calling userexternalSourceGUID- guid of the software server capability entity that represented the external source - null for localexternalSourceName- name of the software server capability entity that represented the external sourceuniqueName- qualified name for the file systemdisplayName- short display namedescription- description of the file systemtype- type of file systemversion- version of file systempatchLevel- patchLevel of software supporting the file systemsource- supplier of the software for this file systemformat- format of files on this file systemencryption- encryption type - null for unencryptedadditionalProperties- additional propertiesvendorProperties- properties about the vendor and/or their producteffectiveFrom- starting time for this element (null for all time)effectiveTo- ending time for this element (null for all time)methodName- calling method- Returns:
- unique identifier for the file system
- Throws:
InvalidParameterException- one of the parameters is null or invalidPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
createSoftwareServerCapability
public String createSoftwareServerCapability(String userId, String externalSourceGUID, String externalSourceName, String specializedTypeName, String classificationName, String uniqueName, String displayName, String description, String type, String version, String patchLevel, String source, Map<String,String> additionalProperties, Map<String,Object> extendedProperties, Map<String,String> vendorProperties, Date effectiveFrom, Date effectiveTo, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create specialized Software Server Capabilities entities. Most software service capabilities either specialize Software Server Capability or have a special classification.- Parameters:
userId- calling userexternalSourceGUID- guid of the software server capability entity that represented the external source - null for localexternalSourceName- name of the software server capability entity that represented the external sourcespecializedTypeName- unique name of the software server capability typeclassificationName- name of classification if anyuniqueName- qualified name for the software server capabilitydisplayName- short display namedescription- description of the file systemtype- type of file systemversion- version of file systempatchLevel- patchLevel of software supporting the file systemsource- supplier of the software for this file systemadditionalProperties- additional propertiesextendedProperties- properties defined for the subtypevendorProperties- properties about the vendor and/or their producteffectiveFrom- when is this element effective fromeffectiveTo- when is this element effect tomethodName- calling method- Returns:
- unique identifier for the file system
- Throws:
InvalidParameterException- one of the parameters is null or invalidPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
createSoftwareServerCapability
public String createSoftwareServerCapability(String userId, String externalSourceGUID, String externalSourceName, String specializedTypeGUID, String specializedTypeName, String classificationName, String uniqueName, String displayName, String description, String type, String version, String patchLevel, String source, Map<String,String> additionalProperties, Map<String,String> vendorProperties, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create specialized Software Server Capabilities entities. Most software service capabilities either specialize Software Server Capability or have a special classification.- Parameters:
userId- calling userexternalSourceGUID- guid of the software server capability entity that represented the external source - null for localexternalSourceName- name of the software server capability entity that represented the external sourcespecializedTypeGUID- unique identifier of the software server capability typespecializedTypeName- unique name of the software server capability typeclassificationName- name of classification if anyuniqueName- qualified name for the software server capabilitydisplayName- short display namedescription- description of the file systemtype- type of file systemversion- version of file systempatchLevel- patchLevel of software supporting the file systemsource- supplier of the software for this file systemadditionalProperties- additional propertiesvendorProperties- properties about the vendor and/or their productmethodName- calling method- Returns:
- unique identifier for the file system
- Throws:
InvalidParameterException- one of the parameters is null or invalidPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
createSoftwareServerCapabilityFromTemplate
public String createSoftwareServerCapabilityFromTemplate(String userId, String externalSourceGUID, String externalSourceName, String templateGUID, String templateGUIDParameterName, String qualifiedName, String qualifiedNameParameterName, String displayName, String description, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a new metadata element to represent a connection using an existing metadata element as a template. The template defines additional classifications and relationships that should be added to the new element.- Parameters:
userId- calling userexternalSourceGUID- guid of the software server capability entity that represented the external source - null for localexternalSourceName- name of the software server capability entity that represented the external sourcetemplateGUID- unique identifier of the metadata element to copytemplateGUIDParameterName- parameter name for templateGUIDqualifiedName- unique name for the element - used in other configurationqualifiedNameParameterName- parameter name for qualifiedNamedisplayName- short display name for the new elementdescription- description of the new elementmethodName- calling method- Returns:
- unique identifier of the new metadata element
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
addSoftwareServerCapabilityClassification
public void addSoftwareServerCapabilityClassification(String userId, String externalSourceGUID, String externalSourceName, String softwareServerCapabilityGUID, String softwareServerCapabilityGUIDParameterName, String classificationName, Date effectiveFrom, Date effectiveTo, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create specialized Software Server Capabilities entities. Most software service capabilities either specialize Software Server Capability or have a special classification. Metadata server- Parameters:
userId- calling userexternalSourceGUID- guid of the software server capability entity that represented the external source - null for localexternalSourceName- name of the software server capability entity that represented the external sourcesoftwareServerCapabilityGUID- unique identifier for the software server capability that is to be classifiedsoftwareServerCapabilityGUIDParameterName- parameter supplying softwareServerCapabilityGUIDclassificationName- name of classification if anyeffectiveFrom- starting time for this relationship (null for all time)effectiveTo- ending time for this relationship (null for all time)methodName- calling method- Throws:
InvalidParameterException- one of the parameters is null or invalidPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
updateSoftwareServerCapability
public void updateSoftwareServerCapability(String userId, String externalSourceGUID, String externalSourceName, String capabilityGUID, String capabilityGUIDParameterName, String uniqueName, String displayName, String description, String type, String version, String patchLevel, String source, Map<String,String> additionalProperties, Map<String,Object> extendedProperties, Map<String,String> vendorProperties, boolean isMergeUpdate, Date effectiveFrom, Date effectiveTo, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Update a software server capability entity - the classification is not updated - assumed not to change as the classification is like its type.- Parameters:
userId- calling userexternalSourceGUID- guid of the software server capability entity that represented the external source - null for localexternalSourceName- name of the software server capability entity that represented the external sourcecapabilityGUID- unique identifier for the capabilitycapabilityGUIDParameterName- parameter providing capabilityGUIDuniqueName- qualified name for the software server capabilitydisplayName- short display namedescription- description of the file systemtype- type of file systemversion- version of file systempatchLevel- patchLevel of software supporting the file systemsource- supplier of the software for this file systemadditionalProperties- additional propertiesextendedProperties- properties defined for the subtypevendorProperties- properties about the vendor and/or their productisMergeUpdate- should the properties be merged with existing properties or replace the existing properties?effectiveFrom- when is this element effective fromeffectiveTo- when is this element effect tomethodName- calling method- Throws:
InvalidParameterException- one of the parameters is null or invalidPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
getSoftwareServerCapabilityGUIDsByType
public List<String> getSoftwareServerCapabilityGUIDsByType(String userId, String typeGUID, String typeName, int startingFrom, int maxPageSize, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve a list of unique identifiers for defined software server capabilities.- Parameters:
userId- calling usertypeGUID- unique identifier of typetypeName- unique name of typestartingFrom- starting point in the listmaxPageSize- maximum number of resultseffectiveTime- the time that the retrieved elements must be effective formethodName- calling method- Returns:
- List of unique identifiers
- Throws:
InvalidParameterException- one of the parameters is null or invalidPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
getSoftwareServerCapabilitiesByType
public List<B> getSoftwareServerCapabilitiesByType(String userId, String typeGUID, String typeName, int startingFrom, int maxPageSize, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve a list of defined software server capabilities.- Parameters:
userId- calling usertypeGUID- unique identifier of typetypeName- unique name of typestartingFrom- starting point in the listmaxPageSize- maximum number of resultseffectiveTime- the time that the retrieved elements must be effective formethodName- calling method- Returns:
- List of beans
- Throws:
InvalidParameterException- one of the parameters is null or invalidPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
getSoftwareServerCapabilitiesByClassification
public List<B> getSoftwareServerCapabilitiesByClassification(String userId, String classificationName, int startingFrom, int maxPageSize, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve a list of defined software server capabilities.- Parameters:
userId- calling userclassificationName- name of classificationstartingFrom- starting point in the listmaxPageSize- maximum number of resultseffectiveTime- the time that the retrieved elements must be effective formethodName- calling method- Returns:
- List of beans
- Throws:
InvalidParameterException- one of the parameters is null or invalidPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
getSoftwareServerCapabilityGUIDsByClassification
public List<String> getSoftwareServerCapabilityGUIDsByClassification(String userId, String classificationName, int startingFrom, int maxPageSize, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve a list of unique identifiers for defined software server capabilities.- Parameters:
userId- calling userclassificationName- name of the classification that identifies the type of software server capability requiredstartingFrom- starting point in the listmaxPageSize- maximum number of resultsmethodName- calling method- Returns:
- List of unique identifiers for the retrieved entities
- Throws:
InvalidParameterException- one of the parameters is null or invalidPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
-