コード例 #1
0
 /**
  * Clones the specified link, sharing the target security.
  *
  * @param linkToClone the link to clone, not null
  */
 public ManageableSecurityLink(SecurityLink linkToClone) {
   setObjectId(linkToClone.getObjectId());
   setExternalId(linkToClone.getExternalId());
   setTarget(linkToClone.getTarget());
 }
コード例 #2
0
 /**
  * Gets the URI, returning a security serach or single security.
  *
  * @param link the link to search for, may be null
  * @return the URI
  */
 public URI securities(final SecurityLink link) {
   if (link.getObjectId() != null) {
     return WebSecurityResource.uri(_data, link.getObjectId().atLatestVersion());
   }
   return WebSecuritiesResource.uri(_data, link.getExternalId());
 }