public class AccountRequestDocument2 extends TransactionalDocumentBase implements SessionDocument
| Modifier and Type | Field and Description |
|---|---|
static String |
ACCT_REQ_DOC_2_EDITABLE_FIELDS
A test key to map to some value indicating what fields the user can edit on this doc.
|
static String |
EDIT_ALL_BUT_REASONS
A test value indicating that the user has permission to edit everything except "reason1" and "reason2".
|
static String |
EDIT_REASONS_ONLY
A test value indicating that the user only has permission to edit "reason1" and "reason2".
|
documentHeader, documentNumberextension, versionNumber| Constructor and Description |
|---|
AccountRequestDocument2() |
| Modifier and Type | Method and Description |
|---|---|
Account |
getAccount(int index) |
List<Account> |
getAccounts() |
String |
getAccountTypeCode() |
String |
getCustomLockDescriptor(Person user)
Generates a custom lock descriptor with a format of "[documentNumber]-[The user session's 'acctReqDoc2EditableFields' parameter value]".
|
String |
getReason1() |
String |
getReason2() |
String |
getRequester() |
String |
getRequestType() |
void |
setAccounts(List<Account> accounts) |
void |
setAccountTypeCode(String accountType) |
void |
setReason1(String reason1) |
void |
setReason2(String reason2) |
void |
setRequester(String requester) |
void |
setRequestType(String requestType) |
boolean |
useCustomLockDescriptors()
Since this class was made to test custom lock descriptors, this method will always return true.
|
getAllowsCopy, isSessionDocumentaddCopyErrorDocumentNote, addNote, addPessimisticLock, afterActionTaken, afterWorkflowEngineProcess, beforeWorkflowEngineProcess, createPropertySerializabilityEvaluator, doActionTaken, doRouteLevelChange, doRouteStatusChange, generateSaveEvents, getAdHocRoutePersons, getAdHocRouteWorkgroups, getAttachmentService, getBasePathToDocumentDuringSerialization, getDocumentHeader, getDocumentNumber, getDocumentPropertySerizabilityEvaluator, getDocumentTitle, getLockClearningMethodNames, getNonLockingActionTakenCodes, getNote, getNotes, getNoteService, getNoteTarget, getNoteType, getPessimisticLocks, getWorkflowEngineDocumentIdsToLock, getXmlForRouteReport, logErrors, populateDocumentForRouting, postLoad, postProcessSave, prepareForSave, prepareForSave, processAfterRetrieve, refresh, refreshIfEmpty, refreshPessimisticLocks, refreshReferenceObject, removeNote, serializeDocumentToXml, setAdHocRoutePersons, setAdHocRouteWorkgroups, setDocumentHeader, setDocumentNumber, setNewDocumentHeader, setNotes, setPessimisticLocks, toCopy, validateBusinessRules, wrapDocumentWithMetadataForXmlSerializationafterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, buildListOfDeletionAwareLists, getExtension, getObjectId, getPersistenceService, getPersistenceStructureService, getVersionNumber, isNewCollectionRecord, linkEditableUserFields, postPersist, postRemove, postUpdate, prePersist, preRemove, preUpdate, refreshNonUpdateableReferences, setExtension, setNewCollectionRecord, setObjectId, setVersionNumbertoStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddNote, addPessimisticLock, afterActionTaken, afterWorkflowEngineProcess, beforeWorkflowEngineProcess, doActionTaken, doRouteLevelChange, doRouteStatusChange, generateSaveEvents, getAdHocRoutePersons, getAdHocRouteWorkgroups, getBasePathToDocumentDuringSerialization, getDocumentHeader, getDocumentNumber, getDocumentPropertySerizabilityEvaluator, getDocumentTitle, getLockClearningMethodNames, getNote, getNotes, getNoteTarget, getNoteType, getPessimisticLocks, getWorkflowEngineDocumentIdsToLock, getXmlForRouteReport, populateDocumentForRouting, postProcessSave, prepareForSave, prepareForSave, processAfterRetrieve, refreshPessimisticLocks, removeNote, serializeDocumentToXml, setAdHocRoutePersons, setAdHocRouteWorkgroups, setDocumentHeader, setDocumentNumber, setNotes, validateBusinessRules, wrapDocumentWithMetadataForXmlSerializationbuildListOfDeletionAwareLists, getExtension, isNewCollectionRecord, linkEditableUserFields, refreshNonUpdateableReferences, refreshReferenceObject, setExtension, setNewCollectionRecord, setObjectId, setVersionNumberrefreshtoStringgetVersionNumbergetObjectIdpublic static final String ACCT_REQ_DOC_2_EDITABLE_FIELDS
public static final String EDIT_ALL_BUT_REASONS
public static final String EDIT_REASONS_ONLY
public AccountRequestDocument2()
public String getReason2()
public void setReason2(String reason2)
public String getReason1()
public void setReason1(String reason1)
public String getRequester()
public void setRequester(String requester)
public List<Account> getAccounts()
public void setAccounts(List<Account> accounts)
public Account getAccount(int index)
public String getRequestType()
public void setRequestType(String requestType)
public void setAccountTypeCode(String accountType)
public String getAccountTypeCode()
public boolean useCustomLockDescriptors()
useCustomLockDescriptors in interface DocumentuseCustomLockDescriptors in class DocumentBaseDocumentBase.useCustomLockDescriptors()public String getCustomLockDescriptor(Person user)
getCustomLockDescriptor in interface DocumentgetCustomLockDescriptor in class DocumentBaseDocumentBase.getCustomLockDescriptor(org.kuali.rice.kim.api.identity.Person)Copyright © 2005–2016 The Kuali Foundation. All rights reserved.