Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/**
* Copyright 2005-2017 The Kuali Foundation
*
* Licensed under the Educational Community License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.opensource.org/licenses/ecl2.php
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.kuali.rice.kew.api.document;
import org.kuali.rice.core.api.CoreConstants;
import org.kuali.rice.core.api.mo.AbstractDataTransferObject;
import org.w3c.dom.Element;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import java.util.Collection;
//KULRICE-12283: Added two new properties to the propOrder
@XmlRootElement(name = DocumentProcessingOptions.Constants.ROOT_ELEMENT_NAME)
@XmlAccessorType(XmlAccessType.NONE)
@XmlType(name = DocumentProcessingOptions.Constants.TYPE_NAME, propOrder = {
DocumentProcessingOptions.Elements.RUN_POST_PROCESSOR,
DocumentProcessingOptions.Elements.INDEX_SEARCH_ATTRIBUTES,
DocumentProcessingOptions.Elements.SEND_NOTIFICATIONS,
DocumentProcessingOptions.Elements.DEACTIVATE_ACKNOWLEDGEMENTS,
DocumentProcessingOptions.Elements.DEACTIVATE_FYIS,
CoreConstants.CommonElements.FUTURE_ELEMENTS
})
public final class DocumentProcessingOptions extends AbstractDataTransferObject {
@XmlElement(name = Elements.RUN_POST_PROCESSOR, required = true)
private final boolean runPostProcessor;
@XmlElement(name = Elements.INDEX_SEARCH_ATTRIBUTES, required = true)
private final boolean indexSearchAttributes;
@XmlElement(name = Elements.SEND_NOTIFICATIONS, required = true)
private final boolean sendNotifications;
//KULRICE-12283: Added two new flags to indicate if acknowledgements and FYIs should be deactivated when blanket approval occurs
@XmlElement(name = Elements.DEACTIVATE_ACKNOWLEDGEMENTS, required = false)
private final Boolean deactivateAcknowledgements;
@XmlElement(name = Elements.DEACTIVATE_FYIS, required = false)
private final Boolean deactivateFYIs;
@SuppressWarnings("unused")
@XmlAnyElement
private final Collection _futureElements = null;
//KULRICE-12283 Added a new constructor and create methods to include two new properties
private DocumentProcessingOptions() {
this(true, true, true, false, false);
}
private DocumentProcessingOptions(boolean runPostProcessor, boolean indexSearchAttributes, boolean sendNotifications) {
this(runPostProcessor, indexSearchAttributes, sendNotifications, false, false);
}
private DocumentProcessingOptions(boolean runPostProcessor, boolean indexSearchAttributes, boolean sendNotifications, boolean deactivateAcknowledgements, boolean deactivateFYIs) {
this.runPostProcessor = runPostProcessor;
this.indexSearchAttributes = indexSearchAttributes;
this.sendNotifications = sendNotifications;
this.deactivateAcknowledgements = deactivateAcknowledgements;
this.deactivateFYIs = deactivateFYIs;
}
public static DocumentProcessingOptions create(boolean runPostProcessor, boolean indexSearchAttributes) {
return create(runPostProcessor, indexSearchAttributes, true);
}
public static DocumentProcessingOptions create(boolean runPostProcessor, boolean indexSearchAttributes, boolean sendNotifications) {
return new DocumentProcessingOptions(runPostProcessor, indexSearchAttributes, sendNotifications);
}
public static DocumentProcessingOptions create(boolean runPostProcessor, boolean indexSearchAttributes, boolean sendNotifications, boolean deactivateAcknowledgements, boolean deactivateFYIs) {
return new DocumentProcessingOptions(runPostProcessor, indexSearchAttributes, sendNotifications, deactivateAcknowledgements, deactivateFYIs);
}
public static DocumentProcessingOptions createDefault() {
return new DocumentProcessingOptions();
}
public boolean isRunPostProcessor() {
return runPostProcessor;
}
public boolean isIndexSearchAttributes() {
return indexSearchAttributes;
}
public boolean isSendNotifications() {
return sendNotifications;
}
//KULRICE-12283:Added getters for two new properties
public boolean isDeactivateAcknowledgements() {
return deactivateAcknowledgements;
}
public boolean isDeactivateFYIs() {
return deactivateFYIs;
}
/**
* Defines some internal constants used on this class.
*/
static class Constants {
final static String ROOT_ELEMENT_NAME = "documentProcessingOptions";
final static String TYPE_NAME = "DocumentProcessingOptionsType";
}
/**
* A private class which exposes constants which define the XML element names to use when this object is marshalled to XML.
*/
static class Elements {
final static String RUN_POST_PROCESSOR = "runPostProcessor";
final static String INDEX_SEARCH_ATTRIBUTES = "indexSearchAttributes";
final static String SEND_NOTIFICATIONS = "sendNotifications";
//KULRICE-12283:Constants for two new properties
final static String DEACTIVATE_ACKNOWLEDGEMENTS = "deactivateAcknowledgements";
final static String DEACTIVATE_FYIS = "deactivateFYIs";
}
}