Interface ComplexRelationApi
public interface ComplexRelationApi
Provides functionality for the ComplexRelations
-
Method Summary
Modifier and TypeMethodDescriptionaddComplexRelation(AddComplexRelationRequest addComplexRelationRequest) Add a new complex relation.changeComplexRelation(ChangeComplexRelationRequest changeComplexRelationRequest) Changes the complex relation as described by the requestbooleanReturns true if complex relation with given ID exists and user has view permissions, false otherwise.exportCSV(ExportComplexRelationsToCSVRequest exportRequest) Export all complex relations of the given type as a String.exportCSVInJob(ExportComplexRelationsToCSVRequest exportRequest) Export complex relations to CSV.exportCSVToFile(ExportComplexRelationsToCSVRequest exportRequest) Export all complex relations of the given type to a CSV file.exportExcelInJob(ExportComplexRelationsToExcelRequest exportRequest) Export complex relations to Excel.exportExcelToFile(ExportComplexRelationsToExcelRequest exportRequest) Export all complex relations of the given type to an Excel file.findComplexRelationIdsWithTargetAsset(UUID assetId, UUID legType, UUID complexRelationType) Retrieve the ids of all the Complex Relations of a certain complex relation type having a relation of a given leg type with the given asset.findComplexRelations(FindComplexRelationsRequest findComplexRelationsRequest) FindComplexRelationusing filtering criteria.findComplexRelationsByIds(Collection<UUID> complexRelationIds) Get list of complex relations identified by given IDs, silently ignore non-existing IDs.getComplexRelation(UUID complexRelationId) Returns the ComplexRelation identified by the given UUIDvoidremoveComplexRelation(UUID complexRelationId) Removes the ComplexRelation linked to the given UUID
-
Method Details
-
getComplexRelation
Returns the ComplexRelation identified by the given UUID- Parameters:
complexRelationId- the UUID of the complex relation- Returns:
- the complex relation
-
findComplexRelationsByIds
@SecurityAuditMethod(resultFormatter=com.collibra.audit.formatter.CollectionFormatter.class) Collection<ComplexRelation> findComplexRelationsByIds(Collection<UUID> complexRelationIds) Get list of complex relations identified by given IDs, silently ignore non-existing IDs.- Parameters:
complexRelationIds- The list of complex relation ids.- Returns:
- The list of
ComplexRelation.
-
exists
Returns true if complex relation with given ID exists and user has view permissions, false otherwise.- Parameters:
complexRelationId- the ID of the complex relation- Returns:
- true if complex relation with given ID exists and viewable,
falseotherwise
-
removeComplexRelation
Removes the ComplexRelation linked to the given UUID- Parameters:
complexRelationId- the UUID of the complexRelation
-
findComplexRelations
@SecurityAuditMethod(resultFormatter=com.collibra.dgc.core.api.internal.security.audit.formatter.PagedResponseFormatter.class) CursorPagedResponse<ComplexRelation> findComplexRelations(FindComplexRelationsRequest findComplexRelationsRequest) FindComplexRelationusing filtering criteria.- Parameters:
findComplexRelationsRequest-ComplexRelationfiltering criteria.- Returns:
PagedResponsecontainingComplexRelations.
-
findComplexRelationIdsWithTargetAsset
@SecurityAuditMethod(resultFormatter=com.collibra.audit.formatter.CollectionFormatter.class) Set<UUID> findComplexRelationIdsWithTargetAsset(UUID assetId, UUID legType, UUID complexRelationType) Retrieve the ids of all the Complex Relations of a certain complex relation type having a relation of a given leg type with the given asset.- Parameters:
assetId- The id of the asset to retrieve theComplexRelations forlegType- The id of the legType to retrieve theComplexRelations forcomplexRelationType- The id of the ComplexRelationType}- Returns:
- The set of ids of the found Complex relations
-
addComplexRelation
Add a new complex relation.- Parameters:
addComplexRelationRequest- contains all the necessary data to add a complex relation.- Returns:
- The newly created complex relation.
-
changeComplexRelation
Changes the complex relation as described by the request- Parameters:
changeComplexRelationRequest- the request- Returns:
- the changed complex relation
-
exportExcelInJob
Export complex relations to Excel.- Parameters:
exportRequest- The request containing the necessary parameters for the export.- Returns:
- The export
Job.
-
exportExcelToFile
Export all complex relations of the given type to an Excel file.- Parameters:
exportRequest- The request containing the necessary parameters for the export.- Returns:
- The
FileInfocorresponding to the exported Excel file
-
exportCSVInJob
Export complex relations to CSV.- Parameters:
exportRequest- The request containing the necessary parameters for the export.- Returns:
- The export
Job.
-
exportCSVToFile
Export all complex relations of the given type to a CSV file.- Parameters:
exportRequest- The request containing the necessary parameters for the export.- Returns:
- The
FileInfocorresponding to the exported CSV file
-
exportCSV
Export all complex relations of the given type as a String.- Parameters:
exportRequest- The request containing the necessary parameters for the export.- Returns:
- The CSV raw data
-