@Entity public class File extends Object implements Serializable
| Constructor and Description |
|---|
File() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete() |
boolean |
delete(User user) |
boolean |
equals(Object o) |
boolean |
exists() |
boolean |
exists(User user) |
Long |
getId() |
String |
getName() |
User |
getOwner() |
String |
getPath() |
String |
getPath(User user) |
static String |
getSafeName(String name) |
FileType |
getType() |
int |
hashCode() |
Boolean |
isShared() |
void |
setId(Long id) |
void |
setName(String name) |
void |
setOwner(User user) |
void |
setShared(Boolean shared) |
void |
setType(FileType type) |
String |
toString() |
public static final String separator
public Long getId()
public void setId(Long id)
public FileType getType()
public void setType(FileType type)
public String getName()
public void setName(String name)
public Boolean isShared()
public void setShared(Boolean shared)
public User getOwner()
public void setOwner(User user)
public boolean exists()
public boolean exists(User user)
public boolean delete()
public boolean delete(User user)
public String getPath()
Copyright © 2017 Power TAC. All rights reserved.