Example #1
0
 /**
  * Obtains an instance from a security, locking by external identifier bundle. The result will
  * contain the external identifier bundle and the resolved target.
  *
  * @param security the security to store, not null
  * @return the link with target and identifier bundle set, not null
  */
 public static ManageableSecurityLink ofBundleId(Security security) {
   ArgumentChecker.notNull(security, "security");
   ManageableSecurityLink link = new ManageableSecurityLink(security.getExternalIdBundle());
   link.setTarget(security);
   return link;
 }