Package ghidra.framework.store
Class ItemCheckoutStatus
- java.lang.Object
- 
- ghidra.framework.store.ItemCheckoutStatus
 
- 
- All Implemented Interfaces:
- java.io.Serializable
 
 public class ItemCheckoutStatus extends java.lang.Object implements java.io.SerializableItemCheckoutStatusprovides immutable status information for a checked-out item. This class is serializable so that it may be passed to a remote client.- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description static longserialVersionUID
 - 
Constructor SummaryConstructors Constructor Description ItemCheckoutStatus(long checkoutId, CheckoutType checkoutType, java.lang.String user, int version, long time, java.lang.String projectPath)Constructor.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.util.DategetCheckoutDate()Returns the time at which the checkout was completed.longgetCheckoutId()Returns the unique ID for the associated checkout.longgetCheckoutTime()Returns the time at which the checkout was completed.CheckoutTypegetCheckoutType()Returns the checkout typeintgetCheckoutVersion()Returns the file version which was checked-out.java.lang.StringgetProjectLocation()Return a Project location which corresponds to the projectPath or null if one can not be constructed.java.lang.StringgetProjectName()Return a Project location which corresponds to the projectPath or null if one can not be constructed.java.lang.StringgetProjectPath()Returns user's local project path if known.static java.lang.StringgetProjectPath(java.lang.String projectPath, boolean isTransient)Get project path string suitable for checkout requestsjava.lang.StringgetUser()Returns the user name for the associated checkout.java.lang.StringgetUserHostName()Returns the user's hostname associated with the original checkoutinthashCode()
 
- 
- 
- 
Field Detail- 
serialVersionUIDpublic static final long serialVersionUID - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
ItemCheckoutStatuspublic ItemCheckoutStatus(long checkoutId, CheckoutType checkoutType, java.lang.String user, int version, long time, java.lang.String projectPath)Constructor.- Parameters:
- checkoutId- unique checkout ID
- checkoutType- type of checkout
- user- user name
- version- version of file which was checked-out
- time- time when checkout was completed.
 
 
- 
 - 
Method Detail- 
getCheckoutIdpublic long getCheckoutId() Returns the unique ID for the associated checkout.
 - 
getCheckoutTypepublic CheckoutType getCheckoutType() Returns the checkout type- Returns:
- checkout type
 
 - 
getUserpublic java.lang.String getUser() Returns the user name for the associated checkout.
 - 
getCheckoutVersionpublic int getCheckoutVersion() Returns the file version which was checked-out.
 - 
getCheckoutTimepublic long getCheckoutTime() Returns the time at which the checkout was completed.
 - 
getCheckoutDatepublic java.util.Date getCheckoutDate() Returns the time at which the checkout was completed.- Returns:
 
 - 
getProjectPathpublic java.lang.String getProjectPath() Returns user's local project path if known.
 - 
getProjectNamepublic java.lang.String getProjectName() Return a Project location which corresponds to the projectPath or null if one can not be constructed.- Returns:
- project location
 
 - 
getProjectLocationpublic java.lang.String getProjectLocation() Return a Project location which corresponds to the projectPath or null if one can not be constructed.- Returns:
- project location
 
 - 
getUserHostNamepublic java.lang.String getUserHostName() Returns the user's hostname associated with the original checkout- Returns:
- host name or null
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 - 
getProjectPathpublic static java.lang.String getProjectPath(java.lang.String projectPath, boolean isTransient)Get project path string suitable for checkout requests- Parameters:
- projectPath-
- isTransient- true if project is transient
- Returns:
- project location path
 
 
- 
 
-