Get base ou for given manageable ous.<p>

@return Base ou (may be outside of given ou)
767779
public String getBaseOU() {

        if (m_isRootAccountManager) {
            return "";
        }

        if (m_managableOU.contains("")) {
            return "";
        }
        String base = m_managableOU.get(0);
        for (String ou : m_managableOU) {
            while (!ou.startsWith(base)) {
                base = base.substring(0, base.length() - 1);
                if (base.lastIndexOf("/") > -1) {
                    base = base.substring(0, base.lastIndexOf("/"));
                } else {
                    return "";
                }
            }
        }
        return base;
    }
751353
public Stream<BASE> getUnmatchedBases() {
    return bases.stream().filter(base -> !baseToRaw.containsKey(base));
  }
618568
private String getOuFromItem(Object itemId, I_CmsOuTreeType type) {

        if (type.equals(CmsOuTreeType.OU)) {
            return ((CmsOrganizationalUnit)itemId).getName();
        }
        Object o = m_treeContainer.getParent(itemId);
        while (!(o instanceof CmsOrganizationalUnit)) {
            o = m_treeContainer.getParent(o);
        }
        return ((CmsOrganizationalUnit)o).getName();
    }
860353
public function getBaseUri()
    {
        if ($this->baseUri === null) {
            $this->baseUri = $this->detectBaseUri();
        }

        return $this->baseUri;
    }
501979
public static CmsResourceInfo getOUInfo(CmsOrganizationalUnit ou) {

        String style = OpenCmsTheme.ICON_OU;
        if (ou.hasFlagWebuser()) {
            style = OpenCmsTheme.ICON_OU_WEB;
        }
        CmsCssIcon image = new CmsCssIcon(style);
        return new CmsResourceInfo(
            ou.getDisplayName(A_CmsUI.get().getLocale()),
            ou.getDescription(A_CmsUI.get().getLocale()),
            image);
    }
889285
public com.google.api.ads.adwords.axis.v201809.mcm.ManagedCustomer getOperand() {
        return operand;
    }
693241
public List<JvmOperation> getJvmOperationsFromURIs(XtendTypeDeclaration container, String... operationUris) {
		// Collect the JvmOperation prior to any modification for ensuring that
		// URI are pointing the JvmOperations.
		final List<JvmOperation> operations = new ArrayList<>();
		final ResourceSet resourceSet = container.eResource().getResourceSet();
		for (final String operationUriAsString : operationUris) {
			final URI operationURI = URI.createURI(operationUriAsString);
			final EObject overridden = resourceSet.getEObject(operationURI, true);
			if (overridden instanceof JvmOperation) {
				final JvmOperation operation = (JvmOperation) overridden;
				if (this.annotationFinder.findAnnotation(operation, DefaultValueUse.class) == null) {
					operations.add(operation);
				}
			}
		}
		return operations;
	}
406412
public java.lang.String getOperation() {
    java.lang.Object ref = operation_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      operation_ = s;
      return s;
    }
  }
715753
private CmsObject getRootCms() {

        if (m_cms == null) {
            m_cms = A_CmsUI.getCmsObject();
            m_cms.getRequestContext().setSiteRoot("");
        }
        return m_cms;
    }
1109578
public final Set<BaseType> getBaseTypeClosure(BaseTypeFactory typeFactory)
  {
    if (_typeClosureSet == null) {
      LinkedHashSet<BaseType> baseTypeSet = new LinkedHashSet<BaseType>();
    
      for (Type type : getTypeClosure(typeFactory)) {
        baseTypeSet.add(typeFactory.createForSource(type));
      }
      
      _typeClosureSet = baseTypeSet;
    }
    
    return _typeClosureSet;
  }
1349080
public Map<URI, URI> getConflicTable() {
        for (final Map.Entry<URI, URI> e : conflictTable.entrySet()) {
            assert e.getKey().isAbsolute();
            assert e.getValue().isAbsolute();
        }
        return conflictTable;
    }
10832
private CmsObject getRootCms() throws CmsException {

        if (null == m_rootCms) {
            m_rootCms = OpenCms.initCmsObject(m_cms);
            m_rootCms.getRequestContext().setSiteRoot("");
        }
        return m_rootCms;
    }
178552
def base(self, du):
        """"""
        parameter = 'base'
        if parameter not in self._by:
            self._by[parameter] = {}
            for clb in self.upi.values():
                if clb.floor == 0:
                    self._by[parameter][clb.du] = clb
        return self._by[parameter][du]
93535
protected CmsPrincipalSelect getGroupSelect(String ou, boolean enabled, CmsUUID groupID) {

        CmsPrincipalSelect select = new CmsPrincipalSelect();
        select.setOU(ou);
        select.setEnabled(enabled);
        select.setRealPrincipalsOnly(true);
        select.setPrincipalType(I_CmsPrincipal.PRINCIPAL_GROUP);
        select.setWidgetType(WidgetType.groupwidget);

        if (groupID != null) {
            try {
                select.setValue(m_cms.readGroup(groupID).getName());
            } catch (CmsException e) {
                LOG.error("Unable to read group", e);
            }
        }

        //OU Change enabled because ou-user can be part of other ou-groups
        return select;
    }
1135707
public java.util.List<String> getOperations() {
        if (operations == null) {
            operations = new com.amazonaws.internal.SdkInternalList<String>();
        }
        return operations;
    }
1256119
public static URI resolveBase(final URI baseURI, final Iterable<URI> uris)
    {
        URI resolvedUri = baseURI;
        for (final URI uri : uris)
        {
            resolvedUri = baseURI.resolve(uri);
        }
        return resolvedUri;
    }
1167866
public static String prefixWithOu(String ou, String principal) {

        String result = CmsStringUtil.joinPaths(ou, principal);
        if (result.startsWith("/")) {
            result = result.substring(1);
        }
        return result;
    }