private MilitaryRank getTechRank() { for (AssetAttribute assetAttr : technician.getAssetAttributes()) { if ("rank".equalsIgnoreCase(assetAttr.getName())) { return MilitaryRank.get(assetAttr.getValue()); } } return MilitaryRank.UNKN; }
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; }
public String getName() { return technician.getName(); }
public Long getId() { return technician.getId(); }
public String getDisplayName() { return technician.getName() + (sticky ? " (manually assigned)" : ""); }