# Uses of Class
com.ads.api.beans.sm.SMEnvironment

Packages that use SMEnvironment
Package
Description
com.ads.api.beans.sm
Contains Collection Classes,Java Bean Classes which are specific to System, Environment,Table, Column and Node.
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 SMEnvironment in com.ads.api.beans.sm

  Methods in com.ads.api.beans.sm that return SMEnvironment
  Modifier and Type
  Method
  Description
  `SMEnvironment`
  SMEnvironment.`addAssociationsList(com.ads.association.export.model.ExportedAssociation associationObj)`
  It will not add association to this object as it is being used internally.
  `SMEnvironment`
  SMEnvironment.`addExtendedProperty(KeyValue extendedProperty)`
  Adds the KeyValue Object for the specified table.
  `SMEnvironment`
  SMEnvironment.`addSDIClassification(SDIClassification classification)`
  It adds the given sdiClassification object to the list.
  `SMEnvironment`
  SMEnvironment.`addTag(Tag tagvo)`
  `SMEnvironment`
  SMSchema.`getEnvironment()`
  `SMEnvironment`
  SMTable.`getEnvironment()`
  Returns the environment object of the table object.
  `SMEnvironment`
  SMEnvironment.`setAssociationsList(List<com.ads.association.export.model.ExportedAssociation> associations)`
  It will not set any associations particular to this object as it is being used internally.
  Methods in com.ads.api.beans.sm that return types with arguments of type SMEnvironment
  Modifier and Type
  Method
  Description
  `Collection<SMEnvironment>`
  SMSystem.`getEnvironments()`
  Returns the list of SMEnvironment objects.
  Methods in com.ads.api.beans.sm with parameters of type SMEnvironment
  Modifier and Type
  Method
  Description
  `void`
  SMSystem.`addEnvironment(SMEnvironment environment)`
  Adds environment as specified in SMEnvironment Object.
  `void`
  SMSystem.`deleteEnvironment(SMEnvironment environment)`
  Deletes the specified environment object
  `void`
  SMSchema.`setEnvironment(SMEnvironment environment)`
  Method sets the environment object as specified.
  `void`
  SMTable.`setEnvironment(SMEnvironment environment)`
  Sets the environment as specified.

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

  Methods in com.ads.api.util that return SMEnvironment
  Modifier and Type
  Method
  Description
  `SMEnvironment`
  SystemManagerUtil.`getEnvironment(int environmentId)`
  Returns SMEnvironment Object for the specified environmentId.Specifying the environmentId is mandatory.
  `SMEnvironment`
  SystemManagerUtil.`getEnvironment(int environmentId, boolean fillMetadata)`
  Deprecated.
  `SMEnvironment`
  SystemManagerUtil.`getEnvironment(int environmentId, boolean fillMetadata, boolean useReferenceId)`
  Deprecated.
  `SMEnvironment`
  SystemManagerUtil.`getEnvironment(int environmentId, int fillOptions, boolean useReferenceId)`
  Returns SMEnvironment object for the specified environmentId, fillOptions, and useReferenceId.
  `SMEnvironment`
  SystemManagerUtil.`getEnvironmentBySystemId(int systemId, String environmentName)`
  Returns SMEnvironment Object for the specified systemId and environmentName.
  Methods in com.ads.api.util that return types with arguments of type SMEnvironment
  Modifier and Type
  Method
  Description
  `List<SMEnvironment>`
  LineageUtil.`getEnvironments(APIConstants.EndPointType endPointType, String systemName, String projectIds)`
  Returns the List objects for the specified systemName.
  `Map<String,List<SMEnvironment>>`
  LineageUtil.`getEnvironments(APIConstants.EndPointType endPointType, ArrayList<String> systemNames, String projectIds)`
  Returns the Map<String, List> object for the specified list of systemNames.
  `ArrayList<SMEnvironment>`
  SystemManagerUtil.`getEnvironments(int systemId)`
  Returns the SMEnvironment Object List for the specified systemId.
  `List<SMEnvironment>`
  SystemManagerUtil.`loadDataAssets(int systemId, String visible, boolean fillExtendedProperties, boolean isHTML)`
  Methods in com.ads.api.util with parameters of type SMEnvironment
  Modifier and Type
  Method
  Description
  `RequestStatus`
  SystemManagerUtil.`createEnvironment(SMEnvironment environment)`
  Inserts a new System Environment for the specified environment object.It creates the environment with the given details.
  `DBProperties`
  SystemManagerUtil.`getEnvironmentConnectionProperties(SMEnvironment environment)`
  Returns DBProperties Object for the specified SMEnvironment object.
  `RequestStatus`
  SystemManagerUtil.`updateEnvironment(SMEnvironment environment)`
  Updates a System Environment for the specified SMEnvironment object, where all the environment details can be updated.

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

  Method parameters in com.ads.services.webservice.rest with type arguments of type SMEnvironment
  Modifier and Type
  Method
  Description
  `org.springframework.http.ResponseEntity`
  SystemResource.`createEnvironments(List<SMEnvironment> environments)`
  Inserts a new system environment for the specified environment object.
  `org.springframework.http.ResponseEntity`
  SystemResource.`updateEnvironments(List<SMEnvironment> environments)`
  Updates the list of environments for the specified list of SMEnvironment objects.