Package com.appliedolap.essbase.impl
Class EssFolderImpl
java.lang.Object
com.appliedolap.essbase.AbstractEssObject
com.appliedolap.essbase.impl.EssFileImpl
com.appliedolap.essbase.impl.EssFolderImpl
Represents a folder in the remote Essbase server pseudo-filesystem.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.appliedolap.essbase.EssObject
EssObject.Type -
Field Summary
Fields inherited from class com.appliedolap.essbase.impl.EssFileImpl
fullPathFields inherited from class com.appliedolap.essbase.AbstractEssObject
api -
Constructor Summary
ConstructorsConstructorDescriptionEssFolderImpl(ApiContext api, EssServer server, String name, String fullPath) -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateSubFolder(String subFolderName) Creates a subfolder in this folder.getFiles()Lists this folder's contents.booleanisFile()Returns true if this is a file, not a folder.booleanisFolder()Checks if this file object represents a file or a folder.voiduploadFile(File file) Uploads a file to this folder.Methods inherited from class com.appliedolap.essbase.impl.EssFileImpl
copy, delete, download, downloadTo, downloadToFolder, extract, getDatabasesInLcmZip, getFullPath, getName, getPath, getServer, getType, lcmImport, move, renameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.appliedolap.essbase.EssFile
copy, delete, download, downloadTo, downloadToFolder, extract, getDatabasesInLcmZip, getFullPath, getName, getPath, getServer, getType, lcmImport, move, rename
-
Constructor Details
-
EssFolderImpl
-
-
Method Details
-
isFolder
public boolean isFolder()Description copied from interface:EssFileChecks if this file object represents a file or a folder. If this method returnstrue, then this class may be cast toEssFolderImpl, which is a subclass of this one. -
isFile
public boolean isFile()Description copied from interface:EssFileReturns true if this is a file, not a folder. -
createSubFolder
Description copied from interface:EssFolderCreates a subfolder in this folder.- Specified by:
createSubFolderin interfaceEssFolder- Parameters:
subFolderName- the name of the subfolder
-
uploadFile
Description copied from interface:EssFolderUploads a file to this folder.- Specified by:
uploadFilein interfaceEssFolder- Parameters:
file- the file
-
getFiles
Lists this folder's contents.Goes through
NativeHttprather than the generated client, for the same reasonuploadFile(java.io.File)andcreateSubFolder(java.lang.String)already do: the generated call puts the whole path throughurlEncode, which escapes the separators too, so anything below the top level is asked for as/files/applications%2FSampleand the server answersSpecified path '/applications%2FSample' does not exist. Every folder but the roots was unbrowsable.
-