public interface DbDesign
Modifier and Type | Interface and Description |
---|---|
static class |
DbDesign.FolderOrView |
static class |
DbDesign.FormOrSubform
Deprecated.
|
static interface |
DbDesign.SignCallback
Callback interface to get notified about progress when signing
|
Modifier and Type | Method and Description |
---|---|
DesignAgent |
createAgent(String agentName)
Creates a new, unsaved agent design element.
|
Folder |
createFolder(String folderName)
Creates a new, unsaved folder design element.
|
Form |
createForm(String formName)
Creates a new, unsaved form design element.
|
Subform |
createSubform(String subformName)
Creates a new, unsaved subform design element.
|
View |
createView(String viewName)
Creates a new, unsaved view design element.
|
Optional<DesignAgent> |
getAgent(String name)
Retrieves the named agent.
|
Stream<DesignAgent> |
getAgents()
Retrieves all agents in the database.
|
DbProperties |
getDatabaseProperties()
Retrieves the database properties.
|
<T extends DesignElement> |
getDesignElementByName(Class<T> type,
String name)
Retrieves a single design element in the database of the provided type matching the provided
title.
|
<T extends DesignElement> |
getDesignElements(Class<T> type)
Retrieves all design elements in the database of the provided type.
|
<T extends DesignElement> |
getDesignElementsByName(Class<T> type,
String name)
Retrieves all design elements in the database of the provided type matching the provided
title.
|
Optional<FileResource> |
getFileResource(String name)
Retrieves the named file resource.
|
Stream<FileResource> |
getFileResources()
Retrieves all file resource design elements in the database.
|
<T extends GenericFolderOrView> |
getFolderOrView(DbDesign.FolderOrView folderViewType,
String name)
Retrieves the named folder or view.
|
<T extends GenericFolderOrView> |
getFoldersOrViews(DbDesign.FolderOrView folderViewType)
Retrieves all folders or views in the database.
|
Optional<Form> |
getForm(String name)
Retrieves the named form.
|
default GenericFormOrSubform<?> |
getFormOrSubform(DbDesign.FormOrSubform formSubformType,
String name)
Deprecated.
|
Stream<Form> |
getForms()
Retrieves all forms in the database.
|
Optional<ImageResource> |
getImageResource(String name)
Retrieves the named image resource.
|
Stream<ImageResource> |
getImageResources()
Retrieves all image resources design elements in the database.
|
Stream<ScriptLibrary> |
getScriptLibraries()
Retrieves all script library design elements in the database.
|
Optional<ScriptLibrary> |
getScriptLibrary(String name)
Retrieves the named script library.
|
Optional<Subform> |
getSubform(String name)
Retrieves the named subform.
|
Stream<Subform> |
getSubforms()
Retrieves all subforms in the database.
|
<T extends DesignElement> |
queryDesignElements(Class<T> type,
String formula)
Queries all design elements in the database by the provided formula and restricted
to the provided type.
|
Stream<DesignElement> |
queryDesignElements(String formula)
Queries all design elements in the database by the provided formula.
|
void |
signAll(Set<DocumentClass> docClass,
UserId id,
DbDesign.SignCallback callback)
Signs all design documents of the specified types
|
Stream<DesignElement> queryDesignElements(String formula)
formula
- the formula query to executeStream
of matching DesignElement
s<T extends DesignElement> Stream<T> queryDesignElements(Class<T> type, String formula)
T
- the type of design element to querytype
- a Class
object representing <T>
formula
- the formula query to executeStream
of matching DesignElement
s<T extends DesignElement> Stream<T> getDesignElements(Class<T> type)
T
- the type of design element to retrievetype
- a Class
object representing <T>
Stream
of matching DesignElement
s<T extends DesignElement> Stream<T> getDesignElementsByName(Class<T> type, String name)
T
- the type of design element to retrievetype
- a Class
object representing <T>
name
- the element name to restrict toStream
of matching DesignElement
s<T extends DesignElement> Optional<T> getDesignElementByName(Class<T> type, String name)
View createView(String viewName)
viewName
- the name of the view to createView
Folder createFolder(String folderName)
folderName
- the name of the folder to createFolder
<T extends GenericFolderOrView> Optional<T> getFolderOrView(DbDesign.FolderOrView folderViewType, String name)
T
- the expected type of returned elementfolderViewType
- a DbDesign.FolderOrView
value representing the type of element to retrievename
- the element name to restrict toOptional
describing the Folder
or View
,
or an empty Optional
if no such element exists<T extends GenericFolderOrView> Stream<T> getFoldersOrViews(DbDesign.FolderOrView folderViewType)
T
- the expected type of returned elementsfolderViewType
- a DbDesign.FolderOrView
value representing the type of elements to retrieveStream
of Folder
s and/or View
sForm createForm(String formName)
formName
- the name of the form to createForm
Subform createSubform(String subformName)
subformName
- the name of the subform to createSubform
Optional<FileResource> getFileResource(String name)
Note: this method uses the value of the "$TITLE" field of the design element, not the "$FileNames" of the file resource. These may diverge, such as when a file resource has an alias assigned to it.
name
- the name of the resource to restrict toOptional
describing the FileResource
, or an empty
one if no such element existsStream<FileResource> getFileResources()
Stream
of FileResource
sOptional<ScriptLibrary> getScriptLibrary(String name)
name
- the name of the library to restrict toOptional
describing the ScriptLibrary
, or an empty
one if no such element existsJavaLibrary
,
JavaScriptLibrary
,
ServerJavaScriptLibrary
,
LotusScriptLibrary
Stream<ScriptLibrary> getScriptLibraries()
Stream
of ScriptLibrary
subclass elementsJavaLibrary
,
JavaScriptLibrary
,
ServerJavaScriptLibrary
,
LotusScriptLibrary
Optional<ImageResource> getImageResource(String name)
name
- the name of the resource to restrict toOptional
describing the ImageResource
, or an empty
one if no such element existsStream<ImageResource> getImageResources()
Stream
of ImageResource
elements@Deprecated default GenericFormOrSubform<?> getFormOrSubform(DbDesign.FormOrSubform formSubformType, String name)
getForm(String)
or getSubform(String)
formSubformType
- the type of element to selectname
- the name of the design element to selectnull
if no element existsDesignAgent createAgent(String agentName)
agentName
- the name of the agent to createDesignAgent
Optional<DesignAgent> getAgent(String name)
name
- the element name to restrict toOptional
describing the DesignAgent
,
or an empty Optional
if no such element existsStream<DesignAgent> getAgents()
Stream
of DesignAgent
sDbProperties getDatabaseProperties()
void signAll(Set<DocumentClass> docClass, UserId id, DbDesign.SignCallback callback)
docClass
- doc classes to signid
- id to sign or null for active Notes IDcallback
- optional sign callback to control with document to signCopyright © 2019–2021 HCL. All rights reserved.