View Javadoc
1   /**
2    * Copyright 2005-2015 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.rice.krad.datadictionary;
17  
18  import org.kuali.rice.krad.datadictionary.parse.BeanTag;
19  import org.kuali.rice.krad.document.Document;
20  import org.kuali.rice.krad.document.TransactionalDocumentAuthorizerBase;
21  import org.kuali.rice.krad.document.TransactionalDocumentBase;
22  import org.kuali.rice.krad.document.TransactionalDocumentPresentationControllerBase;
23  
24  /**
25   * Data dictionary entry class for {@link org.kuali.rice.krad.document.TransactionalDocument}.
26   *
27   * @author Kuali Rice Team (rice.collab@kuali.org)
28   */
29  @BeanTag(name = "transactionalDocumentEntry")
30  public class TransactionalDocumentEntry extends DocumentEntry {
31  
32      private static final long serialVersionUID = 5746921563371805425L;
33  
34      /**
35       * Constructs this {@code TransactionalDocumentEntry} with document presentation and authorization defaults.
36       */
37      public TransactionalDocumentEntry() {
38          super();
39  
40          setDocumentClass(getStandardDocumentBaseClass());
41          documentAuthorizerClass = TransactionalDocumentAuthorizerBase.class;
42          documentPresentationControllerClass = TransactionalDocumentPresentationControllerBase.class;
43      }
44  
45      /**
46       * Returns the default base class for a {@link org.kuali.rice.krad.document.TransactionalDocument}.
47       *
48       * @return the default base class for a {@link org.kuali.rice.krad.document.TransactionalDocument}
49       */
50      public Class<? extends Document> getStandardDocumentBaseClass() {
51          return TransactionalDocumentBase.class;
52      }
53  
54  }