Package ghidra.framework.store.remote
Class RemoteUnknownFolderItem
java.lang.Object
ghidra.framework.store.remote.RemoteFolderItem
ghidra.framework.store.remote.RemoteUnknownFolderItem
- All Implemented Interfaces:
FolderItem,UnknownFolderItem
-
Field Summary
Fields inherited from class ghidra.framework.store.remote.RemoteFolderItem
contentType, fileID, itemName, parentPath, repository, textData, version, versionTimeFields inherited from interface ghidra.framework.store.FolderItem
DATABASE_FILE_TYPE, DATAFILE_FILE_TYPE, DEFAULT_CHECKOUT_ID, LATEST_VERSION, LINK_FILE_TYPE, UNKNOWN_FILE_TYPEFields inherited from interface ghidra.framework.store.UnknownFolderItem
UNKNOWN_CONTENT_TYPE -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if unsaved file changes can be recovered.intGet the file type:FolderItem.DATABASE_FILE_TYPEFolderItem.DATAFILE_FILE_TYPEFolderItem.LINK_FILE_TYPEbooleanReturns true if this item is versioned and has one or more checkouts.booleanReturns true if this item is versioned and has a checkin in-progress.longlength()Returns the length of this domain file.voidoutput(File outputFile, int ver, TaskMonitor monitor) Serialize (i.e., pack) this item into the specified outputFile.voidupdateCheckoutVersion(long checkoutId, int checkoutVersion, String user) Update the checkout version associated with this versioned item.Methods inherited from class ghidra.framework.store.remote.RemoteFolderItem
checkout, clearCheckout, delete, getCheckout, getCheckoutId, getCheckouts, getCheckoutVersion, getContentType, getContentTypeVersion, getCurrentVersion, getFileID, getLocalCheckoutVersion, getName, getParentPath, getPathName, getVersions, isCheckedOut, isCheckedOutExclusive, isReadOnly, isVersioned, lastModified, refresh, resetFileID, setCheckout, setContentTypeVersion, setReadOnly, terminateCheckoutMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ghidra.framework.store.FolderItem
checkout, clearCheckout, delete, getCheckout, getCheckoutId, getCheckouts, getCheckoutVersion, getContentType, getContentTypeVersion, getCurrentVersion, getFileID, getLocalCheckoutVersion, getName, getParentPath, getPathName, getVersions, isCheckedOut, isCheckedOutExclusive, isReadOnly, isVersioned, lastModified, refresh, resetFileID, setCheckout, setContentTypeVersion, setReadOnly, terminateCheckout
-
Method Details
-
getFileType
public int getFileType()Description copied from interface:UnknownFolderItemGet the file type:- Specified by:
getFileTypein interfaceUnknownFolderItem- Returns:
- file type or
FolderItem.UNKNOWN_FILE_TYPE(-1) if unknown
-
length
Description copied from interface:FolderItemReturns the length of this domain file. This size is the minimum disk space used for storing this file, but does not account for additional storage space used to tracks changes, etc.- Specified by:
lengthin interfaceFolderItem- Returns:
- file length
- Throws:
IOException- thrown if IO or access error occurs
-
hasCheckouts
Description copied from interface:FolderItemReturns true if this item is versioned and has one or more checkouts.- Specified by:
hasCheckoutsin interfaceFolderItem- Throws:
IOException- if an IO error occurs
-
canRecover
public boolean canRecover()Description copied from interface:FolderItemReturns true if unsaved file changes can be recovered.- Specified by:
canRecoverin interfaceFolderItem
-
isCheckinActive
Description copied from interface:FolderItemReturns true if this item is versioned and has a checkin in-progress.- Specified by:
isCheckinActivein interfaceFolderItem- Throws:
IOException- if an IO error occurs
-
updateCheckoutVersion
public void updateCheckoutVersion(long checkoutId, int checkoutVersion, String user) throws IOException Description copied from interface:FolderItemUpdate the checkout version associated with this versioned item.- Specified by:
updateCheckoutVersionin interfaceFolderItem- Parameters:
checkoutId- id corresponding to an existing checkoutcheckoutVersion-user-- Throws:
IOException- if an IO error occurs.
-
output
public void output(File outputFile, int ver, TaskMonitor monitor) throws IOException, CancelledException Description copied from interface:FolderItemSerialize (i.e., pack) this item into the specified outputFile.- Specified by:
outputin interfaceFolderItem- Parameters:
outputFile- packed output file to be createdver- if this item is versioned, specifies the version to be output, otherwise -1 should be specified.monitor- progress monitor- Throws:
IOExceptionCancelledException- if monitor cancels operation
-