Class SecurityManagerOMASConverter<B>
- java.lang.Object
-
- org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericConverter<B>
-
- org.odpi.openmetadata.accessservices.securitymanager.converters.SecurityManagerOMASConverter<B>
-
- Direct Known Subclasses:
ActorProfileConverter,ContactMethodConverter,ElementHeaderConverter,PersonRoleConverter,SecurityGroupConverter,SecurityManagerConverter,UserIdentityConverter
public class SecurityManagerOMASConverter<B> extends OpenMetadataAPIGenericConverter<B>
SecurityManagerOMASConverter provides the generic methods for the Security Manager beans converters. Generic classes have limited knowledge of the classes these are working on and this means creating a new instance of a class from within a generic is a little involved. This class provides the generic method for creating and initializing a Security Manager bean.
-
-
Field Summary
-
Fields inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericConverter
repositoryHelper, serverName, serviceName
-
-
Constructor Summary
Constructors Constructor Description SecurityManagerOMASConverter(OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ElementClassificationgetClassification(String classificationName, List<ElementClassification> beanClassifications)Retrieve a specific named classification.ElementStubgetElementStub(Class<B> beanClass, EntityProxy entityProxy, String methodName)Extract the properties from the entity.ElementHeadergetMetadataElementHeader(Class<B> beanClass, InstanceHeader header, List<Classification> entityClassifications, String methodName)Extract the properties from the entity.protected List<ElementClassification>removeClassification(String classificationName, List<ElementClassification> beanClassifications)Remove the requested classification from the bean classifications and return the resulting list.-
Methods inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericConverter
getAbbreviation, getAdditionalValues, getAnchorGUID, getArguments, getAssetSummary, getAssociationDescription, getCertificationGUID, getCertifiedBy, getClassificationProperties, getClassificationProperties, getConditions, getConfidence, getCustodian, getDataStoreEncodingDescription, getDataStoreEncodingLanguage, getDataStoreEncodingType, getDescription, getDisplayName, getEncodingProperties, getEncryption, getEnd, getFormat, getFormula, getGroups, getGuard, getImplementationLanguage, getImplementationValue, getIsPublic, getLicensedBy, getLicensee, getLicenseGUID, getNewBean, getNewBean, getNewComplexBean, getNewComplexBean, getNewRelationshipBean, getNewSchemaAttributeBean, getNewSchemaTypeBean, getNewSchemaTypeBean, getNotes, getOriginBusinessCapabilityGUID, getOriginOrganizationGUID, getOtherOriginValues, getOwner, getOwnerPropertyName, getOwnerTypeName, getOwnerTypeOrdinal, getPointType, getPosition, getQualifiedName, getQuery, getQueryId, getRationale, getRecipient, getReferenceId, getRemainingExtendedProperties, getSecurityLabels, getSecurityProperties, getStart, getSteward, getStrictRequirement, getSummary, getSymbolicName, getUsage, getZoneMembership, handleBadEntity, handleBadEntityProxy, handleBadRelationship, handleInvalidBeanClass, handleMissingMetadataInstance, handleUnexpectedBeanClass, removeAbbreviation, removeActionProperties, removeActionRequested, removeActionTargetName, removeAdditionalProperties, removeAliases, removeAllowsDuplicateValues, removeAnalysisParameters, removeAnalysisStep, removeAnchorGUID, removeAnnotationType, removeAttachmentGUID, removeAuthor, removeAverageValue, removeBusinessImperatives, removeCandidateClassifications, removeCandidateDataClassGUIDs, removeCandidateGlossaryCategoryGUIDs, removeCandidateGlossaryTermGUIDs, removeCapabilityType, removeCapabilityVersion, removeClassificationName, removeClassificationPropertyName, removeClearPassword, removeComment, removeCommentText, removeCompletionDate, removeCompletionGuards, removeCompletionTime, removeConfidenceLevel, removeConfigurationProperties, removeConnectorFrameworkName, removeConnectorInterfaceLanguage, removeConnectorInterfaces, removeConnectorProviderClassName, removeContactMethodService, removeContactMethodValue, removeCoordinates, removeCreatedTime, removeCreationTime, removeCriteria, removeDatabaseImportedFrom, removeDatabaseInstance, removeDatabaseType, removeDatabaseVersion, removeDataFieldAliases, removeDataFieldDescription, removeDataFieldName, removeDataFieldType, removeDataSourceProperties, removeDataType, removeDefaultValue, removeDefaultValueOverride, removeDeployedImplementationType, removeDescription, removeDetails, removeDiscoveryActivity, removeDisplayName, removeDistinguishedName, removeDivergentClassificationName, removeDivergentClassificationPropertyNames, removeDivergentPropertyNames, removeDivergentRelationshipGUID, removeDivergentRelationshipPropertyNames, removeDomainIdentifier, removeDueTime, removeDuplicateAnchorGUID, removeDuplicateAnchorGUIDs, removeDuplicateAttachmentGUID, removeEmployeeNumber, removeEmployeeType, removeEncoding, removeEncodingStandard, removeEncryptedPassword, removeEncryptionMethod, removeExamples, removeExecutionDate, removeExecutorEngineGUID, removeExecutorEngineName, removeExpectedDataFormat, removeExplanation, removeExpression, removeFileType, removeFixedValue, removeFormula, removeFullName, removeGivenNames, removeGovernanceActionTypeGUID, removeGovernanceActionTypeName, removeHeadCount, removeId, removeIdentifier, removeImplementationDescription, removeImplementationLanguage, removeImplications, removeInferredDataType, removeInferredFormat, removeInferredLength, removeInferredPrecision, removeInferredScale, removeInformalTerm, removeInformalTopic, removeInitials, removeIntPriority, removeIsDeprecated, removeIsNullable, removeIsPublic, removeJobTitle, removeJsonProperties, removeJurisdiction, removeKarmaPoints, removeLanguage, removeLastModifiedTime, removeLastModifier, removeLastSynchronized, removeLength, removeLevel, removeLevelIdentifier, removeMandatoryGuards, removeMappingProperties, removeMapProjection, removeMatchingAttachmentGUIDs, removeMatchingClassificationNames, removeMatchingPropertyNames, removeMatchingRelationshipGUIDs, removeMaxCardinality, removeMaximumInstances, removeMembershipRationale, removeMinCardinality, removeMinimumInstances, removeMinimumLength, removeMission, removeName, removeNamespace, removeNativeClass, removeNetworkAddress, removeOperatingSystem, removeOperatingSystemPatchLevel, removeOrderedValues, removeOrderPropertyName, removeOrganization, removeOriginGovernanceEngine, removeOriginGovernanceService, removeOutcomes, removeOwner, removeOwnerPropertyName, removeOwnerTypeName, removeOwnerTypeOrdinal, removeParameterType, removePatchLevel, removePathName, removePlannedEndDate, removePosition, removePostalAddress, removePrecision, removePreferredLanguage, removePreferredValue, removePriority, removeProcessingEngineUserId, removeProcessName, removeProducedGuards, removeProfileCounts, removeProfileFlags, removeProfileProperties, removeProtocol, removeQualifiedName, removeQualityDimension, removeQualityScore, removeReceivedGuards, removeRecognizedAdditionalProperties, removeRecognizedConfigurationProperties, removeRecognizedSecuredProperties, removeReferenceVersion, removeRelatedEntityGUID, removeRelationshipProperties, removeRelationshipTypeName, removeRequestParameters, removeRequestSourceName, removeRequestType, removeRequired, removeResults, removeReview, removeReviewDate, removeRoleTypeName, removeSchemaName, removeSchemaType, removeScope, removeSecuredProperties, removeSize, removeSource, removeSourceCreateTime, removeSourceUpdateTime, removeStartDate, removeStatus, removeSteward, removeStoreCreateTime, removeStoreUpdateTime, removeSummary, removeSupportedAssetTypeName, removeSurname, removeTagDescription, removeTagName, removeTargetTechnologyInterfaces, removeTargetTechnologyName, removeTargetTechnologySource, removeTargetTechnologyVersions, removeText, removeTimeZone, removeTitle, removeTopicType, removeURL, removeUsage, removeUserId, removeValueCount, removeValueList, removeValueRangeFrom, removeValueRangeTo, removeVersionNumber, removeZoneMembership, validateInstanceType
-
-
-
-
Constructor Detail
-
SecurityManagerOMASConverter
public SecurityManagerOMASConverter(OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName)
Constructor- Parameters:
repositoryHelper- helper object to parse entityserviceName- name of this componentserverName- name of this server
-
-
Method Detail
-
getMetadataElementHeader
public ElementHeader getMetadataElementHeader(Class<B> beanClass, InstanceHeader header, List<Classification> entityClassifications, String methodName) throws PropertyServerException
Extract the properties from the entity.- Parameters:
beanClass- name of the class to createheader- header from the entity containing the propertiesentityClassifications- classifications from an entity or an entity proxymethodName- calling method- Returns:
- filled out element header
- Throws:
PropertyServerException- there is a problem in the use of the generic handlers because the converter has been configured with a type of bean that is incompatible with the handler
-
getElementStub
public ElementStub getElementStub(Class<B> beanClass, EntityProxy entityProxy, String methodName) throws PropertyServerException
Extract the properties from the entity.- Parameters:
beanClass- name of the class to createentityProxy- entityProxy from the relationship containing the propertiesmethodName- calling method- Returns:
- filled out element header
- Throws:
PropertyServerException- there is a problem in the use of the generic handlers because the converter has been configured with a type of bean that is incompatible with the handler
-
getClassification
protected ElementClassification getClassification(String classificationName, List<ElementClassification> beanClassifications)
Retrieve a specific named classification.- Parameters:
classificationName- name of classificationbeanClassifications- list of classifications retrieved from the repositories- Returns:
- null or the requested classification
-
removeClassification
protected List<ElementClassification> removeClassification(String classificationName, List<ElementClassification> beanClassifications)
Remove the requested classification from the bean classifications and return the resulting list.- Parameters:
classificationName- name of the classificationbeanClassifications- list of classifications retrieved from the repositories- Returns:
- null or a list of classifications
-
-