Resolves SYSTEM and PUBLIC identifiers for CML DTDs.

@param publicId the PUBLIC identifier of the DTD (unused)
@param systemId the SYSTEM identifier of the DTD
@return the CML DTD as an InputSource or null if id's unresolvable
356347
@Override
    public InputSource resolveEntity(String publicId, String systemId) {
        logger.debug("CMLResolver: resolving ", publicId, ", ", systemId);
        systemId = systemId.toLowerCase();
        if ((systemId.indexOf("cml-1999-05-15.dtd") != -1) || (systemId.indexOf("cml.dtd") != -1)
                || (systemId.indexOf("cml1_0.dtd") != -1)) {
            logger.info("File has CML 1.0 DTD");
            return getCMLType("cml1_0.dtd");
        } else if ((systemId.indexOf("cml-2001-04-06.dtd") != -1) || (systemId.indexOf("cml1_0_1.dtd") != -1)
                || (systemId.indexOf("cml_1_0_1.dtd") != -1)) {
            logger.info("File has CML 1.0.1 DTD");
            return getCMLType("cml1_0_1.dtd");
        } else {
            logger.warn("Could not resolve systemID: ", systemId);
            return null;
        }
    }
199280
@Beta
    public MSICredentials withIdentityId(String identityId) {
        this.identityId = identityId;
        this.clientId = null;
        this.objectId = null;
        return this;
    }
1023034
protected boolean canEdit(CmsUUID id) {

        CmsObject cms = A_CmsUI.getCmsObject();
        CmsResource res = null;
        try {
            res = cms.readResource(id, CmsResourceFilter.ALL);
            boolean result = CmsPropertiesDialogAction.VISIBILITY.getVisibility(
                A_CmsUI.getCmsObject(),
                Lists.newArrayList(res)).isActive();
            return result;
        } catch (CmsException e) {
            LOG.error(e.getLocalizedMessage(), e);
            return false;
        }
    }
69508
def _resolved_pid(self):
        """"""
        if not isinstance(self.pid, PersistentIdentifier):
            return resolve_pid(self.pid)
        return self.pid
288362
String getPid(ConfigID configId) throws ConfigNotFoundException {
        ExtendedConfiguration config = getConfiguration(configId);
        String pid = config.getPid();
        if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
            Tr.debug(tc, "getPid(): Lookup of " + configId + " configuration id resolved to " + pid);
        }
        return pid;
    }
1014709
private static String getServerIdString(String id) {

        if (id.contains(CmsADEManager.CLIENT_ID_SEPERATOR)) {
            id = id.substring(0, id.indexOf(CmsADEManager.CLIENT_ID_SEPERATOR));
        }
        return id;
    }
623637
public static long getId(int serverId)
	{
		synchronized (seq) {
			long second=System.currentTimeMillis()/1000;
			System.out.println("second:"+second);
			int inc=seq.incrementAndGet();
			System.out.println("inc:"+inc);
			return ((long)(serverId & 0xFFFF))<< 48 | 
					((second & 0x00000000FFFFFFFF) <<16) | (inc & 0x0000FFFF);
		}
	}
531732
public static String parentResourceIdFromResourceId(String id) {
        if (id == null) {
            return null;
        }
        ResourceId resourceId = ResourceId.fromString(id);
        if (resourceId != null && resourceId.parent() != null) {
            return ResourceId.fromString(id).parent().id();
        }

        return null;
    }
367833
def resolveSystem(self, sysID):
        
        ret = libxml2mod.xmlACatalogResolveSystem(self._o, sysID)
        return ret
946538
@Nullable
    public static StreamCipherProvider getProvider(@NotNull final String id) {
        for (final StreamCipherProvider provider : ServiceLoader.load(StreamCipherProvider.class)) {
            if (id.equalsIgnoreCase(provider.getId())) {
                return provider;
            }
        }
        return null;
    }
1308006
public InputSource resolveLocalEntity(String systemID) throws SAXException, IOException {
        String localFileName = systemID;
        int fileNameStart = localFileName.lastIndexOf('/') + 1;
        if (fileNameStart < localFileName.length()) {
            localFileName = systemID.substring(fileNameStart);
        }
        ClassLoader cl = LocalFileEntityResolver.class.getClassLoader();
        InputStream stream = cl.getResourceAsStream(RESORUCE_PATH_PREFIX + localFileName);
        if (stream != null) {
            return new InputSource(stream);
        }
        return null;
    }
907369
static InputSource createInputSource(Identifier id, Input input) {
    InputSource inputSource = createInputSource(input);
    if (id instanceof ExternalIdentifier)
      inputSource.setPublicId(((ExternalIdentifier)id).getPublicId());
    if (inputSource.getSystemId() == null)
      inputSource.setSystemId(getSystemId(id));
    return inputSource;
  }
967585
@SuppressWarnings("unchecked")
  public <T extends CMAResource> T setEnvironmentId(String environmentId) {
    if (getSystem().getEnvironment() == null) {
      getSystem().environment = new CMALink(CMAType.Environment);
    }

    getSystem().environment.setId(environmentId);

    return (T) this;
  }
106944
@Override
    public InputSource resolveEntity(final String publicId, final String systemId) throws SAXException, IOException {
        if (!systemId.toLowerCase(Locale.getDefault()).startsWith("http://")) {
            final URL resource = getClass().getResource("flatpack.dtd");

            if (resource != null) {
                return new InputSource(resource.openStream());
            } else {
                // should probably not happen, this may indicate that the dtd has been
                // removed from the jar for some reason
                throw new IOException("could not load dtd resource from jar!!");
            }
        }

        // must be pulling from the web, stick with default implementation
        return null;
    }
1236948
@Override
	public String isValidID(String id) {
		Data data;
		try {
			data = identities.find(id, identities.reuse());
		} catch (IOException e) {
			return getName() + " could not lookup " + id + ": " + e.getLocalizedMessage();
		}
		return data==null?id + "is not an Identity in " + getName():null;
	}
357288
@Override @SuppressWarnings("unchecked")
  public <T extends CMAResource> T setEnvironmentId(String environmentId) {
    return (T) setId(environmentId);
  }
460667
function(qualifiedName, publicId, systemId){// raises:INVALID_CHARACTER_ERR,NAMESPACE_ERR
		var node = new DocumentType();
		node.name = qualifiedName;
		node.nodeName = qualifiedName;
		node.publicId = publicId;
		node.systemId = systemId;
		// 
		//readonly attribute DOMString        internalSubset;
		
		//TODO:..
		//  readonly attribute NamedNodeMap     entities;
		//  readonly attribute NamedNodeMap     notations;
		return node;
	}