org.kuali.rice.krms.impl.rule
Class AgendaEditorBusRule

java.lang.Object
  extended by org.kuali.rice.krad.rules.DocumentRuleBase
      extended by org.kuali.rice.krad.rules.MaintenanceDocumentRuleBase
          extended by org.kuali.rice.krms.impl.rule.AgendaEditorBusRule
All Implemented Interfaces:
org.kuali.rice.krad.rules.MaintenanceDocumentRule, org.kuali.rice.krad.rules.rule.AddAdHocRoutePersonRule, org.kuali.rice.krad.rules.rule.AddAdHocRouteWorkgroupRule, org.kuali.rice.krad.rules.rule.AddNoteRule, org.kuali.rice.krad.rules.rule.ApproveDocumentRule, org.kuali.rice.krad.rules.rule.BusinessRule, org.kuali.rice.krad.rules.rule.RouteDocumentRule, org.kuali.rice.krad.rules.rule.SaveDocumentRule, org.kuali.rice.krad.rules.rule.SendAdHocRequestsRule

public class AgendaEditorBusRule
extends org.kuali.rice.krad.rules.MaintenanceDocumentRuleBase

This class contains the rules for the AgendaEditor.


Field Summary
 
Fields inherited from class org.kuali.rice.krad.rules.MaintenanceDocumentRuleBase
DOCUMENT_ERROR_PREFIX, LOG, MAINTAINABLE_ERROR_PATH, MAINTAINABLE_ERROR_PREFIX, priorErrorPath
 
Constructor Summary
AgendaEditorBusRule()
           
 
Method Summary
 org.kuali.rice.krms.framework.type.ActionTypeService getActionTypeService(String serviceName)
           
 org.kuali.rice.krms.impl.authorization.AgendaAuthorizationService getAgendaAuthorizationService()
           
 org.kuali.rice.krms.impl.repository.AgendaBoService getAgendaBoService()
           
 org.kuali.rice.krms.impl.repository.ContextBoService getContextBoService()
           
 org.kuali.rice.krms.api.repository.type.KrmsTypeRepositoryService getKrmsTypeRepositoryService()
           
 org.kuali.rice.krms.impl.repository.RuleBoService getRuleBoService()
           
protected  boolean primaryKeyCheck(org.kuali.rice.krad.maintenance.MaintenanceDocument document)
           
 boolean processAgendaItemBusinessRules(org.kuali.rice.krad.maintenance.MaintenanceDocument document)
          Check if a agenda item is valid.
protected  boolean processCustomSaveDocumentBusinessRules(org.kuali.rice.krad.maintenance.MaintenanceDocument document)
           
 boolean validAgendaName(org.kuali.rice.krms.impl.ui.AgendaEditor agendaEditor)
          Check if an agenda with that name exists already in the context.
 boolean validContext(org.kuali.rice.krms.impl.ui.AgendaEditor agendaEditor)
          Check if the context exists and if user has authorization to edit agendas under this context.
 boolean validContextAgendaNamespace(org.kuali.rice.krms.impl.ui.AgendaEditor agendaEditor)
          Check if for namespace.
 
Methods inherited from class org.kuali.rice.krad.rules.MaintenanceDocumentRuleBase
checkEmptyBOField, checkEmptyDocumentField, checkEmptyValue, checkForPartiallyFilledOutReferenceForeignKeys, clearErrorPath, consolidateFieldNames, dataDictionaryValidate, errorAlreadyExists, getBoService, getConfigService, getDataObjectAuthorizationService, getDataObjectMetaDataService, getDateTimeService, getDdService, getDictionaryValidationService, getFieldLabel, getFieldLabel, getHumanReadablePrimaryKeyFieldNames, getNewDataObject, getOldDataObject, getPersistenceStructureService, getPersonService, getRoleService, getWorkflowDocumentService, isCorrectMaintenanceClass, isDocumentInactivatingBusinessObject, isDocumentValidForSave, processApproveDocument, processCustomAddCollectionLineBusinessRules, processCustomApproveDocumentBusinessRules, processCustomRouteDocumentBusinessRules, processGlobalApproveDocumentBusinessRules, processGlobalRouteDocumentBusinessRules, processGlobalSaveDocumentBusinessRules, processInactivationBlockChecking, processInactivationBlockChecking, processRouteDocument, processSaveDocument, putDocumentError, putDocumentError, putFieldError, putFieldError, putFieldError, putFieldErrorWithShortLabel, putGlobalError, putGlobalError, putGlobalError, putGlobalsError, putGlobalsError, putInactivationBlockingErrorOnPage, resumeErrorPath, setBoService, setConfigService, setDataObjectAuthorizationService, setDataObjectMetaDataService, setDdService, setDictionaryValidationService, setNewDataObject, setPersistenceStructureService, setPersonService, setupBaseConvenienceObjects, setupConvenienceObjects, setWorkflowDocumentService, showErrorMap, validateDocumentStructure, validateGlobalBusinessObjectPersistable, validateMaintenanceDocument
 
Methods inherited from class org.kuali.rice.krad.rules.DocumentRuleBase
getDataDictionaryService, getDocumentDictionaryService, getGroupService, getKualiConfigurationService, getMaxDictionaryValidationDepth, getPermissionService, isAddHocRoutePersonValid, isAddHocRouteWorkgroupValid, isAdHocRouteRecipientsValid, isDocumentAttributesValid, isDocumentOverviewValid, isNoteValid, processAddAdHocRoutePerson, processAddAdHocRouteWorkgroup, processAddNote, processCustomAddAdHocRoutePersonBusinessRules, processCustomAddAdHocRouteWorkgroupBusinessRules, processCustomAddNoteBusinessRules, processCustomApproveDocumentBusinessRules, processCustomRouteDocumentBusinessRules, processCustomSaveDocumentBusinessRules, processCustomSendAdHocRequests, processSendAdHocRequests, setDocumentDictionaryService, setMaxDictionaryValidationDepth, validateSensitiveDataValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgendaEditorBusRule

public AgendaEditorBusRule()
Method Detail

primaryKeyCheck

protected boolean primaryKeyCheck(org.kuali.rice.krad.maintenance.MaintenanceDocument document)
Overrides:
primaryKeyCheck in class org.kuali.rice.krad.rules.MaintenanceDocumentRuleBase

processCustomSaveDocumentBusinessRules

protected boolean processCustomSaveDocumentBusinessRules(org.kuali.rice.krad.maintenance.MaintenanceDocument document)
Overrides:
processCustomSaveDocumentBusinessRules in class org.kuali.rice.krad.rules.MaintenanceDocumentRuleBase

validContext

public boolean validContext(org.kuali.rice.krms.impl.ui.AgendaEditor agendaEditor)
Check if the context exists and if user has authorization to edit agendas under this context.

Parameters:
agendaEditor -
Returns:
true if the context exist and has authorization, false otherwise

validContextAgendaNamespace

public boolean validContextAgendaNamespace(org.kuali.rice.krms.impl.ui.AgendaEditor agendaEditor)
Check if for namespace.

Parameters:
agendaEditor -
Returns:

validAgendaName

public boolean validAgendaName(org.kuali.rice.krms.impl.ui.AgendaEditor agendaEditor)
Check if an agenda with that name exists already in the context.

Parameters:
agendaEditor -
Returns:
true if agenda name is unique, false otherwise

processAgendaItemBusinessRules

public boolean processAgendaItemBusinessRules(org.kuali.rice.krad.maintenance.MaintenanceDocument document)
Check if a agenda item is valid.

Parameters:
document, - the Agenda document of the added/edited agenda item
Returns:
true if agenda item is valid, false otherwise

getContextBoService

public org.kuali.rice.krms.impl.repository.ContextBoService getContextBoService()

getAgendaBoService

public org.kuali.rice.krms.impl.repository.AgendaBoService getAgendaBoService()

getRuleBoService

public org.kuali.rice.krms.impl.repository.RuleBoService getRuleBoService()

getKrmsTypeRepositoryService

public org.kuali.rice.krms.api.repository.type.KrmsTypeRepositoryService getKrmsTypeRepositoryService()

getActionTypeService

public org.kuali.rice.krms.framework.type.ActionTypeService getActionTypeService(String serviceName)

getAgendaAuthorizationService

public org.kuali.rice.krms.impl.authorization.AgendaAuthorizationService getAgendaAuthorizationService()


Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.