Exemple #1
0
 private ManageableSecurity getSecurity(ExternalId underlyingIdentifier) {
   if (underlyingIdentifier == null) {
     return null;
   }
   SecurityMaster securityMaster = data().getSecurityMaster();
   SecuritySearchRequest request = new SecuritySearchRequest();
   request.addExternalId(underlyingIdentifier);
   SecuritySearchResult search = securityMaster.search(request);
   return search.getFirstSecurity();
 }
 @Override
 public boolean equals(Object obj) {
   if (obj == this) {
     return true;
   }
   if (obj != null && obj.getClass() == this.getClass()) {
     SecuritySearchRequest other = (SecuritySearchRequest) obj;
     return JodaBeanUtils.equal(getObjectIds(), other.getObjectIds())
         && JodaBeanUtils.equal(getExternalIdSearch(), other.getExternalIdSearch())
         && JodaBeanUtils.equal(getExternalIdValue(), other.getExternalIdValue())
         && JodaBeanUtils.equal(getName(), other.getName())
         && JodaBeanUtils.equal(getSecurityType(), other.getSecurityType())
         && JodaBeanUtils.equal(isFullDetail(), other.isFullDetail())
         && super.equals(obj);
   }
   return false;
 }