# Uses of Class
com.ads.api.beans.mm.Mapping

Packages that use Mapping
Package
Description
com.ads.api.util
Contains Utility Classes, Collection Classes, Java Bean Classes which are specific to System, Environment, Table, Column, Mappings, Subject, KeyValue Pairs, ROle, Business Glossary Catalog, Document etc...
com.ads.services.webservice.rest
Contains Resource Classes, methods related to System, Environment, Table, Column, Mappings, Subject, Business Catalogs, Tags, Associations, Files etc., includes the user authentication for the REST services methods.

- ## Uses of Mapping in com.ads.api.util

  Methods in com.ads.api.util that return Mapping
  Modifier and Type
  Method
  Description
  `Mapping`
  MappingManagerUtil.`getMapping(int mappingId)`
  Returns Mapping Object for the specified mappingId.
  `Mapping`
  MappingManagerUtil.`getMapping(int mappingId, boolean fillSpecifications)`
  Returns Mapping Object for the specified mappingId and fillSpecifications.
  `Mapping`
  MappingManagerUtil.`getMapping(int mappingId, boolean fillSpecifications, boolean fillDocuments)`
  Returns Mapping Object for the specified mappingId, fillSpecifications and fillDocuments.
  `Mapping`
  MappingManagerUtil.`getMapping(int parentNodeId, Node.NodeType nodeType, String mappingName)`
  Returns Mapping Object for the specified parentNodeId, mappingName and nodeType.
  `Mapping`
  MappingManagerUtil.`getMapping(int nodeId, Node.NodeType nodeType, String mapName, float versionNo)`
  Returns all the information relating to the specified mapName, such as mappingDescription, mappingSpecVersion, mappingStatus,
  mappingPlannedDevelopmentEffort, actualEffort,testingNotes, versionLabel, userDefined Fields, AuditFields etc...
  Methods in com.ads.api.util that return types with arguments of type Mapping
  Modifier and Type
  Method
  Description
  `ArrayList<Mapping>`
  MappingManagerUtil.`getMappings(int parentNodeId, Node.NodeType nodeType)`
  Returns the List of Mappings for the specified parentNodeId, nodeType.
  `ArrayList<Mapping>`
  MappingManagerUtil.`getMappings(List<Integer> mapIds, boolean fillSpecifications, boolean fillDocuments)`
  Returns List of Mappings for the specified List of mapIds.
  `ArrayList<Mapping>`
  MappingManagerUtil.`getMappingsInProject(int projectId, boolean fillSpecifications, boolean fillDocuments)`
  Returns List of Mappings for the specified projectId, fillSpecifications and fillDocuments.
  `ArrayList<Mapping>`
  MappingManagerUtil.`getMappingsInProject(String projectName, boolean fillSpecifications, boolean fillDocuments)`
  Returns List of mappings for the specified projectName, fillSpecifications, fillDocuments.
  `ArrayList<Mapping>`
  MappingManagerUtil.`getMappingsInSubject(int subjectId, boolean fillSpecifications, boolean fillDocuments)`
  Returns List of mappings for the specified for a given subject Id, fillSpecifications, fillDocuments.
  `ArrayList<Mapping>`
  MappingManagerUtil.`getMappingsInSubject(String subjectName, boolean fillSpecifications, boolean fillDocuments)`
  Returns List of all mappings from all projects containing the subject name at any level, fillSpecifications and fillDocuments.
  Methods in com.ads.api.util with parameters of type Mapping
  Modifier and Type
  Method
  Description
  `RequestStatus`
  MappingManagerUtil.`createMapping(Mapping mapping)`
  Creates Mapping With the specified Mapping Object.
  `RequestStatus`
  MappingManagerUtil.`createMapping(Mapping mapping, boolean addSpecifications)`
  Creates Mapping with the specified mapping object and addSpecifications.
  `RequestStatus`
  MappingManagerUtil.`updateMapping(Mapping mapping)`
  Updates mapping for the specified Mapping Object.
  `RequestStatus`
  MappingManagerUtil.`versionMapping(Mapping mapping)`
  Appends mapping version for the specified Mapping Object.
  Method parameters in com.ads.api.util with type arguments of type Mapping
  Modifier and Type
  Method
  Description
  `RequestStatus`
  MappingManagerUtil.`createMappings(List<Mapping> mappings, boolean addSpecifications)`
  Creates Mappings with the specified mapping objects and addSpecifications.
  `RequestStatus`
  MappingManagerUtil.`createMappings(List<Mapping> mappings, int fillOptions)`
  Creates Mappings for the specified mapping objects and fillOptions.

- ## Uses of Mapping in com.ads.services.webservice.rest

  Method parameters in com.ads.services.webservice.rest with type arguments of type Mapping
  Modifier and Type
  Method
  Description
  `org.springframework.http.ResponseEntity`
  MappingManagerResource.`createMapping(List<Mapping> mappings, int fillOptions)`
  Creates Mappings for the specified mapping objects and fillOptions.
  Specifying projectId or subjectId and mappingName are mandatory in each mapping object.
  Here fillOptions can be Integer values of either `APIConstants.MMFillOptions.MAPPING_SPECIFICATIONS` or `APIConstants.MMFillOptions.MAPPING_DOCUMENTS` or `APIConstants.MMFillOptions.MAPPING_EXTENDED_PROPERTIES` for example: If you want to add mappings along with mapping specifications and documents you need to pass the fillOptions parameter value as 3 (MAPPING_SPECIFICATIONS(1) + MAPPING_DOCUMENTS(2)).
  `org.springframework.http.ResponseEntity`
  MappingManagerResource.`updateMappings(List<Mapping> mappings)`
  Updates the mappings for the specified list of mapping objects.