org.kuali.rice.krms.impl.repository
Class RuleBo

java.lang.Object
  extended by org.kuali.rice.krad.bo.BusinessObjectBase
      extended by org.kuali.rice.krad.bo.PersistableBusinessObjectBase
          extended by org.kuali.rice.krms.impl.repository.RuleBo
All Implemented Interfaces:
groovy.lang.GroovyObject, Serializable, org.apache.ojb.broker.PersistenceBrokerAware, GloballyUnique, Identifiable, Versioned, ModelObjectBasic, BusinessObject, PersistableBusinessObject, RuleDefinitionContract

public class RuleBo
extends PersistableBusinessObjectBase
implements RuleDefinitionContract, groovy.lang.GroovyObject

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase
extension, versionNumber
 
Constructor Summary
RuleBo()
           
 
Method Summary
static RuleBo from(RuleDefinition im)
           
 List<ActionBo> getActions()
          This method returns a list of Actions associated with the Rule.
 List<RuleAttributeBo> getAttributeBos()
           
 Map<String,String> getAttributes()
          This method returns a Map of attributes associated with the Rule.
 String getDescription()
          This is the description of the Rule
 String getId()
          The unique identifier for an object.
 groovy.lang.MetaClass getMetaClass()
           
 String getName()
          This is the name of the Rule
 String getNamespace()
          This is the namespace of the Rule
 Object getProperty(String property)
           
 String getPropId()
          This method returns the ID of the Proposition associated with the rule.
 PropositionBo getProposition()
          This method returns the Proposition associated with the rule.
 String getPropositionSummary()
           
 Tree getPropositionTree()
           
 String getSelectedPropositionId()
           
 String getTypeId()
          This is the KrmsType of the Rule
 Object invokeMethod(String method, Object arguments)
           
 void setActions(List<ActionBo> value)
           
 void setAttributeBos(List<RuleAttributeBo> value)
           
 void setDescription(String value)
           
 void setId(String value)
           
 void setMetaClass(groovy.lang.MetaClass mc)
           
 void setName(String value)
           
 void setNamespace(String value)
           
 void setProperty(String property, Object value)
           
 void setPropId(String value)
           
 void setProposition(PropositionBo proposition)
           
 void setPropositionSummary(String value)
           
 void setPropositionTree(Tree<RuleTreeNode,String> value)
           
 void setSelectedPropositionId(String value)
           
 void setTypeId(String value)
           
static RuleDefinition to(RuleBo bo)
           
 
Methods inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase
afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, buildListOfDeletionAwareLists, getExtension, getObjectId, getPersistenceService, getPersistenceStructureService, getVersionNumber, isNewCollectionRecord, linkEditableUserFields, postLoad, postPersist, postRemove, postUpdate, prePersist, preRemove, preUpdate, refresh, refreshNonUpdateableReferences, refreshReferenceObject, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber
 
Methods inherited from class org.kuali.rice.krad.bo.BusinessObjectBase
prepareForWorkflow, toString, toStringBuilder, toStringMapper
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.core.api.mo.common.Versioned
getVersionNumber
 
Methods inherited from interface org.kuali.rice.core.api.mo.ModelObjectBasic
toString
 

Constructor Detail

RuleBo

public RuleBo()
Method Detail

getMetaClass

public groovy.lang.MetaClass getMetaClass()
Specified by:
getMetaClass in interface groovy.lang.GroovyObject

setMetaClass

public void setMetaClass(groovy.lang.MetaClass mc)
Specified by:
setMetaClass in interface groovy.lang.GroovyObject

invokeMethod

public Object invokeMethod(String method,
                           Object arguments)
Specified by:
invokeMethod in interface groovy.lang.GroovyObject

getProperty

public Object getProperty(String property)
Specified by:
getProperty in interface groovy.lang.GroovyObject

setProperty

public void setProperty(String property,
                        Object value)
Specified by:
setProperty in interface groovy.lang.GroovyObject

getId

public String getId()
Description copied from interface: Identifiable
The unique identifier for an object. This can be null.

Specified by:
getId in interface Identifiable
Returns:
the id

setId

public void setId(String value)

getNamespace

public String getNamespace()
Description copied from interface: RuleDefinitionContract
This is the namespace of the Rule

The namespace of the Rule

Specified by:
getNamespace in interface RuleDefinitionContract
Returns:
the namespace of the Rule

setNamespace

public void setNamespace(String value)

getDescription

public String getDescription()
Description copied from interface: RuleDefinitionContract
This is the description of the Rule

description - the description of the Rule

Specified by:
getDescription in interface RuleDefinitionContract
Returns:
the description of the Rule

setDescription

public void setDescription(String value)

getName

public String getName()
Description copied from interface: RuleDefinitionContract
This is the name of the Rule

name - the name of the Rule

Specified by:
getName in interface RuleDefinitionContract
Returns:
the name of the Rule

setName

public void setName(String value)

getTypeId

public String getTypeId()
Description copied from interface: RuleDefinitionContract
This is the KrmsType of the Rule

Specified by:
getTypeId in interface RuleDefinitionContract
Returns:
id for KRMS type related of the Rule

setTypeId

public void setTypeId(String value)

getPropId

public String getPropId()
Description copied from interface: RuleDefinitionContract
This method returns the ID of the Proposition associated with the rule.

Each Rule has exactly one Proposition associated with it.

Specified by:
getPropId in interface RuleDefinitionContract
Returns:
the id of the Proposition associated with the Rule

setPropId

public void setPropId(String value)

getActions

public List<ActionBo> getActions()
Description copied from interface: RuleDefinitionContract
This method returns a list of Actions associated with the Rule.

A Rule may have zero or more Actions associated with it.

Specified by:
getActions in interface RuleDefinitionContract
Returns:
An ordered list of Actions associated with a Rule.

setActions

public void setActions(List<ActionBo> value)

getAttributeBos

public List<RuleAttributeBo> getAttributeBos()

setAttributeBos

public void setAttributeBos(List<RuleAttributeBo> value)

setPropositionTree

public void setPropositionTree(Tree<RuleTreeNode,String> value)

setPropositionSummary

public void setPropositionSummary(String value)

getSelectedPropositionId

public String getSelectedPropositionId()

setSelectedPropositionId

public void setSelectedPropositionId(String value)

getProposition

public PropositionBo getProposition()
Description copied from interface: RuleDefinitionContract
This method returns the Proposition associated with the rule.

Each Rule has exactly one Proposition associated with it.

Specified by:
getProposition in interface RuleDefinitionContract
Returns:
an immutable represtentation of the Proposition associated with the Rule

setProposition

public void setProposition(PropositionBo proposition)

getAttributes

public Map<String,String> getAttributes()
Description copied from interface: RuleDefinitionContract
This method returns a Map of attributes associated with the Rule. The attributes are represented as name/value pairs.

Specified by:
getAttributes in interface RuleDefinitionContract
Returns:
a Map of RuleAttribute objects.

getPropositionSummary

public String getPropositionSummary()

getPropositionTree

public Tree getPropositionTree()

to

public static RuleDefinition to(RuleBo bo)

from

public static RuleBo from(RuleDefinition im)


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