resource-sweeper-widget/src/main/java/org/gcube/portlets/admin/resourcesweeper/client/model/ResourceTypeDecorator.java

80 lines
2.8 KiB
Java

/****************************************************************************
* This software is part of the gCube Project.
* Site: http://www.gcube-system.org/
****************************************************************************
* The gCube/gCore software is licensed as Free Open Source software
* conveying to the EUPL (http://ec.europa.eu/idabc/eupl).
* The software and documentation is provided by its authors/distributors
* "as is" and no expressed or
* implied warranty is given for its use, quality or fitness for a
* particular case.
****************************************************************************
* Filename: ResourceTypeDecorator.java
****************************************************************************
* @author <a href="mailto:daniele.strollo@isti.cnr.it">Daniele Strollo</a>
***************************************************************************/
package org.gcube.portlets.admin.resourcesweeper.client.model;
/**
* @author Daniele Strollo
* @author Massimiliano Asssante (ISTI-CNR)
*
*/
public enum ResourceTypeDecorator {
/****************************************
* RESOURCES IN THE TREE
****************************************/
GHN("gCube Hosting Node", "ghn-icon"),
RunningInstance("Running Instances", "runninginstance-icon"),
Service("Software", "service-icon"),
VIEW("View", "metadatacollection-icon"),
GenericResource("Generic Resources", "genericresource-icon"),
Collection("Collection", "collection-icon"),
WSResource("WSResource", "wsresources-icon"),
Empty("Empty Tree", "empty-icon"),
RuntimeResource("Runtime Resources", "runtimeresource-icon"),
/****************************************
* Other components
****************************************/
// For deploying services - similar to the software but with an
// extension to handle checkbox for install
InstallableSoftware("InstallableSoftware", "empty-icon"),
// In the taskbar for handlig the refresh of deployment reports
DeployReport("Deploy Report", "report-big-icon"),
AddScopeReport("Add Scope Report", "report-big-icon"),
/****************************************
* Related resources
****************************************/
GHNRelated("Running Instances", "runninginstance-icon"),
ServiceRelated("Running Instances", "runninginstance-icon"),
RunningInstanceRelated("Running Instances", "runninginstance-icon"),
/****************************************
* Models for SWEEPER
***************************************/
Sweeper_GHN("gCube Hosting Node", "ghn-icon"),
Sweeper_RI("Running Instance", "runninginstance-icon");
private String label = null;
private String icon = null;
ResourceTypeDecorator(
final String label,
final String icon) {
this.label = label;
this.icon = icon;
}
public String getLabel() {
return this.label;
}
public String getIcon() {
return this.icon;
}
}