Package com.appliedolap.essbase.impl
Class EssUtilityImpl
java.lang.Object
com.appliedolap.essbase.AbstractEssObject
com.appliedolap.essbase.impl.EssUtilityImpl
- All Implemented Interfaces:
EssObject,EssUtility
Represents one of the downloadable utilities on the Essbase server.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.appliedolap.essbase.EssObject
EssObject.Type -
Field Summary
Fields inherited from class com.appliedolap.essbase.AbstractEssObject
api -
Constructor Summary
ConstructorsConstructorDescriptionEssUtilityImpl(ApiContext api, com.appliedolap.essbase.client.model.Resource resource) -
Method Summary
-
Constructor Details
-
EssUtilityImpl
-
-
Method Details
-
getName
Description copied from interface:EssObjectGets the name of this object. This will generally be the "nice" and "unique" name of this object, such as the application name, cube, member, variable, or whatever.- Specified by:
getNamein interfaceEssObject- Specified by:
getNamein interfaceEssUtility- Returns:
- the simple name of this object
-
getType
Description copied from interface:EssObjectGets the type of this object.- Specified by:
getTypein interfaceEssObject- Specified by:
getTypein interfaceEssUtility- Returns:
- the object type
-
isDownloadable
public boolean isDownloadable()Description copied from interface:EssUtilityChecks if the utility is downloadable, as opposed to being a direct link. In reviewing the current response format, the list of utilities includes, for example, a link to the index.html page in theurlvariable when it's a link to a web page (and nolinksitem), and in the case of an actually downloadable utility, thelinksitem will exist and may look like the following:"links": [ { "rel": "download", "href": "https://129.159.71.17:443/essbase/rest/v1/utilities/cli", "method": "get", "type": "application/zip" }- Specified by:
isDownloadablein interfaceEssUtility- Returns:
- true if the resource is a downloadable file, false if not (such as in the case of a generic link)
-
download
public void download()- Specified by:
downloadin interfaceEssUtility
-