|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.connector.Connector
com.ibm.di.connector.dominoUsers.DominoUsersConnector
public class DominoUsersConnector
The Domino Users Connector enables access to and management of Lotus Domino users With the Domino Users Connector you can do the following: - retrieve users documents and their items from the Name and Address Book - create and register Domino users - initiate Domino users deletion (through the Domino Administration Process) by posting administration requests to the Administration Requests Database - modify users by modifying their Person documents in the Name and Address Book - perform users’ “disabling/enabling” by adding/removing users’ names to/from a “Deny Access Group” - perform "lookup" of Domino users The following features are not currently supported by the Domino Users Connector: - Users recertifying
Field Summary | |
---|---|
protected static java.lang.String |
ADMIN_DATABASE_NAME
Constant for default 'Administration' Database |
static java.lang.String |
ATTR_NAME_ALT_FULL_NAME
This field corresponds to the AltFullName Item of the Domino document. |
static java.lang.String |
ATTR_NAME_ALT_FULL_NAME_LANGUAGE
This field corresponds to the AltFullNameLanguage Item of the Domino document. |
static java.lang.String |
ATTR_NAME_COMMENT
This field corresponds to the Comment Item of the Domino document. |
static java.lang.String |
ATTR_NAME_DER_IS_ENABLED
“true” – if the user does not belong to a “Deny List only” group; “false” – if the user belongs to at least one group of type “Deny List only”. |
static java.lang.String |
ATTR_NAME_FIRST_NAME
This field corresponds to the FirstName Item of the Domino document. |
static java.lang.String |
ATTR_NAME_FORM
Corresponds to the Form Item of the Domino document. |
static java.lang.String |
ATTR_NAME_FULL_NAME
This field corresponds to the FullName Item of the Domino document. |
static java.lang.String |
ATTR_NAME_HTTP_PASSWORD
This field corresponds to the HTTPPassword Item of the Domino document. |
static java.lang.String |
ATTR_NAME_LAST_NAME
This field corresponds to the LastName Item of the Domino document. |
static java.lang.String |
ATTR_NAME_LOCATION
This field corresponds to the Location Item of the Domino document. |
static java.lang.String |
ATTR_NAME_MAIL_DB_INHERIT
If set to “true” – the user mail database to be created will inherit any changes to the mail template database design If set to “false” - the user mail database to be created will not inherit any changes to the mail template database design If this Attribute is missing, a default value of “false” will be assumed. |
static java.lang.String |
ATTR_NAME_MAIL_FILE
This field corresponds to the MailFile Item of the Domino document. |
static java.lang.String |
ATTR_NAME_MAIL_TEMPLATE_FILE
The filename of a Notes template database, which the Connector will use to create the user mail file. |
static java.lang.String |
ATTR_NAME_MAIL_TEMPLATE_SERVER
The IP address of the Domino server machine on which the mail template database (specified by “REG_MailTemplateFile”) resides. |
static java.lang.String |
ATTR_NAME_MIDDLE_INITIAL
This field corresponds to the MiddleInitial Item of the Domino document. |
static java.lang.String |
ATTR_NAME_REG_CREATE_MAIL_DB
If set to “true” - creates a mail database If set to “false” - does not create a mail database; it will be created during setup If this Attribute is missing, a default value of “false” will be assumed. |
static java.lang.String |
ATTR_NAME_REG_PERFORM
If set to “true” the Connector will perform user registration; If this Attribute is missing, or its value is “false”, the Connector will not perform user registration, regardless of the presence and the values of the other “REG_” Attributes. |
static java.lang.String |
ATTR_NAME_REG_SERVER
The name of the server containing the user's mail file. |
static java.lang.String |
ATTR_NAME_TYPE
Corresponds to the Type Item of the Domino document. |
protected static java.lang.String |
FORMULA_FORM_PERSON
Constant for default formula |
protected static java.lang.String |
NAB_DEFAULT_VALUE
Constant for default 'Name and Address Book' Database |
static java.lang.String |
PROP_AUTHORS
This field corresponds to the Authors Item of the Domino document. |
static java.lang.String |
PROP_IS_SIGNED
This field corresponds to the IsSigned Item of the Domino document. |
static java.lang.String |
PROP_IS_VALID
This field corresponds to the IsValid Item of the Domino document. |
static java.lang.String |
PROP_NOTE_ID
This field corresponds to the NoteID Item of the Domino document. |
static java.lang.String |
PROP_UNIVERSAL_ID
This field corresponds to the UniversalID Item of the Domino document. |
static java.lang.String |
PROP_VERIFIER
This field corresponds to the Verifier Item of the Domino document. |
protected static java.lang.String |
VIEW_PEOPLE
Constant for default view |
Fields inherited from class com.ibm.di.connector.Connector |
---|
ALL_MODES, myLog, PROPERTY_MESSAGE, PROPERTY_READER, PROPERTY_WRITER |
Constructor Summary | |
---|---|
DominoUsersConnector()
Constructor Creates the connector and sets the AddOnly, Delete, Iterator, Lookup and Update modes |
Method Summary | |
---|---|
protected void |
checkExtractAndExecuteDominoAction(IDominoAction aDominoAction,
Entry aEntry)
If the Domino Action should be performed this method resets the local data holders to empty/default values according the action and then extracts and stores the data |
protected Entry |
clearFixedDominoActionAttributes(IDominoAction aDominoAction,
Entry aEntry)
Extracts and stores data for the Domino Action |
void |
deleteEntry(Entry aEntry,
SearchCriteria aSearch)
Deletes an existing entry. The search criteria specifies which entry to modify. Some connectors may silently ignore the search criteria. For example, the LDAP connector will use the distinguished name ($dn) from the entry parameter (if it exists) rather than expanding the search criteria and search for the entry. Each connector's inner semantics governs whether the search parameter is used or not. |
Entry |
findEntry(SearchCriteria aSearch)
Finds an existing entry. The search criteria specifies which entry to locate Here is an example of how to find all people with names starting with 'J' which are from IBM organization in US. Example: var ctor = input.getConnector(); var crit = new com.ibm.di.SearchCriteria("$dn", com.ibm.di.SearchCriteria.SUBSTRING, "c=US,o=IBM"); crit.addCriteria("name", com.ibm.di.SearchCriteria.INITIAL_STRING, "J"); crit.addCriteria("objectclass", com.ibm.di.SearchCriteria.SUBSTRING, "person"); var res = ctor.findEntry(crit); if (res != null) { main.logmsg("Found entry:"); main.dumpEntry(res); } else { if( getFindEntryCount()> 1 ){ main.logmsg("Found these entries:"); while ( (entry = ctor.getNextFindEntry()) != null ) { main.dumpEntry(entry); } } else { main.logmsg("Entry not found!"); } } |
lotus.domino.Database |
getAdminDatabase()
Getter method for the mAdminDatabase inner variable |
lotus.domino.Database |
getDatabase()
Getter method for the mDatabase inner variable |
java.lang.String |
getDeleteGroupName()
API provided to get the group that the user name is placed on deletion. |
int |
getDeleteMailFile()
API provided to get the default delete mail file type |
Entry |
getNextEntry()
Returns the next Entry from the connector. The entry is populated with attributes and values from the next entry in the input set. Example: var ctor = input.getConnector(); var entry = ctor.getNextEntry(); for (; entry != null; entry = ctor.getNextEntry()) { main.logmsg("Read entry..."); main.dumpEntry(entry); } |
static ResourceHash |
getResHash()
Getter for the ResourceHash of the TMS messages |
lotus.domino.Session |
getSession()
Getter method for the mSession inner variable |
java.lang.String |
getVersion()
Version information |
void |
initialize(java.lang.Object aObject)
Initialize the connector. The connector may be passed a parameter of any kind by the user. It is up to the connector to determine whether this object can be used or not. The parameter is typically provided by a user script. When an AssemblyLine initializes it's Connectors, they are passed a ConnectorMode object. |
void |
initLocalThread()
This call is needed when the connector makes local calls through a client or server. |
void |
modEntry(Entry aEntry,
SearchCriteria aSearch)
Modifies an existing entry. The new entry data is given by the entry parameter and the search criteria specifies which entry to modify. |
protected boolean |
mustPerformDominoAction(IDominoAction aDominoAction,
Entry aEntry)
Inspects the Attributes of the given Entry and determines if the Domino Action has to be performed. |
protected void |
performDominoAction(IDominoAction aDominoAction)
Check if a Domino Action could be performed and if so it is performed |
void |
putEntry(Entry aEntry)
Adds a new entry to the data source Example: var ctor = write.getConnector(); for (i = 0; i < 10; i++) { var entry = system.newEntry(); entry.setAttribute("linenumber", i); entry.setAttribute("line", i + " line of text..."); main.logmsg("Writes entry to output..."); main.dumpEntry(entry); ctor.putEntry(entry); } |
protected void |
resetAndExtractData(IDominoAction aDominoAction,
Entry aEntry)
Resets the local data holders to empty/default values according the business logic of the Domino Action. |
void |
run()
Accepts commands from the command line until termination is requested. |
void |
selectEntries()
Prepare the Connector for sequential read. If necessary, create a result set to be used for getNextEntry(). When the Connector is used as an Iterator in an AssemblyLine, this method will be called. Default is an empty method. |
void |
setDeleteGroupName(java.lang.String aGroupName)
API provided to specify the group that the user name should be placed on deletion. |
void |
setDeleteMailFile(int aDeleteType)
API provided to specify how and if the mail file should be deleted Can be one of: 0 - Don't delete mail file 1 - Delete just the mail file specified in Person document 2 - Delete mail file specified in Person document and all replicas |
void |
terminate()
Terminate the connector. This function closes all connection and releases all resources used by the connector. This function also calls the parser's closeParser() method if a parser is active. |
void |
termLocalThread()
This method terminates the Notes API thread to make sure resources are cleaned up properly. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.di.connector.ConnectorInterface |
---|
getConfiguration, getContext, getFindEntryCount, getFirstFindEntry, getMaxDuplicateEntries, getName, getNextClient, getNextFindEntry, getParam, getPushbackEntry, getRawConnectorConfiguration, isDeltaSupported, isExceptionFatal, isIOException, modEntry, pushback, queryOperations, queryReply, querySchema, reconnect, registerScriptBeans, replyEntry, setConfiguration, setContext, setCurrent, setLog, setMaxDuplicateEntries, setName, setParam, setRSInterface, terminateServer |
Field Detail |
---|
public static final java.lang.String ATTR_NAME_FORM
public static final java.lang.String ATTR_NAME_TYPE
public static final java.lang.String ATTR_NAME_FIRST_NAME
public static final java.lang.String ATTR_NAME_MIDDLE_INITIAL
public static final java.lang.String ATTR_NAME_LAST_NAME
public static final java.lang.String ATTR_NAME_FULL_NAME
public static final java.lang.String ATTR_NAME_MAIL_FILE
public static final java.lang.String ATTR_NAME_LOCATION
public static final java.lang.String ATTR_NAME_COMMENT
public static final java.lang.String ATTR_NAME_ALT_FULL_NAME
public static final java.lang.String ATTR_NAME_ALT_FULL_NAME_LANGUAGE
public static final java.lang.String ATTR_NAME_HTTP_PASSWORD
public static final java.lang.String ATTR_NAME_REG_SERVER
public static final java.lang.String ATTR_NAME_REG_CREATE_MAIL_DB
public static final java.lang.String ATTR_NAME_REG_PERFORM
public static final java.lang.String ATTR_NAME_MAIL_TEMPLATE_FILE
public static final java.lang.String ATTR_NAME_MAIL_DB_INHERIT
public static final java.lang.String ATTR_NAME_MAIL_TEMPLATE_SERVER
public static final java.lang.String ATTR_NAME_DER_IS_ENABLED
public static final java.lang.String PROP_NOTE_ID
public static final java.lang.String PROP_UNIVERSAL_ID
public static final java.lang.String PROP_AUTHORS
public static final java.lang.String PROP_IS_VALID
public static final java.lang.String PROP_IS_SIGNED
public static final java.lang.String PROP_VERIFIER
protected static final java.lang.String NAB_DEFAULT_VALUE
protected static final java.lang.String ADMIN_DATABASE_NAME
protected static final java.lang.String VIEW_PEOPLE
protected static final java.lang.String FORMULA_FORM_PERSON
Constructor Detail |
---|
public DominoUsersConnector()
Method Detail |
---|
public static ResourceHash getResHash()
public void initLocalThread() throws java.lang.Exception
java.lang.Exception
- An exception is thrown if this method fails.public void termLocalThread()
public void run()
run
in interface java.lang.Runnable
public void initialize(java.lang.Object aObject) throws java.lang.Exception
initialize
in interface ConnectorInterface
initialize
in class Connector
aObject
- User provided parameter
java.lang.Exception
- if the initialization of this connector fails.public void selectEntries() throws java.lang.Exception
selectEntries
in interface ConnectorInterface
selectEntries
in class Connector
java.lang.Exception
- if an error occurs.public Entry getNextEntry() throws java.lang.Exception
Example:
var ctor = input.getConnector(); var entry = ctor.getNextEntry(); for (; entry != null; entry = ctor.getNextEntry()) { main.logmsg("Read entry..."); main.dumpEntry(entry); }
getNextEntry
in interface ConnectorInterface
getNextEntry
in class Connector
java.lang.Exception
- if an error occurs.ConnectorInterface.selectEntries()
public Entry findEntry(SearchCriteria aSearch) throws java.lang.Exception
Here is an example of how to find all people with names starting with 'J' which are from IBM organization in US.
Example:
var ctor = input.getConnector(); var crit = new com.ibm.di.SearchCriteria("$dn", com.ibm.di.SearchCriteria.SUBSTRING, "c=US,o=IBM"); crit.addCriteria("name", com.ibm.di.SearchCriteria.INITIAL_STRING, "J"); crit.addCriteria("objectclass", com.ibm.di.SearchCriteria.SUBSTRING, "person"); var res = ctor.findEntry(crit); if (res != null) { main.logmsg("Found entry:"); main.dumpEntry(res); } else { if( getFindEntryCount()> 1 ){ main.logmsg("Found these entries:"); while ( (entry = ctor.getNextFindEntry()) != null ) { main.dumpEntry(entry); } } else { main.logmsg("Entry not found!"); } }
findEntry
in interface ConnectorInterface
findEntry
in class Connector
aSearch
- The search criteria used to locate the entry to be modified
java.lang.Exception
- if an error occurs.public void modEntry(Entry aEntry, SearchCriteria aSearch) throws java.lang.Exception
modEntry
in interface ConnectorInterface
modEntry
in class Connector
aEntry
- The entry dataaSearch
- The search criteria used to locate the entry to be modified
java.lang.Exception
- if an error occurs.public void putEntry(Entry aEntry) throws java.lang.Exception
Example:
var ctor = write.getConnector(); for (i = 0; i < 10; i++) { var entry = system.newEntry(); entry.setAttribute("linenumber", i); entry.setAttribute("line", i + " line of text..."); main.logmsg("Writes entry to output..."); main.dumpEntry(entry); ctor.putEntry(entry); }
putEntry
in interface ConnectorInterface
putEntry
in class Connector
aEntry
- The entry data to add
java.lang.Exception
- if an error occurs.public void deleteEntry(Entry aEntry, SearchCriteria aSearch) throws java.lang.Exception
deleteEntry
in interface ConnectorInterface
deleteEntry
in class Connector
aEntry
- The entry dataaSearch
- The search criteria used to locate the entry to be deleted
java.lang.Exception
- if an error occurs.public void terminate()
terminate
in interface ConnectorInterface
terminate
in class Connector
public java.lang.String getVersion()
getVersion
in interface VersionInfoInterface
public int getDeleteMailFile()
public void setDeleteMailFile(int aDeleteType) throws java.lang.Exception
aDeleteType
- the type to be set
java.lang.Exception
- if an error occurpublic java.lang.String getDeleteGroupName()
public void setDeleteGroupName(java.lang.String aGroupName) throws java.lang.Exception
aGroupName
- the name of the group
java.lang.Exception
- if an error occurprotected boolean mustPerformDominoAction(IDominoAction aDominoAction, Entry aEntry) throws java.lang.Exception
aDominoAction
- the action to be checkedaEntry
- the Entry date
java.lang.Exception
- if an error occurprotected void resetAndExtractData(IDominoAction aDominoAction, Entry aEntry) throws java.lang.Exception
aDominoAction
- the actionaEntry
- the Entry data
java.lang.Exception
- if an error occurprotected void performDominoAction(IDominoAction aDominoAction) throws java.lang.Exception
aDominoAction
- the action
java.lang.Exception
- if an error occurprotected Entry clearFixedDominoActionAttributes(IDominoAction aDominoAction, Entry aEntry) throws java.lang.Exception
aDominoAction
- the actionaEntry
- the Entry data
java.lang.Exception
- if an error occurprotected void checkExtractAndExecuteDominoAction(IDominoAction aDominoAction, Entry aEntry) throws java.lang.Exception
aDominoAction
- the actionaEntry
- the Entry data
java.lang.Exception
- if an error occurpublic lotus.domino.Session getSession()
public lotus.domino.Database getDatabase()
public lotus.domino.Database getAdminDatabase()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |