public class Application extends Object
| Constructor and Description |
|---|
Application(String applicationId,
String applicationName,
String applicationVersion,
boolean supportTeamInCluster,
boolean builtInApp)
Constructs the application object with the mandatory parameters.
|
| Modifier and Type | Method and Description |
|---|---|
String |
description()
Gets the brief description for the application.
|
boolean |
equals(Object obj) |
List<ManagedArtifact> |
getAppArtifacts()
Returns the list of artifacts associated with the application.
|
Date |
getDeploymentTime()
Returns the
Date associated with the deployment of this managed
artifact to the system. |
int |
getLicenseMetricId()
Returns the licensing metric Id for the application.
|
int |
getLicenseProdId()
Returns the licensing product Id for the application.
|
ManagedPlan |
getPlan()
Returns the plan object for the plan associated with the application.
|
String |
getState()
Get the state of the application (ACTIVE, RESOLVED, STAGED).
|
int |
hashCode() |
boolean |
hasPlan()
Returns a boolean value based on whether plan is associated with the
application.
|
String |
id()
Get the id for the application.
|
boolean |
isBuiltin()
Returns a boolean value indicating whether this application is a builtin
Flare application or not.
|
boolean |
isLicensable()
Returns whether this application supports licensing.
|
boolean |
isMandatory()
Returns true value whether this application is mandatory for the
system to be healthy.
|
boolean |
isTeamed()
Returns a boolean value indicating whether application supports team.
|
String |
name()
Get the name of the application.
|
void |
setArtifacts(List<ManagedArtifact> appArtifacts)
Process and add plan or all artifacts associated with the application
in a list.
|
void |
setDeploymentTime(Date deploymentTime)
Sets the
Date that this artifact was deployed to the system. |
void |
setDescription(String description)
Set the description for the application.
|
void |
setLicensable(boolean licensable)
Sets the licensing support attribute for the application.
|
void |
setLicenseMetricId(int licenseMetricId)
Sets the licensing metric Id for the application.
|
void |
setLicenseProdId(int licenseProdId)
Sets the licensing product Id for the application.
|
void |
setMandatory(boolean mandatory)
Set mandatory field for the application.
|
void |
setPlan(ManagedPlan plan)
Sets plan for the application.
|
void |
setPlanPresent(boolean planPresent)
Sets whether the plan is present for the application.
|
void |
setState(String state)
Set the state of the application (ACTIVE, RESOLVED, STAGED).
|
void |
setVendor(String vendor)
Set the vendor attribute for the application.
|
String |
vendor()
Gets the vendor information of the application.
|
String |
version()
Get the version of the application.
|
public Application(String applicationId, String applicationName, String applicationVersion, boolean supportTeamInCluster, boolean builtInApp)
applicationId - id of the applicationapplicationName - name of the applicationapplicationVersion - version of the applicationsupportTeamInCluster - whether application supports teamingbuiltInApp - whether application is built-inpublic String id()
public String name()
public String version()
public boolean isTeamed()
public boolean isBuiltin()
public String vendor()
public String description()
public void setVendor(String vendor)
vendor - value of vendor to be set for the applicationpublic void setDescription(String description)
description - description value to be set for the applicationpublic boolean isMandatory()
public void setMandatory(boolean mandatory)
mandatory - boolean value representing the mandatory fieldpublic String getState()
public void setState(String state)
state - current state value to be setpublic Date getDeploymentTime()
Date associated with the deployment of this managed
artifact to the system.Date of deploymentpublic void setDeploymentTime(Date deploymentTime)
Date that this artifact was deployed to the system.deploymentTime - the Date of deploymentpublic void setPlanPresent(boolean planPresent)
planPresent - boolean value indicating presence of planpublic boolean hasPlan()
public void setPlan(ManagedPlan plan)
plan - managed plan associated with the applicationpublic ManagedPlan getPlan()
public void setArtifacts(List<ManagedArtifact> appArtifacts)
appArtifacts - list of URI for artifacts for applicationpublic List<ManagedArtifact> getAppArtifacts()
public boolean isLicensable()
public void setLicensable(boolean licensable)
licensable - boolean value indicating licensing supportpublic int getLicenseProdId()
public void setLicenseProdId(int licenseProdId)
licenseProdId - integer value indicating the product Idpublic int getLicenseMetricId()
public void setLicenseMetricId(int licenseMetricId)
licenseMetricId - integer value indicating the metric idCopyright © 2014. All Rights Reserved.