Constructor and Description |
---|
IntelligentFormPresenter(IntelligentFormView intForm) |
Modifier and Type | Method and Description |
---|---|
DocumentId |
addDocument(List<FieldResultBean> properties,
String comment,
FolderUploadInfos infos,
String ddcName)
Adds a new document to the archive.
|
boolean |
canEditIndex(ResultProperties props)
Checks if the index of the specified document can be edited.
|
void |
createSystemView(List<com.saperion.intf.SaFieldDescription> list,
SysForm.FormType type,
String ddcName)
Deprecated.
use
IntelligentFormView.createView(Form) with system form
implementation from package com.saperion.ngc.iform.system instead.
Will be removed with 8.1. |
void |
deleteStoredConfiguration()
Deletes the stored area sizes and result list layouts for this mask.
|
Set<String> |
getAclsForUpdating()
Returns a comma-separated acl-string that can be used for updating a document.
|
DocumentArchiveMetaInfo |
getArchiveMetaInfo(DocumentId id,
boolean currentRevision)
Retrieves the meta information of the document from the archive.
|
com.saperion.intf.DDC |
getDdc(String ddcName)
Returns the DDC with the specified name.
|
void |
getDefinition(String ddcName,
SysForm.FormType type)
Deprecated.
use
IntelligentFormView.createView(Form) with system form
implementation from package com.saperion.ngc.iform.system instead.
Will be removed with 8.1. |
ResultProperties |
getDocProperties(DocumentId id)
Reads the properties for the given document.
|
List<com.saperion.intf.SaFieldDescription> |
getFieldDefinitions(String ddcName)
Returns the field descriptions for the specified DDC.
|
FolderInfo |
getFolderInfos(FolderId folderId)
Retrieves information about the specified folder.
|
int |
getInboxId() |
com.saperion.ngc.iform.xml.Form |
getMaskDefinition(String maskName) |
int |
getNextCounterValue(String ddcName,
String fieldName,
String dbFieldName)
Returns the next possible value for a counter field.
|
String |
getSetting(String section,
String key) |
Map<Integer,AreaSize> |
loadSizesFromConfig()
Loads the sizes of the forms layout-areas from the configuration.
|
void |
storeMaskDefinition(String maskName,
com.saperion.ngc.iform.xml.Form form)
Deprecated.
this method does nothing and will be removed in 8.1
|
void |
storeSizesInConfig(Map<Integer,AreaSize> sizes)
Stored the layout of the mask in the configuration.
|
public IntelligentFormPresenter(IntelligentFormView intForm)
intForm
- Form view@Deprecated public void getDefinition(String ddcName, SysForm.FormType type) throws NgcUiException, AuthenticationException
IntelligentFormView.createView(Form)
with system form
implementation from package com.saperion.ngc.iform.system instead.
Will be removed with 8.1.ddcName
- DDC nametype
- TypeNgcUiException
- when the form could not be opened due to a system error.AuthenticationException
- when the form could not be opened due to access restrictions.public String getSetting(String section, String key) throws NgcUiException, AuthenticationException
section
- Sectionkey
- KeyNgcUiException
- when the form could not be opened due to a system error.AuthenticationException
- when the form could not be opened due to access restrictions.public com.saperion.ngc.iform.xml.Form getMaskDefinition(String maskName) throws NgcUiException, AuthenticationException
maskName
- Mask nameNgcUiException
- when a mask-definition cannot be loadedAuthenticationException
- authentication exception@Deprecated public void storeMaskDefinition(String maskName, com.saperion.ngc.iform.xml.Form form) throws NgcUiException
maskName
- Mask nameform
- FormNgcUiException
- when the form cannot be saved due to an xml error.@Deprecated public void createSystemView(List<com.saperion.intf.SaFieldDescription> list, SysForm.FormType type, String ddcName) throws NgcUiException, AuthenticationException
IntelligentFormView.createView(Form)
with system form
implementation from package com.saperion.ngc.iform.system instead.
Will be removed with 8.1.list
- Field definitionstype
- TypeddcName
- DDC nameNgcUiException
- when an error occurred during form-processAuthenticationException
- when the form could not be opened due to access restrictions.public int getInboxId() throws NgcUiException, AuthenticationException
NgcUiException
- system exceptionAuthenticationException
- when the inbox could not be opened due to access restrictions.public boolean canEditIndex(ResultProperties props) throws NgcUiException, AuthenticationException
props
- document propertiesAuthenticationException
- when the document could not be opened due to access restrictions.NgcUiException
- system error or document identification exceptionpublic DocumentId addDocument(List<FieldResultBean> properties, String comment, FolderUploadInfos infos, String ddcName) throws NgcUiException, AuthenticationException
properties
- meta datacomment
- commentinfos
- upload infosddcName
- DDC name, if folderinfo don't exists.NgcUiException
- exception to be handled by viewAuthenticationException
- re-logon requiredpublic Set<String> getAclsForUpdating() throws NgcUiException, AuthenticationException
IndexMaskDocument.AclWriteMode
defined in IndexMaskDocument
, the string will contain the new ACLs added
by script, the ACLs added by script and the ACLs already added to the document or nothing to clear
all ACLs from the document.NgcUiException
- exception to be handled by viewAuthenticationException
- re-logon requiredpublic int getNextCounterValue(String ddcName, String fieldName, String dbFieldName) throws NgcUiException, AuthenticationException
ddcName
- ddc namefieldName
- counter field namedbFieldName
- counter field database nameNgcUiException
- exception to be handled by viewAuthenticationException
- re-logon requiredpublic FolderInfo getFolderInfos(FolderId folderId) throws NgcUiException, AuthenticationException
folderId
- folder idNgcUiException
- exception to be handled by viewAuthenticationException
- re-logon requiredpublic Map<Integer,AreaSize> loadSizesFromConfig() throws NgcUiException, AuthenticationException
NgcUiException
- exception to be handled by viewAuthenticationException
- re-logon requiredpublic void storeSizesInConfig(Map<Integer,AreaSize> sizes) throws NgcUiException, AuthenticationException
sizes
- the sizes of the mask's layout areasNgcUiException
- exception to be handled by viewAuthenticationException
- re-logon requiredpublic void deleteStoredConfiguration() throws NgcUiException, AuthenticationException
NgcUiException
- exception to be handled by viewAuthenticationException
- re-logon requiredpublic DocumentArchiveMetaInfo getArchiveMetaInfo(DocumentId id, boolean currentRevision) throws NgcUiException, AuthenticationException
id
- the document's idcurrentRevision
- whether to resolve the current revision first or notNgcUiException
- exception to be handled by viewAuthenticationException
- re-logon requiredpublic List<com.saperion.intf.SaFieldDescription> getFieldDefinitions(String ddcName) throws NgcUiException, AuthenticationException
ddcName
- name of the ddcNgcUiException
- exception to be handled by viewAuthenticationException
- re-logon requiredpublic com.saperion.intf.DDC getDdc(String ddcName) throws NgcUiException, AuthenticationException
ddcName
- the name of the ddcNgcUiException
- exception to be handled by viewAuthenticationException
- re-logon requiredpublic ResultProperties getDocProperties(DocumentId id) throws NgcUiException, AuthenticationException
id
- Document idNgcUiException
- when s system error occurred or user has no permissions to access this document.AuthenticationException
- when user is logged off.Copyright © 2016 Lexmark Enterprise Software Deutschland GmbH. All rights reserved.