public class StockControlProperties
extends java.lang.Object
Constructor and Description |
---|
StockControlProperties(java.lang.String stockControl,
java.lang.String author)
building stock control properties with default values
|
Modifier and Type | Method and Description |
---|---|
void |
addStockControlToOutput(org.jdom2.Element parent)
attaches an XML version of the stock control properties to the parent xml node
|
static StockControlProperties |
buildSCPFromRequest(javax.servlet.http.HttpServletRequest req)
reads the parameters from the http request to modify the corresponding fields of the default stock control properteis
|
java.lang.Double |
getBlacklistExpire()
returns the standard number of years on the blacklist before items are considered again
|
java.lang.String |
getDeletionMailBcc()
returns the BCC recipient of the deletion mail
|
java.lang.String |
getSCCollections()
returns the collections to be analyzed
|
java.lang.String |
getSCMaterials()
returns the materials to be analyzed
|
java.lang.Integer |
getSCMinimumDaysOfRequest()
returns the minimum number of days for a request to be analyzed
|
java.lang.Integer |
getSCMinimumYears()
returns the minimum number of years an item has to be in stock to be considered for deletion
|
java.lang.Double |
getSCStaticBuffer()
returns the static buffer used to calculate the proposed deletion
|
java.lang.String |
getSCSubjectID()
returns the subject (ID according to GHBSYS) to be analyzed
|
java.lang.String |
getSCSystemCode()
returns the notation to be analyzed
|
java.lang.Integer |
getSCThreshold()
returns the threshold for the proposed deletions
|
java.lang.Double |
getSCVariableBuffer()
returns the variable buffer used to calculate the proposed deletion
|
java.lang.Integer |
getSCYearsOfRequests()
returns the years in which requests are analyzed
|
java.lang.Integer |
getSCYearsToAverage()
returns the years used for the analysis
|
java.lang.String |
getStockControl()
returns the stock control key
|
boolean |
isGroupedAnalysis()
tests, whether to perform a grouped analysis
|
void |
setBlacklistExpire(java.lang.Double blacklistExpire)
sets the standard number of years on the blacklist before items are considered again
|
void |
setGroupedAnalysis(boolean groupedAnalysis)
sets boolean, whether to perform a grouped analysis
|
void |
setSCCollections(java.lang.String collections)
sets the collections to be analyzed
|
void |
setSCMaterials(java.lang.String materials)
sets the materials to be analyzed
|
void |
setSCMinimumDaysOfRequest(int minimumDaysOfRequest)
sets the minimum number of days for a request to be analyzed
|
void |
setSCSubjectID(java.lang.String subjectID)
sets the subject (ID according to GHBSYS) to be analyzed
|
void |
setSCSystemCode(java.lang.String systemCode)
sets the notation to be analyzed
|
void |
setSCYearsOfRequests(int yearsOfRequests)
sets the years in which requests are analyzed
|
void |
setSCYearsToAverage(int yearsToAverage)
sets the years used for the analysis
|
void |
setStockControl(java.lang.String stockControl)
sets the stock control key
|
public StockControlProperties(java.lang.String stockControl, java.lang.String author) throws java.util.InvalidPropertiesFormatException, java.io.IOException
stockControl
- stock control keyauthor
- logged in userjava.util.InvalidPropertiesFormatException
- exception while parsing properties filejava.io.IOException
- exception while reading file from diskpublic java.lang.Double getBlacklistExpire()
public void setBlacklistExpire(java.lang.Double blacklistExpire)
blacklistExpire
- the number of years on the blacklistpublic void setSCYearsToAverage(int yearsToAverage)
yearsToAverage
- the years for the analysispublic void setSCMinimumDaysOfRequest(int minimumDaysOfRequest)
minimumDaysOfRequest
- the minimum number of days for requestspublic void setSCYearsOfRequests(int yearsOfRequests)
yearsOfRequests
- the years for requestspublic void setSCCollections(java.lang.String collections)
collections
- the collections (separated by blanks)public void setSCMaterials(java.lang.String materials)
materials
- materials (separated by blanks)public void setSCSystemCode(java.lang.String systemCode)
systemCode
- the notationpublic void setSCSubjectID(java.lang.String subjectID)
subjectID
- subject IDpublic void setStockControl(java.lang.String stockControl)
stockControl
- stock control keypublic java.lang.String getStockControl()
public java.lang.String getSCCollections()
public java.lang.String getSCMaterials()
public java.lang.String getSCSubjectID()
public java.lang.String getSCSystemCode()
public java.lang.String getDeletionMailBcc()
public java.lang.Double getSCStaticBuffer()
public java.lang.Double getSCVariableBuffer()
public java.lang.Integer getSCYearsToAverage()
public java.lang.Integer getSCThreshold()
public java.lang.Integer getSCMinimumYears()
public java.lang.Integer getSCYearsOfRequests()
public java.lang.Integer getSCMinimumDaysOfRequest()
public void addStockControlToOutput(org.jdom2.Element parent)
parent
- the parent xml nodepublic static StockControlProperties buildSCPFromRequest(javax.servlet.http.HttpServletRequest req) throws java.util.InvalidPropertiesFormatException, java.io.IOException
req
- the http-requestjava.util.InvalidPropertiesFormatException
- exception while parsing properties filejava.io.IOException
- exception while reading file from diskpublic boolean isGroupedAnalysis()
public void setGroupedAnalysis(boolean groupedAnalysis)
groupedAnalysis
- true, if grouped analysis is to be performed