コード例 #1
0
 private MilitaryRank getTechRank() {
   for (AssetAttribute assetAttr : technician.getAssetAttributes()) {
     if ("rank".equalsIgnoreCase(assetAttr.getName())) {
       return MilitaryRank.get(assetAttr.getValue());
     }
   }
   return MilitaryRank.UNKN;
 }
コード例 #2
0
 public int compareTo(TechnicianPresentation o) {
   int result = 0;
   if (o != null) {
     result = o.getRank().compareTo(this.rank);
     if (result == 0) {
       result = technician.getName().compareTo(o.getName());
     }
   }
   return result;
 }
コード例 #3
0
 public String getName() {
   return technician.getName();
 }
コード例 #4
0
 public Long getId() {
   return technician.getId();
 }
コード例 #5
0
 public String getDisplayName() {
   return technician.getName() + (sticky ? " (manually assigned)" : "");
 }