Package com.groiss.dms
Interface FormType
public interface FormType
The type of a DMSForm
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Determines that this formtype is a documentstatic final long
Holds the oid of the formtype of emailsstatic final int
Determines that this formtype is a folderstatic final String
Deprecated.can be configured.static final long
Holds the oid of the formtype for message templatesstatic final long
Holds the oid of the formtype of newsstatic final long
Holds the oid of the formtype of notesstatic final int
Determines that this formtype is a formstatic final long
Holds the oid of the formtype of profile picturesstatic final long
Holds the oid of the formtype for the recently used foldersstatic final long
Holds the oid of the formtype of recycle binsstatic final long
Holds the oid of the formtype of standard documentsstatic final long
Holds the oid of the formtype of standard foldersstatic final int
template type is HTMLstatic final int
template type is XFORMSstatic final int
template type is XHTMLstatic final long
Holds the oid of the formtype of valuesstatic final long
Holds the oid of the formtype of valuelistsstatic final long
Holds the oid of the formtype of web links -
Method Summary
Modifier and TypeMethodDescriptionfieldList
(int... includedTypes) Return the fields of this form type.Returns the application of this form type.Returns the full qualified name of the class implementing the DMSForm represented by this FormType.Returns the description of the FormType.Returns the name of the class specified asDMSTableHandler
.Returns a string defining patterns to restrict the types of accepted files by this formtype (only relevant for FormTypes of TypeDOCUMENT_FORM
).int
getId()
Return the id of the FormType.int
getKind()
Returns the kind of this FormType (e.g.getName()
Returns the name of the FormTypelong
getOid()
Returns the unique oid of the object.getTableField
(int subtableid) Return the form-field for the subform table with the given id.int
type of form template: HTML, XHTML, XFORMint
Return the version of the FormType.int
getWidth()
returns the location of the xhtml-templateCreates a new instance of the DMSForm represented by this FormType, but does not insert it to the database (therefore the returned DMSForm will not have an oid set).
-
Field Details
-
PROCESS_FORM
static final int PROCESS_FORMDetermines that this formtype is a form- See Also:
-
DOCUMENT_FORM
static final int DOCUMENT_FORMDetermines that this formtype is a document- See Also:
-
FOLDER_FORM
static final int FOLDER_FORMDetermines that this formtype is a folder- See Also:
-
NOTE
static final long NOTEHolds the oid of the formtype of notes- See Also:
-
STANDARD_DOCUMENT
static final long STANDARD_DOCUMENTHolds the oid of the formtype of standard documents- See Also:
-
STANDARD_FOLDER
static final long STANDARD_FOLDERHolds the oid of the formtype of standard folders- See Also:
-
WEBLINK
static final long WEBLINKHolds the oid of the formtype of web links- See Also:
-
NEWS
static final long NEWSHolds the oid of the formtype of news- See Also:
-
VALUELIST
static final long VALUELISTHolds the oid of the formtype of valuelists- See Also:
-
VALUE
static final long VALUEHolds the oid of the formtype of values- See Also:
-
EMAIL
static final long EMAILHolds the oid of the formtype of emails- See Also:
-
PROFILEPICTURE
static final long PROFILEPICTUREHolds the oid of the formtype of profile pictures- See Also:
-
RECYCLEBIN
static final long RECYCLEBINHolds the oid of the formtype of recycle bins- See Also:
-
RECENTLYUSED
static final long RECENTLYUSEDHolds the oid of the formtype for the recently used folders- See Also:
-
MESSAGE_TEMPLATE
static final long MESSAGE_TEMPLATEHolds the oid of the formtype for message templates- See Also:
-
TEMPLATE_HTML
static final int TEMPLATE_HTMLtemplate type is HTML- See Also:
-
TEMPLATE_XHTML
static final int TEMPLATE_XHTMLtemplate type is XHTML- See Also:
-
TEMPLATE_XFORMS
static final int TEMPLATE_XFORMStemplate type is XFORMS- See Also:
-
FORM_PACKAGE
Deprecated.can be configured. UseSettings.getFormPackage()
instead.- See Also:
-
-
Method Details
-
getTableDefinition
String getTableDefinition() -
getOid
long getOid()Returns the unique oid of the object.- Returns:
- the oid
-
getId
String getId()Return the id of the FormType.- Returns:
- the id
-
getVersion
int getVersion()Return the version of the FormType.- Returns:
- the version, a natural number
-
getName
String getName()Returns the name of the FormType- Returns:
- the name, a string object
-
getClassName
String getClassName()Returns the full qualified name of the class implementing the DMSForm represented by this FormType. -
getDescription
String getDescription()Returns the description of the FormType. -
newInstance
DMSForm newInstance()Creates a new instance of the DMSForm represented by this FormType, but does not insert it to the database (therefore the returned DMSForm will not have an oid set). -
getKind
int getKind()Returns the kind of this FormType (e.g. PROCESS_FORM) -
getWidth
int getWidth() -
getHeight
int getHeight() -
getDMSTableHandler
String getDMSTableHandler()Returns the name of the class specified asDMSTableHandler
. This is only usefull for formtypes of typeFOLDER_FORM
-
getTemplateType
int getTemplateType()type of form template: HTML, XHTML, XFORM -
getXhtmlPage
String getXhtmlPage()returns the location of the xhtml-template- Returns:
- the location of the xhtml-template
-
getFileFilter
String getFileFilter()Returns a string defining patterns to restrict the types of accepted files by this formtype (only relevant for FormTypes of TypeDOCUMENT_FORM
). See description of HTML file input attribute 'accept' for the syntax of such patterns.- Returns:
- the patterns of accepted file types
-
fieldList
Return the fields of this form type.- Parameters:
includedTypes
- if not empty, the result is restricted to the field types in the list.- Returns:
- a list of form fields
-
getTableField
Return the form-field for the subform table with the given id.- Parameters:
subtableid
- id of the subform table- Returns:
- a form field or null
-
getApplication
Application getApplication()Returns the application of this form type.- Returns:
- the application
-