* @param trashed true if the document should be trashed
*/
public void setTrashed(boolean trashed) {
if (trashed) {
this.getCategories().add(Labels.TRASHED);
this.setExtension(new Deleted());
} else {
this.getCategories().remove(Labels.TRASHED);
this.removeExtension(Deleted.class);
}
}