BrightSide Workbench Full Report + Source Code
org.turro.financials.model.contract.ContractDefinitionWrapper Class Reference
Inheritance diagram for org.turro.financials.model.contract.ContractDefinitionWrapper:
Collaboration diagram for org.turro.financials.model.contract.ContractDefinitionWrapper:

Public Member Functions

 ContractDefinitionWrapper (ContractDefinition contractDefinition)
 
Collection< LineTypegetLineTypesFor (DocumentDefinition ancestor, DocumentDefinition descendant)
 

Static Public Member Functions

static Collection< ContractDefinitiongetContractDefinitions ()
 

Protected Attributes

ContractDefinition contractDefinition
 

Detailed Description

Constructor & Destructor Documentation

◆ ContractDefinitionWrapper()

Member Function Documentation

◆ getContractDefinitions()

static Collection<ContractDefinition> org.turro.financials.model.contract.ContractDefinitionWrapper.getContractDefinitions ( )
static

Definition at line 53 of file bsfinancials-core/src/main/java/org/turro/financials/model/contract/ContractDefinitionWrapper.java.

53  {
54  return new FinancialsPU().getResultList(
55  "select ctcdef from ContractDefinition as ctcdef " +
56  "order by ctcdef.name"
57  );
58  }
Here is the caller graph for this function:

◆ getLineTypesFor()

Collection<LineType> org.turro.financials.model.contract.ContractDefinitionWrapper.getLineTypesFor ( DocumentDefinition  ancestor,
DocumentDefinition  descendant 
)

Definition at line 41 of file bsfinancials-core/src/main/java/org/turro/financials/model/contract/ContractDefinitionWrapper.java.

41  {
42  LineTypeSet set = new LineTypeSet();
43  for(DocumentWorkflow dw : contractDefinition.getDocumentWorkflows()) {
44  if(dw.getAncestor().getId() == ancestor.getId() && dw.getDescendant().getId() == descendant.getId()) {
45  if(dw.getLineType() != null) {
46  set.add(dw.getLineType());
47  }
48  }
49  }
50  return set.isEmpty() ? new RelatedToLineTypeAdapter(descendant.getRelatedLineTypes()) : set;
51  }
Here is the call graph for this function:

Member Data Documentation

◆ contractDefinition

ContractDefinition org.turro.financials.model.contract.ContractDefinitionWrapper.contractDefinition
protected

The documentation for this class was generated from the following file: