Package io.anyline2.legacy.trainer
Class ProjectContext
-
- All Implemented Interfaces:
public class ProjectContext extends AssetContext
-
-
Constructor Summary
Constructors Constructor Description ProjectContext(Context context, String pluginId, String projectId, String apiKey)
Creates a new ProjectContext for a given ProjectID plus ApiKey ProjectContext(Context context, String pluginId, String projectId, String apiKey, String assetId)
Creates a new ProjectContext for a given ProjectID plus ApiKey with a specific asset Id ProjectContext(Context context, String pluginId, String projectId, String apiKey, Version assetVersion)
Creates a new ProjectContext for a given ProjectID plus ApiKey with a specific Version ProjectContext(Context context, String pluginId, String projectId, String apiKey, Version assetVersion, String stage)
Creates a new ProjectContext for a given ProjectID plus ApiKey with a specific asset version on a specific Stage ProjectContext(Context context, JSONObject jsonObject)
Creates a new AssetContext from a JSON object
-
Method Summary
Modifier and Type Method Description String
getProjectId()
Gets the project Id void
setProjectId(String projectId)
Sets the project Id String
getApiKey()
Gets the API key that is used to authenticate void
setApiKey(String apiKey)
Sets the API key that is used to authenticate -
Methods inherited from class io.anyline2.legacy.trainer.AssetContext
getAnylineVersion, getAssetId, getAssetVersion, getConfigCacheDirectory, getParameter, getPluginId, getStage, getTokenCacheDirectory, setParameter, toJSONObject
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ProjectContext
ProjectContext(Context context, String pluginId, String projectId, String apiKey)
Creates a new ProjectContext for a given ProjectID plus ApiKey- Parameters:
context
- Application contextprojectId
- project Id to be setapiKey
- API key to be set
-
ProjectContext
ProjectContext(Context context, String pluginId, String projectId, String apiKey, String assetId)
Creates a new ProjectContext for a given ProjectID plus ApiKey with a specific asset Id- Parameters:
context
- Application contextprojectId
- project Id to be setapiKey
- API key to be setassetId
- asset Id to be set
-
ProjectContext
ProjectContext(Context context, String pluginId, String projectId, String apiKey, Version assetVersion)
Creates a new ProjectContext for a given ProjectID plus ApiKey with a specific Version- Parameters:
context
- Application contextpluginId
- plugin IdprojectId
- project Id to be setapiKey
- API key to be setassetVersion
- asset version to be set
-
ProjectContext
ProjectContext(Context context, String pluginId, String projectId, String apiKey, Version assetVersion, String stage)
Creates a new ProjectContext for a given ProjectID plus ApiKey with a specific asset version on a specific Stage- Parameters:
context
- Application contextpluginId
- plugin idprojectId
- project Id to be setapiKey
- API key to be setassetVersion
- asset version to be setstage
- stage to be set
-
ProjectContext
ProjectContext(Context context, JSONObject jsonObject)
Creates a new AssetContext from a JSON object- Parameters:
context
- Application contextjsonObject
- JSON object to be parsed
-
-
Method Detail
-
getProjectId
String getProjectId()
Gets the project Id
- Returns:
project Id
-
setProjectId
void setProjectId(String projectId)
Sets the project Id
- Parameters:
projectId
- project Id to be set
-
-
-
-