Package com.day.cq.commons

Examples of com.day.cq.commons.DiffInfo


     * @return
     */
    protected String getDiff(Resource resource, String current, String previous, boolean isRichText) {
        if(!this.isEnabled()) { return current; }

        DiffInfo diffInfo = resource.adaptTo(DiffInfo.class);
        return diffInfo.getDiffOutput(this.diffService, current, previous, isRichText);
    }
View Full Code Here


     * @return
     */
    protected String getPreviousText(Resource resource, String key) {
        if(!this.isEnabled()) { return null; }

        DiffInfo diffInfo = resource.adaptTo(DiffInfo.class);
        ValueMap diffValueMap = diffInfo.getContent().adaptTo(ValueMap.class);
        return diffValueMap.get(key, String.class);
    }
View Full Code Here

TOP

Related Classes of com.day.cq.commons.DiffInfo

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.