Tabnine Logo
AccountLink.getLinkedRegionId
Code IndexAdd Tabnine to your IDE (free)

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

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

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

Region targetRegion = objectManager.loadResource(Region.class, link.getLinkedRegionId());
Region localRegion = objectManager.findAny(Region.class, REGION.LOCAL, true, REGION.REMOVED, null);
if(localRegion == null) {
origin: rancher/cattle

Region targetRegion = regionMap.get(link.getLinkedRegionId());
if(targetRegion == null) {
  objectProcessManager.executeStandardProcess(StandardProcess.REMOVE, link, null);
origin: rancher/cattle

Region targetRegion = objectManager.loadResource(Region.class, link.getLinkedRegionId());
if(targetRegion == null) {
  return true;
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());
}
io.cattle.platform.core.modelAccountLinkgetLinkedRegionId

Javadoc

Getter for cattle.account_link.linked_region_id.

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.
  • getLinkedAccount
    Getter for cattle.account_link.linked_account.
  • getLinkedRegion
    Getter for cattle.account_link.linked_region.
  • 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

  • Finding current android device location
  • getResourceAsStream (ClassLoader)
  • onCreateOptionsMenu (Activity)
  • onRequestPermissionsResult (Fragment)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Collectors (java.util.stream)
  • JButton (javax.swing)
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now