public class ClientListEntry extends Object
ClientListEntry class holds information reflecting a
ListEntry as well as other information which facilitates
the filtering, comparison and transportation of a received file.| Constructor and Description |
|---|
ClientListEntry()
Default Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object object)
Method used to implement the Comparable interface and compare/order
ClientListEntries according to the following natural
order:
Uri
LastModified
LastAccessed
Size
|
boolean |
equals(Object object) |
long |
getAtime() |
String |
getAtimeString() |
String |
getClientId() |
Date |
getDtLastAccessed() |
Date |
getDtLastModified() |
ArrayList<String> |
getExtended() |
int |
getFlags() |
String |
getFullPath()
Get the full Path
|
String |
getGid() |
String |
getLongFilename() |
long |
getMtime() |
String |
getMtimeString() |
String |
getName()
Get the list entry name
|
int |
getPermissions() |
String |
getPermissionsString() |
long |
getSize() |
String |
getUid() |
URI |
getUri() |
int |
hashCode() |
boolean |
isDirectory() |
void |
isDirectory(boolean isDir) |
boolean |
isLink() |
void |
isLink(boolean isLnk) |
void |
setAtime(long atime) |
void |
setAtimeString(String atimeString) |
void |
setClientId(String clientId) |
void |
setDtLastAccessed(Date dtLastAccessed) |
void |
setDtLastModified(Date dtLastModified) |
void |
setExtended(ArrayList<String> extended) |
void |
setFlags(int flags) |
void |
setFullPath(String fullPath)
Set the fullPath
|
void |
setGid(String gid) |
void |
setLongFilename(String longFilename) |
void |
setMtime(long mtime) |
void |
setMtimeString(String mtimeString) |
void |
setName(String name)
Set the name
|
void |
setPermissions(int permissions) |
void |
setPermissionsString(String permissionsString) |
void |
setSize(long size) |
void |
setUid(String uid) |
void |
setUri(URI uri) |
FileFilter |
toPersistObject()
Used to create a
FileFilter object which can
be used for persisting/filtering the entry. |
String |
toString() |
public URI getUri()
public void setUri(URI uri)
uri - the uri to setpublic String getClientId()
public void setClientId(String clientId)
clientId - the clientId to setpublic long getAtime()
public void setAtime(long atime)
atime - the atime to setpublic void setName(String name)
name - public String getName()
public void setFullPath(String fullPath)
fullPath - public String getFullPath()
public String getAtimeString()
public void setAtimeString(String atimeString)
atimeString - the atimeString to setpublic Date getDtLastAccessed()
public void setDtLastAccessed(Date dtLastAccessed)
dtLastAccessed - the dtLastAccessed to setpublic Date getDtLastModified()
public void setDtLastModified(Date dtLastModified)
dtLastModified - the dtLastModified to setpublic void setExtended(ArrayList<String> extended)
extended - the extended to setpublic int getFlags()
public void setFlags(int flags)
flags - the flags to setpublic String getGid()
public void setGid(String gid)
gid - the gid to setpublic boolean isDirectory()
public void isDirectory(boolean isDir)
isDir - the isDirectory to setpublic boolean isLink()
public void isLink(boolean isLnk)
isLnk - the isLink to setpublic String getLongFilename()
public void setLongFilename(String longFilename)
longFilename - the longFilename to setpublic long getMtime()
public void setMtime(long mtime)
mtime - the mtime to setpublic String getMtimeString()
public void setMtimeString(String mtimeString)
mtimeString - the mtimeString to setpublic int getPermissions()
public void setPermissions(int permissions)
permissions - the permissions to setpublic String getPermissionsString()
public void setPermissionsString(String permissionsString)
permissionsString - the permissionsString to setpublic long getSize()
public void setSize(long size)
size - the size to setpublic String getUid()
public void setUid(String uid)
uid - the uid to setpublic int compareTo(Object object) throws ClassCastException
ClientListEntries according to the following natural
order:
object - The ClientListEntry to compare with this
one.0 if the objects are identical, -1 if
the object compared to this one is relatively smaller, 1 if
the object compared to this one is relatively bigger.ClassCastException - If the object parameter is not of
type ClientListEntrypublic FileFilter toPersistObject()
FileFilter object which can
be used for persisting/filtering the entry.
Note: size is currently downcast from long to int. Maybe change the persist object and table definition to handle this.
NOTE: Order is important due to the Hibernate mappingFileFilter object holding this
entry's URI as string, lastModified, lastAccessed and size.public String toString()
public boolean equals(Object object)
equals in class ObjectObject.equals(Object)public int hashCode()
hashCode in class ObjectObject.hashCode()Copyright © 2007-2017 Ikasan. All Rights Reserved.