Class ProjectBuilder
java.lang.Object
org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericBuilder
org.odpi.openmetadata.commonservices.generichandlers.ReferenceableBuilder
org.odpi.openmetadata.commonservices.generichandlers.ProjectBuilder
ProjectBuilder creates the parts for an entity that represents a Project.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.commonservices.generichandlers.ReferenceableBuilder
qualifiedName
Fields inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericBuilder
errorHandler, existingClassifications, extendedProperties, instanceStatus, newClassifications, repositoryHelper, serverName, serviceName, templateProperties, typeGUID, typeName
-
Constructor Summary
ConstructorDescriptionProjectBuilder
(String qualifiedName, String identifier, String name, String description, Date startDate, Date plannedEndDate, String projectPhase, String projectHealth, String projectStatus, int priority, Map<String, String> additionalProperties, String typeGUID, String typeName, Map<String, Object> extendedProperties, OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName) Create constructorProjectBuilder
(String qualifiedName, String identifier, String name, String description, OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName) Create constructor -
Method Summary
Modifier and TypeMethodDescriptiongetInstanceProperties
(String methodName) Return the supplied bean properties in an InstanceProperties object.void
setCampaignClassification
(String userId, String methodName) Set up the Campaign classification for this project.void
setProjectTypeClassification
(String userId, String classificationName, String methodName) Set up the Task classification for this project.void
setTaskClassification
(String userId, String methodName) Set up the Task classification for this project.Methods inherited from class org.odpi.openmetadata.commonservices.generichandlers.ReferenceableBuilder
getMementoProperties, getQualifiedName, setMemento, setOwnershipClassification, setSecurityTags, setTemplate
Methods inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericBuilder
getEntityClassifications, getInstanceProperties, getInstanceStatus, getTypeGUID, getTypeName, isClassificationSet, setAnchors, setClassification, setEffectivityDates, setEffectivityDates, setTemplateClassifications, setTemplateSubstitute, updateInstanceProperties
-
Constructor Details
-
ProjectBuilder
public ProjectBuilder(String qualifiedName, String identifier, String name, String description, Date startDate, Date plannedEndDate, String projectPhase, String projectHealth, String projectStatus, int priority, Map<String, String> additionalProperties, String typeGUID, String typeName, Map<String, Object> extendedProperties, OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName) Create constructor- Parameters:
qualifiedName
- unique name for the Projectidentifier
- unique identifier for the Project - typically allocated by an external systemname
- name for the projectdescription
- description of the glossarystartDate
- start date of the projectplannedEndDate
- planned end Date for the projectprojectPhase
- lifecycle phase of projectprojectHealth
- how well is the project tracking to planprojectStatus
- status of the projectpriority
- priorityadditionalProperties
- additional properties for a ProjecttypeGUID
- unique identifier of this element's typetypeName
- unique name of this element's typeextendedProperties
- properties for a Project subtyperepositoryHelper
- helper methodsserviceName
- name of this OMASserverName
- name of local server
-
ProjectBuilder
public ProjectBuilder(String qualifiedName, String identifier, String name, String description, OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName) Create constructor- Parameters:
qualifiedName
- unique name for the Projectidentifier
- unique identifier for the Project - typically allocated by an external systemname
- name for the projectdescription
- description of the glossaryrepositoryHelper
- helper methodsserviceName
- name of this OMASserverName
- name of local server
-
-
Method Details
-
setCampaignClassification
public void setCampaignClassification(String userId, String methodName) throws InvalidParameterException Set up the Campaign classification for this project.- Parameters:
userId
- calling usermethodName
- calling method- Throws:
InvalidParameterException
- classification is not supported in the local repository, or any repository connected by an open metadata repository cohort
-
setTaskClassification
public void setTaskClassification(String userId, String methodName) throws InvalidParameterException Set up the Task classification for this project.- Parameters:
userId
- calling usermethodName
- calling method- Throws:
InvalidParameterException
- classification is not supported in the local repository, or any repository connected by an open metadata repository cohort
-
setProjectTypeClassification
public void setProjectTypeClassification(String userId, String classificationName, String methodName) throws InvalidParameterException Set up the Task classification for this project.- Parameters:
userId
- calling userclassificationName
- name of the classification to addmethodName
- calling method- Throws:
InvalidParameterException
- classification is not supported in the local repository, or any repository connected by an open metadata repository cohort
-
getInstanceProperties
Return the supplied bean properties in an InstanceProperties object.- Overrides:
getInstanceProperties
in classReferenceableBuilder
- Parameters:
methodName
- name of the calling method- Returns:
- InstanceProperties object
- Throws:
InvalidParameterException
- there is a problem with the properties
-