public class ContribConf
extends java.lang.Object
Constructor and Description |
---|
ContribConf(java.lang.String IdContrib)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
Allowed(java.lang.String NameDocT,
java.lang.String name)
Verifies if the field is allowed to be uploaded/filled in the contribution form
|
void |
AssignConf(java.util.Properties ContribProperties)
Assign configuration of contribution from a properties
|
java.lang.String |
getBaseFolder()
Returns the Base folder where all the subfolder will be created
|
java.lang.String |
getDocsReportId()
Return the Id of Document of kind Report used for list the documents
|
java.util.Vector<java.lang.String> |
getDocTipesList()
Return the list of Document types allowed to upload
|
java.util.Vector<java.lang.String> |
getFieldsToRead()
Return the Fields allowed to fill when creating Folders
|
java.lang.String |
getFormContribCSS()
Returns the CSS used in the contribution form
|
java.lang.String |
getFormContribLogo()
Returns the logo used in the Contribution Form
|
java.lang.String |
getId()
Identifier of Contribution file/configuration
|
java.util.Vector<java.lang.String> |
getLoginFields()
Returns the list of Fields for verification of login
|
java.lang.String |
getLoginFolderType()
Returns the type of Folder used for Login and for creating the users folders
|
int |
getMaxSize()
Returns the Maximum Size of a file to be upload (always limited also by configuration of J2EE server)
|
java.lang.String |
getOKMsg()
Returns the Msg to show when the upload is ok
|
java.lang.String |
getPass()
Returns the Password of the User used internally for the contribution
|
java.lang.String |
getTitle()
Returns the Title of the Contriobution form
|
java.lang.String |
getTitleList()
Returns the string used as Title of List of documents
|
java.lang.String |
getUrlHelp()
Returns the Url of the Help page
|
java.lang.String |
getUser()
Returns the User used internally for the contribution
|
java.lang.Boolean |
Is1ColHtmlAdd(java.lang.String Agent)
Calculates if use 1 column for adding documents depending on the browser
|
java.lang.Boolean |
Is1ColHtmlList(java.lang.String Agent)
Calculates if use 1 column for list of documents depending on the browser
|
java.lang.Boolean |
Is1ColHtmlLog(java.lang.String Agent)
Calculates if must be 1 column for log of documents depending on the browser
|
boolean |
IsAllowedExt(java.lang.String NewExt)
Verifies if the file extension is allowed to upload
|
boolean |
isOpenContrib()
When true, the contribution system is "open"
|
java.lang.String |
SolveHtmlAdd(java.lang.String Agent)
Calculates a html page for adding documents depending on the browser
|
java.lang.String |
SolveHtmlList(java.lang.String Agent)
Calculates a html page for list of documents depending on the browser
|
java.lang.String |
SolveHtmlLog(java.lang.String Agent)
Calculates a html page for log of documents depending on the browser
|
java.lang.String |
SolveHtmlRes(java.lang.String Agent)
Calculates a html page for result of adding documents depending on the browser
|
public ContribConf(java.lang.String IdContrib)
IdContrib
- Identifier of the OPD document containing the Contrib definitionpublic void AssignConf(java.util.Properties ContribProperties)
ContribProperties
- Properties of the contribution formspublic java.lang.String getTitleList()
public java.lang.String SolveHtmlLog(java.lang.String Agent)
Agent
- Browser typepublic java.lang.Boolean Is1ColHtmlLog(java.lang.String Agent)
Agent
- Browser typepublic java.lang.String SolveHtmlList(java.lang.String Agent)
Agent
- Browser typepublic java.lang.Boolean Is1ColHtmlList(java.lang.String Agent)
Agent
- Browser typepublic java.lang.String SolveHtmlAdd(java.lang.String Agent)
Agent
- Browser typepublic java.lang.Boolean Is1ColHtmlAdd(java.lang.String Agent)
Agent
- Browser typepublic java.lang.String SolveHtmlRes(java.lang.String Agent)
Agent
- Browser typepublic java.util.Vector<java.lang.String> getDocTipesList()
public java.util.Vector<java.lang.String> getFieldsToRead()
public java.lang.String getBaseFolder()
public java.lang.String getFormContribCSS()
public java.lang.String getUser()
public java.lang.String getPass()
public java.lang.String getFormContribLogo()
public java.lang.String getTitle()
public java.lang.String getUrlHelp()
public boolean isOpenContrib()
public java.lang.String getLoginFolderType()
public java.util.Vector<java.lang.String> getLoginFields()
public java.lang.String getDocsReportId()
public boolean Allowed(java.lang.String NameDocT, java.lang.String name)
NameDocT
- Documetn Typename
- Name of Attributepublic boolean IsAllowedExt(java.lang.String NewExt)
NewExt
- Extension to checkpublic int getMaxSize()
public java.lang.String getId()
public java.lang.String getOKMsg()