Package de.innovationgate.authoring.remotedoc

Examples of de.innovationgate.authoring.remotedoc.RemoteDocReference


           
            Iterator refs = content.getItemValueList("remote_references").iterator();
            while (refs.hasNext()) {
                String refStr = (String) refs.next();
                try {
                    RemoteDocReference ref = new RemoteDocReference(refStr);
                   
                    // If we find a reference that point to our remote consumer db we will return
                    // the key of that document
                    if (ref.getDbKey().equals(_remoteConsumerDB)) {
                        _targetDBKey = null;
                        _targetContentKey = ref.getContentKey();
                        return;
                    }
                }
                catch (IllegalArgumentException e) {
                    WGFactory.getLogger().error("Illegal remote doc reference on " + content.getDocumentKey() + " (DB " + db.getDbReference() + ")" ,e);
View Full Code Here


    private TMLContext traceRemoteDocument(TMLContext context, String linkTargetContentKey) throws WGAPIException {

        try {
            String remoteInfo = context.content().getItemText("remote_info");
            RemoteDocReference ref = new RemoteDocReference(remoteInfo);
            WGDatabase targetDB = context.content().getDatabase();
            WGDatabase sourceDB = (WGDatabase) context.getwgacore().getContentdbs().get(ref.getDbKey());
           
            // Determine the language behaviour to use while resolving the link in source DB. If both dbs are multi-language we can
            // use the target language behaviour to allow behaviour integrity. Otherwise we must choose source behaviour.
            WGDatabase langBehaviourDB;
            if (LanguageBehaviourTools.isMultiLanguageDB(sourceDB) && LanguageBehaviourTools.isMultiLanguageDB(targetDB)) {
View Full Code Here

TOP

Related Classes of de.innovationgate.authoring.remotedoc.RemoteDocReference

Copyright © 2018 www.massapicom. 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.