Changeset 1892 for ComponentRegistry/trunk/ComponentRegistry/src/main/java/clarin/cmdi/componentregistry/model/Comment.java
- Timestamp:
- 04/19/12 14:44:19 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ComponentRegistry/trunk/ComponentRegistry/src/main/java/clarin/cmdi/componentregistry/model/Comment.java
r1697 r1892 12 12 /** 13 13 * 14 * @author jean-charles FerriÚres <jean-charles.ferrieres@mpi.nl> 14 * @author Jean-Charles FerriÚres <jean-charles.ferrieres@mpi.nl> 15 * @author Twan Goosen <twan.goosen@mpi.nl> 15 16 */ 16 17 @XmlRootElement(name = "comment") … … 24 25 private String id; 25 26 private String userName; 27 private boolean canDelete; 26 28 @XmlTransient // this prevents userId from being serialized to XML and thus exposed (which is useless and undesirable) 27 29 private String userId; … … 76 78 77 79 /** 78 * 80 * 79 81 * @return userName, that is the user's 'real' name, not login name 80 82 */ … … 88 90 public void setUserName(String userName) { 89 91 this.userName = userName; 92 } 93 94 /** 95 * @return whether comment can be deleted 96 */ 97 public boolean isCanDelete() { 98 return canDelete; 99 } 100 101 /** 102 * @param canDelete whether comment can be deleted 103 */ 104 public void setCanDelete(boolean canDelete) { 105 this.canDelete = canDelete; 90 106 } 91 107 … … 103 119 /* 104 120 * Helper method to set the Date in the same format 105 * @param time, long that contains the time to be set 121 * @param time, long that contains the time to be set 106 122 */ 107 123 public static String createNewDate(long time) {
Note: See TracChangeset
for help on using the changeset viewer.