Examples of VltEntryInfo


Examples of org.apache.jackrabbit.vault.vlt.meta.VltEntryInfo

    }

    public Properties getProperties() throws VltException {
        Properties props = new Properties();
        if (entry != null) {
            VltEntryInfo info = entry.work();
            String ct = info.getContentType();
            if (ct != null) {
                props.put(PROP_CONTENT_TYPE, ct);
            }
        }
        return props;
View Full Code Here

Examples of org.apache.jackrabbit.vault.vlt.meta.VltEntryInfo

        return props;
    }

    public String getProperty(String name) throws VltException {
        if (entry != null) {
            VltEntryInfo info = entry.work();
            if (name.equals(PROP_CONTENT_TYPE)) {
                return info.getContentType();
            }
        }
        return null;
    }
View Full Code Here

Examples of org.apache.jackrabbit.vault.vlt.meta.VltEntryInfo

        remove(theirs.getType());
        base.setName(null);

        // hack: fix content type if it was lost
        if (mine.getContentType() == null && base.getContentType() == null) {
            VltEntryInfo workInfo = work();
            if (workInfo.getContentType() == null) {
                workInfo.setContentType(MimeTypes.getMimeType(work.getName()));
            }
            base.setContentType(workInfo.getContentType());
        }
        return true;
    }
View Full Code Here

Examples of org.apache.jackrabbit.vault.vlt.meta.VltEntryInfo

        }
        return false;
    }

    public boolean isDirectory() {
        VltEntryInfo base = infos.get(VltEntryInfo.Type.BASE);
        if (base != null) {
            return base.isDirectory();
        }
        VltEntryInfo work = infos.get(VltEntryInfo.Type.WORK);
        return work != null && work.isDirectory();
    }
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.