BrightSide Workbench Full Report + Source Code
org.turro.financials.portfolio.PortfolioOptions Class Reference

Public Member Functions

 PortfolioOptions (DocumentDefinition documentDefinition, Contract contract)
 
boolean isAccumulated ()
 
void setAccumulated (boolean accumulated)
 
String getAccumulatedString ()
 
boolean isAutosave ()
 
void setAutosave (boolean autosave)
 
String getContractString ()
 
Date getDate ()
 
void setDate (Date date)
 
int getDateMode ()
 
void setDateMode (int dateMode)
 
boolean isStopOnContract ()
 
void setStopOnContract (boolean stopOnContract)
 
Contract getStore ()
 
void setStore (Contract store)
 
int getStoreMode ()
 
void setStoreMode (int storeMode)
 
boolean isConciliateRegister ()
 
void setConciliateRegister (boolean conciliateRegister)
 
Collection getStores ()
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 34 of file PortfolioOptions.java.

Constructor & Destructor Documentation

◆ PortfolioOptions()

org.turro.financials.portfolio.PortfolioOptions.PortfolioOptions ( DocumentDefinition  documentDefinition,
Contract  contract 
)

Definition at line 45 of file PortfolioOptions.java.

45  {
46  this.documentDefinition = documentDefinition;
47  this.contract = contract;
48  date = (Date) Framework.getAttribute(this, "date");
49  dateMode = (Integer) Framework.getAttribute(this, "dateMode", Integer.valueOf(0));
50  store = (Contract) Framework.getAttribute(this, "store");
51  storeMode = (Integer) Framework.getAttribute(this, "storeMode", Integer.valueOf(0));
52  accumulated = (Boolean) Framework.getAttribute(this, "accumulated", Boolean.FALSE);
53  autosave = (Boolean) Framework.getAttribute(this, "autosave", Boolean.FALSE);
54  stopOnContract = (Boolean) Framework.getAttribute(this, "stopOnContract", Boolean.TRUE);
55  conciliateRegister = (Boolean) Framework.getAttribute(this, "conciliateRegister", Boolean.FALSE);
56  }
Here is the call graph for this function:

Member Function Documentation

◆ getAccumulatedString()

String org.turro.financials.portfolio.PortfolioOptions.getAccumulatedString ( )

Definition at line 67 of file PortfolioOptions.java.

67  {
68  return I_.format("Accumulate in a single %s", documentDefinition.getName());
69  }
Here is the call graph for this function:

◆ getContractString()

String org.turro.financials.portfolio.PortfolioOptions.getContractString ( )

Definition at line 80 of file PortfolioOptions.java.

80  {
81  return contract.getFullDescription();
82  }
Here is the call graph for this function:

◆ getDate()

Date org.turro.financials.portfolio.PortfolioOptions.getDate ( )

Definition at line 84 of file PortfolioOptions.java.

84  {
85  return date;
86  }

◆ getDateMode()

int org.turro.financials.portfolio.PortfolioOptions.getDateMode ( )

Definition at line 93 of file PortfolioOptions.java.

93  {
94  return dateMode;
95  }

◆ getStore()

Contract org.turro.financials.portfolio.PortfolioOptions.getStore ( )

Definition at line 111 of file PortfolioOptions.java.

111  {
112  return store;
113  }

◆ getStoreMode()

int org.turro.financials.portfolio.PortfolioOptions.getStoreMode ( )

Definition at line 120 of file PortfolioOptions.java.

120  {
121  return storeMode;
122  }

◆ getStores()

Collection org.turro.financials.portfolio.PortfolioOptions.getStores ( )

Definition at line 138 of file PortfolioOptions.java.

138  {
139  Collection<Contract> stores;
140  stores = new DocumentDefinitionWrapper(documentDefinition)
141  .getRelatedStores(contract);
142  if(stores.isEmpty()) {
143  stores = new DocumentDefinitionWrapper(documentDefinition)
144  .getRelatedStores();
145  }
146  ContractWrapper.clearInactives(stores);
147  return new ContractSortedSet(stores, false);
148  }
Here is the call graph for this function:

◆ isAccumulated()

boolean org.turro.financials.portfolio.PortfolioOptions.isAccumulated ( )

Definition at line 58 of file PortfolioOptions.java.

58  {
59  return accumulated;
60  }

◆ isAutosave()

boolean org.turro.financials.portfolio.PortfolioOptions.isAutosave ( )

Definition at line 71 of file PortfolioOptions.java.

71  {
72  return autosave;
73  }

◆ isConciliateRegister()

boolean org.turro.financials.portfolio.PortfolioOptions.isConciliateRegister ( )

Definition at line 129 of file PortfolioOptions.java.

129  {
130  return conciliateRegister;
131  }

◆ isStopOnContract()

boolean org.turro.financials.portfolio.PortfolioOptions.isStopOnContract ( )

Definition at line 102 of file PortfolioOptions.java.

102  {
103  return stopOnContract;
104  }

◆ setAccumulated()

void org.turro.financials.portfolio.PortfolioOptions.setAccumulated ( boolean  accumulated)

Definition at line 62 of file PortfolioOptions.java.

62  {
63  this.accumulated = accumulated;
64  Framework.setAttribute(this, "accumulated", accumulated);
65  }
Here is the call graph for this function:

◆ setAutosave()

void org.turro.financials.portfolio.PortfolioOptions.setAutosave ( boolean  autosave)

Definition at line 75 of file PortfolioOptions.java.

75  {
76  this.autosave = autosave;
77  Framework.setAttribute(this, "autosave", autosave);
78  }
Here is the call graph for this function:

◆ setConciliateRegister()

void org.turro.financials.portfolio.PortfolioOptions.setConciliateRegister ( boolean  conciliateRegister)

Definition at line 133 of file PortfolioOptions.java.

133  {
134  this.conciliateRegister = conciliateRegister;
135  Framework.setAttribute(this, "conciliateRegister", conciliateRegister);
136  }
Here is the call graph for this function:

◆ setDate()

void org.turro.financials.portfolio.PortfolioOptions.setDate ( Date  date)

Definition at line 88 of file PortfolioOptions.java.

88  {
89  this.date = date;
90  Framework.setAttribute(this, "date", date);
91  }
Here is the call graph for this function:

◆ setDateMode()

void org.turro.financials.portfolio.PortfolioOptions.setDateMode ( int  dateMode)

Definition at line 97 of file PortfolioOptions.java.

97  {
98  this.dateMode = dateMode;
99  Framework.setAttribute(this, "dateMode", dateMode);
100  }
Here is the call graph for this function:

◆ setStopOnContract()

void org.turro.financials.portfolio.PortfolioOptions.setStopOnContract ( boolean  stopOnContract)

Definition at line 106 of file PortfolioOptions.java.

106  {
107  this.stopOnContract = stopOnContract;
108  Framework.setAttribute(this, "stopOnContract", stopOnContract);
109  }
Here is the call graph for this function:

◆ setStore()

void org.turro.financials.portfolio.PortfolioOptions.setStore ( Contract  store)

Definition at line 115 of file PortfolioOptions.java.

115  {
116  this.store = store;
117  Framework.setAttribute(this, "store", store);
118  }
Here is the call graph for this function:

◆ setStoreMode()

void org.turro.financials.portfolio.PortfolioOptions.setStoreMode ( int  storeMode)

Definition at line 124 of file PortfolioOptions.java.

124  {
125  this.storeMode = storeMode;
126  Framework.setAttribute(this, "storeMode", storeMode);
127  }
Here is the call graph for this function:

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