Codota Logo
AccountLink.getLinkedAccount
Code IndexAdd Codota to your IDE (free)

How to use
getLinkedAccount
method
in
io.cattle.platform.core.model.AccountLink

Best Java code snippets using io.cattle.platform.core.model.AccountLink.getLinkedAccount (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Charset c =
  • Codota IconString charsetName;Charset.forName(charsetName)
  • Codota IconCharset.defaultCharset()
  • Codota IconContentType contentType;contentType.getCharset()
  • Smart code suggestions by Codota
}
origin: rancher/cattle

private void getLinkedEnvironments(long accountId, Map<String, Long> links, Map<Long, Region> regionsIds,
    Map<String, ExternalProject> externalProjects) {
  List<AccountLink> accountLinks = objectManager.find(AccountLink.class, ACCOUNT_LINK.ACCOUNT_ID,
      accountId, ACCOUNT_LINK.REMOVED, null, ACCOUNT_LINK.LINKED_REGION_ID, new Condition(ConditionType.NOTNULL));
  for (AccountLink link : accountLinks) {
      if (link.getState().equalsIgnoreCase(CommonStatesConstants.REMOVING)) {
        continue;
      }
      if(link.getState().equalsIgnoreCase(CommonStatesConstants.REMOVED)) {
        continue;
      }
    Region targetRegion = regionsIds.get(link.getLinkedRegionId());
    if (targetRegion == null) {
      continue;
    }
    String UUID = getUUID(targetRegion.getName(), link.getLinkedAccount());
    if (!externalProjects.containsKey(UUID)) {
      links.put(UUID, targetRegion.getId());
    }
  }
}
origin: rancher/cattle

/**
 * {@inheritDoc}
 */
@Override
public void from(io.cattle.platform.core.model.AccountLink from) {
  setId(from.getId());
  setName(from.getName());
  setAccountId(from.getAccountId());
  setKind(from.getKind());
  setUuid(from.getUuid());
  setDescription(from.getDescription());
  setState(from.getState());
  setCreated(from.getCreated());
  setRemoved(from.getRemoved());
  setRemoveTime(from.getRemoveTime());
  setData(from.getData());
  setLinkedAccountId(from.getLinkedAccountId());
  setLinkedAccount(from.getLinkedAccount());
  setLinkedRegionId(from.getLinkedRegionId());
  setLinkedRegion(from.getLinkedRegion());
  setExternal(from.getExternal());
}
origin: rancher/cattle

      localRegion.getName(), targetRegion.getName()));
ExternalProjectResponse externalProjectResponse = RegionUtil.getTargetProjectByName(targetRegion, link.getLinkedAccount(), jsonMapper);
ExternalProject targetResourceAccount = externalProjectResponse.externalProject;
if (targetResourceAccount == null) {
  throw new RuntimeException(String.format("Failed to find target environment by name [%s] in region [%s]",
      link.getLinkedAccount(), localRegion.getName()));
origin: rancher/cattle

  String externalProjectKey = String.format("%s:%s", targetRegion.getName(), link.getLinkedAccount());
  if(externalProjectMap.containsKey(externalProjectKey)) {
    externalProjectResponse = externalProjectMap.get(externalProjectKey);
  } else {
    externalProjectResponse = RegionUtil.getTargetProjectByName(targetRegion, link.getLinkedAccount(), jsonMapper);
    externalProjectMap.put(externalProjectKey, externalProjectResponse);
} catch (Exception ex) {
  log.warn(String.format("Failed to monitor account link for %s - %s", link.getId(), ex));
  existingLinks.add(String.format("%s:%s", link.getLinkedRegion(), link.getLinkedAccount()));
  continue;
origin: rancher/cattle

Set<String> existingLinksKeys = new HashSet<>();
for (AccountLink existingLink : existingLinks) {
  existingLinksKeys.add(getUUID(existingLink.getLinkedRegion(), existingLink.getLinkedAccount()));
  if (!toAdd.contains(getUUID(link.getLinkedRegion(), link.getLinkedAccount()))) {
    toRemove.add(link);
  } else {
origin: rancher/cattle

  return true;
ExternalProjectResponse externalProjectResponse = RegionUtil.getTargetProjectByName(targetRegion, link.getLinkedAccount(), jsonMapper);
ExternalProject targetResourceAccount = externalProjectResponse.externalProject;
if (targetResourceAccount == null) {
io.cattle.platform.core.modelAccountLinkgetLinkedAccount

Javadoc

Getter for cattle.account_link.linked_account.

Popular methods of AccountLink

  • getAccountId
    Getter for cattle.account_link.account_id.
  • getLinkedAccountId
    Getter for cattle.account_link.linked_account_id.
  • getExternal
    Getter for cattle.account_link.external.
  • getId
    Getter for cattle.account_link.id.
  • getLinkedRegion
    Getter for cattle.account_link.linked_region.
  • getLinkedRegionId
    Getter for cattle.account_link.linked_region_id.
  • getState
    Getter for cattle.account_link.state.
  • from
    Load data from another generated Record/POJO implementing the common interface AccountLink
  • getCreated
    Getter for cattle.account_link.created.
  • getData
    Getter for cattle.account_link.data.
  • getDescription
    Getter for cattle.account_link.description.
  • getKind
    Getter for cattle.account_link.kind.
  • getDescription,
  • getKind,
  • getName,
  • getRemoveTime,
  • getRemoved,
  • getUuid

Popular in Java

  • Reading from database using SQL prepared statement
  • notifyDataSetChanged (ArrayAdapter)
  • getSharedPreferences (Context)
  • orElseThrow (Optional)
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now