Interface CertificationManagementInterface
-
public interface CertificationManagementInterfaceThe CertificationManagementInterface provides the ability to manage the certification types that can be associated with elements.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringcertifyElement(String userId, String elementGUID, String certificationTypeGUID, CertificationProperties properties)Link an element to a certification type and include details of the certification in the relationship properties.StringcreateCertificationType(String userId, CertificationTypeProperties properties, GovernanceDefinitionStatus initialStatus)Create a description of the certification type.voiddecertifyElement(String userId, String certificationGUID)Remove the certification for an element.voiddeleteCertificationType(String userId, String certificationTypeGUID)Delete the properties of the certification type.List<RelatedElement>getCertifications(String userId, String elementGUID, int startFrom, int pageSize)Return information about the certifications linked to an element.CertificationTypeElementgetCertificationTypeByDocId(String userId, String documentIdentifier)Retrieve the certification type by its assigned unique document identifier.List<CertificationTypeElement>getCertificationTypeByDomainId(String userId, int domainIdentifier, int startFrom, int pageSize)Retrieve all the certification type definitions for a specific governance domain.CertificationTypeElementgetCertificationTypeByGUID(String userId, String certificationTypeGUID)Retrieve the certification type by the unique identifier assigned by this service when it was created.List<CertificationTypeElement>getCertificationTypesByTitle(String userId, String title, int startFrom, int pageSize)Retrieve all the certification types for a particular title.List<RelatedElement>getCertifiedElements(String userId, String certificationTypeGUID, int startFrom, int pageSize)Return information about the elements linked to a certification.voidupdateCertification(String userId, String certificationGUID, boolean isMergeUpdate, CertificationProperties properties)Update the properties of a certification.voidupdateCertificationType(String userId, String certificationTypeGUID, boolean isMergeUpdate, CertificationTypeProperties properties)Update the properties of the certification type.
-
-
-
Method Detail
-
createCertificationType
String createCertificationType(String userId, CertificationTypeProperties properties, GovernanceDefinitionStatus initialStatus) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a description of the certification type.- Parameters:
userId- calling userproperties- certification propertiesinitialStatus- what is the initial status for the certification type - default value is DRAFT- Returns:
- unique identifier of new definition
- Throws:
InvalidParameterException- documentIdentifier or userId is null; documentIdentifier is not uniquePropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
updateCertificationType
void updateCertificationType(String userId, String certificationTypeGUID, boolean isMergeUpdate, CertificationTypeProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Update the properties of the certification type.- Parameters:
userId- calling usercertificationTypeGUID- identifier of the governance definition to changeisMergeUpdate- are unspecified properties unchanged (true) or replaced with null?properties- certification properties- Throws:
InvalidParameterException- guid, documentIdentifier or userId is null; documentIdentifier is not uniquePropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
deleteCertificationType
void deleteCertificationType(String userId, String certificationTypeGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Delete the properties of the certification type.- Parameters:
userId- calling usercertificationTypeGUID- identifier of the governance definition to delete- Throws:
InvalidParameterException- guid or userId is nullPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
getCertificationTypeByGUID
CertificationTypeElement getCertificationTypeByGUID(String userId, String certificationTypeGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the certification type by the unique identifier assigned by this service when it was created.- Parameters:
userId- calling usercertificationTypeGUID- identifier of the governance definition to retrieve- Returns:
- properties of the certification type
- Throws:
InvalidParameterException- guid or userId is null; guid is not recognizedPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
getCertificationTypeByDocId
CertificationTypeElement getCertificationTypeByDocId(String userId, String documentIdentifier) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the certification type by its assigned unique document identifier.- Parameters:
userId- calling userdocumentIdentifier- identifier to search for- Returns:
- properties of the matching certification type
- Throws:
InvalidParameterException- documentIdentifier or userId is null; documentIdentifier is not recognizedPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
getCertificationTypesByTitle
List<CertificationTypeElement> getCertificationTypesByTitle(String userId, String title, int startFrom, int pageSize) throws UserNotAuthorizedException, InvalidParameterException, PropertyServerException
Retrieve all the certification types for a particular title. The title can include regEx wildcards.- Parameters:
userId- calling usertitle- identifier of rolestartFrom- where to start from in the list of definitionspageSize- max number of results to return in one call- Returns:
- list of matching certification types (null if no matching elements)
- Throws:
InvalidParameterException- title or userId is nullPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
getCertificationTypeByDomainId
List<CertificationTypeElement> getCertificationTypeByDomainId(String userId, int domainIdentifier, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve all the certification type definitions for a specific governance domain.- Parameters:
userId- calling userdomainIdentifier- identifier to search forstartFrom- where to start from in the list of definitionspageSize- max number of results to return in one call- Returns:
- properties of the matching certification type definitions
- Throws:
InvalidParameterException- domainIdentifier or userId is null; domainIdentifier is not recognizedPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
certifyElement
String certifyElement(String userId, String elementGUID, String certificationTypeGUID, CertificationProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Link an element to a certification type and include details of the certification in the relationship properties.- Parameters:
userId- calling userelementGUID- unique identifier of the element being certifiedcertificationTypeGUID- unique identifier for the certification typeproperties- the properties of the certification- Returns:
- unique identifier of the new relationship
- Throws:
InvalidParameterException- one of the properties is invalidPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
updateCertification
void updateCertification(String userId, String certificationGUID, boolean isMergeUpdate, CertificationProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Update the properties of a certification.- Parameters:
userId- calling usercertificationGUID- unique identifier of the certification relationship being updatedisMergeUpdate- should the supplied properties overlay the existing properties or replace themproperties- the properties of the certification- Throws:
InvalidParameterException- one of the properties is invalidPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
decertifyElement
void decertifyElement(String userId, String certificationGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the certification for an element.- Parameters:
userId- calling usercertificationGUID- unique identifier of the certification relationship- Throws:
InvalidParameterException- one of the properties is invalidPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
getCertifiedElements
List<RelatedElement> getCertifiedElements(String userId, String certificationTypeGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Return information about the elements linked to a certification.- Parameters:
userId- calling usercertificationTypeGUID- unique identifier for the certification typestartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- properties of the certification
- Throws:
InvalidParameterException- qualifiedName or userId is nullPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
getCertifications
List<RelatedElement> getCertifications(String userId, String elementGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Return information about the certifications linked to an element.- Parameters:
userId- calling userelementGUID- unique identifier for the certificationstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- properties of the certification
- Throws:
InvalidParameterException- qualifiedName or userId is nullPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
-