public final class XPTBean extends Object
Constructor and Description |
---|
XPTBean() |
Modifier and Type | Method and Description |
---|---|
com.ibm.xsp.model.AbstractDataSource |
findDataSource(String panelId,
String dateSourceName)
Finds a data source by searching direct in the named panel
|
com.ibm.xsp.model.AbstractDataSource |
findDataSourceDeep(String panelId,
String datasSourceName)
Finds a data source by searching direct in the named panel and then top
down
|
static XPTBean |
get() |
static XPTBean |
get(javax.faces.context.FacesContext context) |
Date |
getDecryptedDateValue(lotus.domino.Document doc,
String fieldName,
String[] roles,
boolean dateOnly)
Unencrypt a value of a field in a document, based on the roles
|
Double |
getDecryptedDoubleValue(lotus.domino.Document doc,
String fieldName,
String[] roles)
Unencrypt a value of a field in a document, based on the roles
|
String |
getDecryptedStringValue(lotus.domino.Document doc,
String fieldName,
String[] roles)
Unencrypt a value of a field in a document, based on the roles
|
List<String> |
getGroupsAndRolesOf(String userName)
All groups and roles of a specified user
|
List<String> |
getGroupsAndRolesOf(String userName,
lotus.domino.Database targetDatabase)
All groups an roles of specified user in a defined database
|
List<String> |
getMyGroupsAndRoles()
All groups and roles of the current user
|
String |
getXptVersion()
Version of the XPagesToolkit
|
public static final String BEAN_NAME
public static XPTBean get(javax.faces.context.FacesContext context)
public static XPTBean get()
public String getXptVersion()
public com.ibm.xsp.model.AbstractDataSource findDataSource(String panelId, String dateSourceName)
panelId
- dateSourceName
- public com.ibm.xsp.model.AbstractDataSource findDataSourceDeep(String panelId, String datasSourceName)
panelId
- datasSourceName
- public List<String> getMyGroupsAndRoles()
public List<String> getGroupsAndRolesOf(String userName)
userName
- public List<String> getGroupsAndRolesOf(String userName, lotus.domino.Database targetDatabase)
userName
- targetDatabase
- public String getDecryptedStringValue(lotus.domino.Document doc, String fieldName, String[] roles)
doc
- fieldName
- roles
- public Date getDecryptedDateValue(lotus.domino.Document doc, String fieldName, String[] roles, boolean dateOnly)
doc
- fieldName
- roles
- dateOnly
- Copyright © 2021. All Rights Reserved.