Fork me on GitHub

CPD Results

The following document contains the results of PMD's CPD 7.17.0.

Duplications

File Project Line
org/onehippo/forge/exdocpicker/impl/field/ExternalDocumentFieldSelectorPlugin.java Hippo CMS External Document Picker Base for Field Picker 365
org/onehippo/forge/exdocpicker/impl/folder/ExternalDocumentFolderActionWorkflowMenuItemPlugin.java Hippo CMS External Document Picker Base for Field Picker 172
}

    /**
     * Returns the {@link ExternalDocumentServiceFacade} instance used by this plugin instance.
     * @return the {@link ExternalDocumentServiceFacade} instance used by this plugin instance
     */
    protected ExternalDocumentServiceFacade<Serializable> getExternalDocumentServiceFacade() {
        return exdocService;
    }

    /**
     * Sets the {@link ExternalDocumentServiceFacade} instance used by this plugin instance.
     * @param exdocService the {@link ExternalDocumentServiceFacade} instance used by this plugin instance
     */
    protected void setExternalDocumentServiceFacade(ExternalDocumentServiceFacade<Serializable> exdocService) {
        this.exdocService = exdocService;
    }

    /**
     * Returns the collection of the currently-selected external documents in the document.
     * @return the collection of the currently-selected external documents in the document
     */
    protected ExternalDocumentCollection<Serializable> getCurrentExternalDocumentCollection() {
        if (curDocCollection == null) {
            curDocCollection = getExternalDocumentServiceFacade()
                .getFieldExternalDocuments(getExternalDocumentServiceContext());
        }

        return curDocCollection;
    }

    /**
     * Sets the collection of the currently-selected external documents in the document.
     * @param curDocCollection the collection of the currently-selected external documents in the document
     */
    protected void setCurrentExternalDocumentCollection(ExternalDocumentCollection<Serializable> curDocCollection) {
        this.curDocCollection = curDocCollection;
    }

    /**
     * Returns the {@link ExternalDocumentServiceContext} instance.
     * @return the {@link ExternalDocumentServiceContext} instance
     */
    protected ExternalDocumentServiceContext getExternalDocumentServiceContext() {
        return extDocServiceContext;
    }

    /**
     * Sets the {@link ExternalDocumentServiceContext} instance.
     * @param extDocServiceContext the {@link ExternalDocumentServiceContext} instance
     */
    protected void setExternalDocumentServiceContext(ExternalDocumentServiceContext extDocServiceContext) {
        this.extDocServiceContext = extDocServiceContext;
    }