Examples of WGDocumentKey


Examples of de.innovationgate.webgate.api.WGDocumentKey

        }
    }

    private WGDocumentCore fetchDesignObject(WGDatabase db, int type, String name, String mediaKey) throws WGAPIException {
       
        String failedKey = new WGDocumentKey(type, name, mediaKey).toString();
        if (_cacheFailedLookups && _failedLookups.contains(failedKey)) {
            return null;
        }
       
        WGDocumentCore core = null;
View Full Code Here

Examples of de.innovationgate.webgate.api.WGDocumentKey

            WGUpdateLog log = (WGUpdateLog) logs.next();
            if (log.getDocumentKey().startsWith("$")) {
                continue;
            }
           
            WGDocumentKey docKey = new WGDocumentKey(log.getDocumentKey());
            if (docKey.getTypename().equals(WGDocument.TYPENAME_TML) ||
                docKey.getTypename().equals(WGDocument.TYPENAME_CSSJS) ||
                docKey.getTypename().equals(WGDocument.TYPENAME_FILECONTAINER)) {
               
                // If lookup variants have changed (and feature is active) we need to change the log to use the base name
                // So the correct caches are cleared
                if (_lookupVariants == true && _slaveDB != null) {
                    String suffix = "." + _slaveDB.getDbReference();
                    if (docKey.getName().endsWith(suffix)) {
                        String newName = DesignProviderCoreWrapper.cutoffVariantSuffix(docKey.getName(), suffix);
                        WGDocumentKey newKey = new WGDocumentKey(docKey.getTypename(), newName, docKey.getMediakey());
                        log = new WGUpdateLog(log.getType(), log.getDate(), log.getUser(), newKey.toString());
                    }
                }
               
                newLogs.add(log);
            }
View Full Code Here

Examples of de.innovationgate.webgate.api.WGDocumentKey

   
    /**
     * Returns the document key that the document created on behalf of this definition will have
     */
    public WGDocumentKey getDocumentKey() {
        WGDocumentKey docKey = new WGDocumentKey(getDocumentType(), getName(), null);
        return docKey;
    }
View Full Code Here

Examples of de.innovationgate.webgate.api.WGDocumentKey

        String code = readCode(metaData);
       
       
        WGTMLModule mod = (WGTMLModule) db.getDocumentByDocumentKey(getDocumentKey());
        if (mod == null) {
            WGDocumentKey key = new WGDocumentKey(getDocumentKey());
            mod = db.createTMLModule(key.getName(), key.getMediakey());
        }
        mod.setCode(code);
        metaData.writeToDocument(mod);
        doSaveDocument(mod);
       
View Full Code Here

Examples of de.innovationgate.webgate.api.WGDocumentKey

        ScriptMetadata metaData = (ScriptMetadata) readMetaData();
        String code = readCode(metaData);
       
        WGCSSJSModule mod = (WGCSSJSModule) db.getDocumentByDocumentKey(getDocumentKey());
        if (mod == null) {
            WGDocumentKey key = new WGDocumentKey(getDocumentKey());
            mod = db.createCSSJSModule(key.getName(), getCodeType());
        }
        mod.setCode(code);
        metaData.writeToDocument(mod);
        doSaveDocument(mod);
       
View Full Code Here

Examples of de.innovationgate.webgate.api.WGDocumentKey

            return;
        }
       
        WGFileContainer con = (WGFileContainer) db.getDocumentByDocumentKey(getDocumentKey());
        if (con == null) {
            WGDocumentKey docKey = new WGDocumentKey(getDocumentKey());
            con = db.createFileContainer(docKey.getName());
            con.save();
        }

        // Find new and updated files
        FileObject[] filesArray = codeFile.getChildren();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.