Package ghidra.framework.remote
Class RepositoryItem
- java.lang.Object
-
- ghidra.framework.remote.RepositoryItem
-
- All Implemented Interfaces:
java.io.Serializable
public class RepositoryItem extends java.lang.Object implements java.io.Serializable
RepositoryItemStatus
provides status information for a repository folder item.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
contentType
static int
DATABASE
static int
FILE
protected java.lang.String
fileID
protected java.lang.String
folderPath
protected java.lang.String
itemName
protected int
itemType
static long
serialVersionUID
protected int
version
protected long
versionTime
-
Constructor Summary
Constructors Modifier Constructor Description protected
RepositoryItem()
Default constructor needed for de-serializationRepositoryItem(java.lang.String folderPath, java.lang.String itemName, java.lang.String fileID, int itemType, java.lang.String contentType, int version, long versionTime)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getContentType()
Returns content classjava.lang.String
getFileID()
int
getItemType()
Returns type of item.java.lang.String
getName()
Returns the item name.java.lang.String
getParentPath()
Returns path of the parent folder containing this item.java.lang.String
getPathName()
Returns the folder item path within the repository.int
getVersion()
Returns the current version of the item or -1 if versioning not supported.long
getVersionTime()
Returns the time (UTC milliseconds) when the current version was created.
-
-
-
Field Detail
-
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
-
FILE
public static final int FILE
- See Also:
- Constant Field Values
-
DATABASE
public static final int DATABASE
- See Also:
- Constant Field Values
-
folderPath
protected java.lang.String folderPath
-
itemName
protected java.lang.String itemName
-
fileID
protected java.lang.String fileID
-
itemType
protected int itemType
-
contentType
protected java.lang.String contentType
-
version
protected int version
-
versionTime
protected long versionTime
-
-
Constructor Detail
-
RepositoryItem
protected RepositoryItem()
Default constructor needed for de-serialization
-
RepositoryItem
public RepositoryItem(java.lang.String folderPath, java.lang.String itemName, java.lang.String fileID, int itemType, java.lang.String contentType, int version, long versionTime)
Constructor.- Parameters:
folderPath
- path of folder containing item.itemName
- name of itemitemType
- type of item (FILE or DATABASE)contentType
- content type associated with itemversion
- repository item version or -1 if versioning not supportedversionTime
- version creation timecheckoutList
- list of checkouts for the associated repository item.
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the item name.
-
getPathName
public java.lang.String getPathName()
Returns the folder item path within the repository.
-
getParentPath
public java.lang.String getParentPath()
Returns path of the parent folder containing this item.
-
getItemType
public int getItemType()
Returns type of item.
-
getContentType
public java.lang.String getContentType()
Returns content class
-
getFileID
public java.lang.String getFileID()
-
getVersion
public int getVersion()
Returns the current version of the item or -1 if versioning not supported.
-
getVersionTime
public long getVersionTime()
Returns the time (UTC milliseconds) when the current version was created.
-
-