public class File extends PermissionsAware implements Serializable, Comparable<File>, Annotatable<FileAttribute>, FirstTierModel
File class.
Constructor and Description |
---|
File()
Constructor for File.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(File that) |
boolean |
equals(Object other) |
Set<FileAttribute> |
getAnnotations()
Get the annotations for this model
|
String |
getDescription()
Getter for the field
description . |
Set<FileAttribute> |
getFileAttributes()
Getter for the field
fileAttributes . |
Integer |
getFileId()
Getter for the field
fileId . |
String |
getFileName()
getFileName.
|
String |
getFilePath()
Getter for the field
filePath . |
FileType |
getFileType()
Getter for the field
fileType . |
Boolean |
getIsSelected()
Getter for the field
isSelected . |
String |
getJsonEscapeDescription()
getJsonEscapeDescription.
|
String |
getJsonEscapeFileName()
getJsonEscapeFileName.
|
String |
getMd5sum()
Getter for the field
md5sum . |
String |
getMetaType()
Getter for the field
metaType . |
Registration |
getOwner()
Getter for the field
owner . |
Set<Processing> |
getProcessings()
Getter for the field
processings . |
Long |
getSize()
Getter for the field
size . |
Boolean |
getSkip() |
Integer |
getSwAccession()
Getter for the field
swAccession . |
String |
getType()
Getter for the field
type . |
String |
getUrl()
Getter for the field
url . |
String |
getUrlLabel()
Getter for the field
urlLabel . |
boolean |
givesPermissionInternal(Registration registration,
Set<Integer> considered)
Short-circuit permission checking by providing a set of entities that have already been checked
|
int |
hashCode() |
void |
setDescription(String description)
Setter for the field
description . |
void |
setFileAttributes(Set<FileAttribute> fileAttributes)
Setter for the field
fileAttributes . |
void |
setFileId(Integer fileId)
Setter for the field
fileId . |
void |
setFilePath(String filePath)
Setter for the field
filePath . |
void |
setFileType(FileType fileType)
Setter for the field
fileType . |
void |
setIsSelected(Boolean isSelected)
Setter for the field
isSelected . |
void |
setMd5sum(String md5sum)
Setter for the field
md5sum . |
void |
setMetaType(String metaType)
Setter for the field
metaType . |
void |
setOwner(Registration owner)
Setter for the field
owner . |
void |
setProcessings(Set<Processing> processing)
Setter for the field
processings . |
void |
setSize(Long size)
Setter for the field
size . |
void |
setSkip(Boolean skip) |
void |
setSwAccession(Integer swAccession)
Setter for the field
swAccession . |
void |
setType(String type)
Setter for the field
type . |
void |
setUrl(String url)
Setter for the field
url . |
void |
setUrlLabel(String urlLabel)
Setter for the field
urlLabel . |
String |
toString() |
givesPermission, givesPermission
public Set<Processing> getProcessings()
Getter for the field processings
.
Set
object.public void setProcessings(Set<Processing> processing)
Setter for the field processings
.
processing
- a Set
object.public int compareTo(File that)
compareTo
in interface Comparable<File>
that
- public String getJsonEscapeFileName()
getJsonEscapeFileName.
String
object.public void setFileId(Integer fileId)
Setter for the field fileId
.
fileId
- a Integer
object.public void setFilePath(String filePath)
Setter for the field filePath
.
filePath
- a String
object.public void setType(String type)
Setter for the field type
.
type
- a String
object.public void setMetaType(String metaType)
Setter for the field metaType
.
metaType
- a String
object.public String getJsonEscapeDescription()
getJsonEscapeDescription.
String
object.public String getDescription()
Getter for the field description
.
String
object.public void setDescription(String description)
Setter for the field description
.
description
- a String
object.public Integer getSwAccession()
Getter for the field swAccession
.
getSwAccession
in interface FirstTierModel
Integer
object.public void setSwAccession(Integer swAccession)
Setter for the field swAccession
.
swAccession
- a Integer
object.public Registration getOwner()
Getter for the field owner
.
Registration
object.public void setOwner(Registration owner)
Setter for the field owner
.
owner
- a Registration
object.public Boolean getIsSelected()
Getter for the field isSelected
.
Boolean
object.public void setIsSelected(Boolean isSelected)
Setter for the field isSelected
.
isSelected
- a Boolean
object.public void setUrlLabel(String urlLabel)
Setter for the field urlLabel
.
urlLabel
- a String
object.public void setMd5sum(String md5sum)
Setter for the field md5sum
.
md5sum
- a String
object.public void setFileType(FileType fileType)
Setter for the field fileType
.
fileType
- a FileType
object.public boolean givesPermissionInternal(Registration registration, Set<Integer> considered)
PermissionsAware
givesPermissionInternal
in class PermissionsAware
public Set<FileAttribute> getFileAttributes()
Getter for the field fileAttributes
.
Set
object.public void setFileAttributes(Set<FileAttribute> fileAttributes)
Setter for the field fileAttributes
.
fileAttributes
- a Set
object.public Boolean getSkip()
public void setSkip(Boolean skip)
skip
- the skip to setpublic Set<FileAttribute> getAnnotations()
Annotatable
getAnnotations
in interface Annotatable<FileAttribute>
Copyright © 2015 SeqWare. All rights reserved.