|
|||||||||||
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 String |
ADMIN_DATABASE_NAME
Constant for default 'Administration' Database |
static String |
ATTR_NAME_ALT_FULL_NAME
This field corresponds to the AltFullName Item of the Domino document. |
static String |
ATTR_NAME_ALT_FULL_NAME_LANGUAGE
This field corresponds to the AltFullNameLanguage Item of the Domino document. |
static String |
ATTR_NAME_COMMENT
This field corresponds to the Comment Item of the Domino document. |
static 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 String |
ATTR_NAME_FIRST_NAME
This field corresponds to the FirstName Item of the Domino document. |
static String |
ATTR_NAME_FORM
Corresponds to the Form Item of the Domino document. |
static String |
ATTR_NAME_FULL_NAME
This field corresponds to the FullName Item of the Domino document. |
static String |
ATTR_NAME_HTTP_PASSWORD
This field corresponds to the HTTPPassword Item of the Domino document. |
static String |
ATTR_NAME_LAST_NAME
This field corresponds to the LastName Item of the Domino document. |
static String |
ATTR_NAME_LOCATION
This field corresponds to the Location Item of the Domino document. |
static 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 String |
ATTR_NAME_MAIL_FILE
This field corresponds to the MailFile Item of the Domino document. |
static 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 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 String |
ATTR_NAME_MIDDLE_INITIAL
This field corresponds to the MiddleInitial Item of the Domino document. |
static 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 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 String |
ATTR_NAME_REG_SERVER
The name of the server containing the user's mail file. |
static String |
ATTR_NAME_TYPE
Corresponds to the Type Item of the Domino document. |
protected static String |
FORMULA_FORM_PERSON
Constant for default formula |
protected static String |
NAB_DEFAULT_VALUE
Constant for default 'Name and Address Book' Database |
static String |
PROP_AUTHORS
This field corresponds to the Authors Item of the Domino document. |
static String |
PROP_IS_SIGNED
This field corresponds to the IsSigned Item of the Domino document. |
static String |
PROP_IS_VALID
This field corresponds to the IsValid Item of the Domino document. |
static String |
PROP_NOTE_ID
This field corresponds to the NoteID Item of the Domino document. |
static String |
PROP_UNIVERSAL_ID
This field corresponds to the UniversalID Item of the Domino document. |
static String |
PROP_VERIFIER
This field corresponds to the Verifier Item of the Domino document. |
protected static 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. |
Entry |
findEntry(SearchCriteria aSearch)
Finds an existing entry. |
lotus.domino.Database |
getAdminDatabase()
Getter method for the mAdminDatabase inner variable |
lotus.domino.Database |
getDatabase()
Getter method for the mDatabase inner variable |
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. |
static ResourceHash |
getResHash()
Getter for the ResourceHash of the TMS messages |
lotus.domino.Session |
getSession()
Getter method for the mSession inner variable |
String |
getVersion()
Version information |
void |
initialize(Object aObject)
Initialize the connector. |
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. |
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 |
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. |
void |
setDeleteGroupName(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. |
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 String ATTR_NAME_FORM
public static final String ATTR_NAME_TYPE
public static final String ATTR_NAME_FIRST_NAME
public static final String ATTR_NAME_MIDDLE_INITIAL
public static final String ATTR_NAME_LAST_NAME
public static final String ATTR_NAME_FULL_NAME
public static final String ATTR_NAME_MAIL_FILE
public static final String ATTR_NAME_LOCATION
public static final String ATTR_NAME_COMMENT
public static final String ATTR_NAME_ALT_FULL_NAME
public static final String ATTR_NAME_ALT_FULL_NAME_LANGUAGE
public static final String ATTR_NAME_HTTP_PASSWORD
public static final String ATTR_NAME_REG_SERVER
public static final String ATTR_NAME_REG_CREATE_MAIL_DB
public static final String ATTR_NAME_REG_PERFORM
public static final String ATTR_NAME_MAIL_TEMPLATE_FILE
public static final String ATTR_NAME_MAIL_DB_INHERIT
public static final String ATTR_NAME_MAIL_TEMPLATE_SERVER
public static final String ATTR_NAME_DER_IS_ENABLED
public static final String PROP_NOTE_ID
public static final String PROP_UNIVERSAL_ID
public static final String PROP_AUTHORS
public static final String PROP_IS_VALID
public static final String PROP_IS_SIGNED
public static final String PROP_VERIFIER
protected static final String NAB_DEFAULT_VALUE
protected static final String ADMIN_DATABASE_NAME
protected static final String VIEW_PEOPLE
protected static final String FORMULA_FORM_PERSON
Constructor Detail |
---|
public DominoUsersConnector()
Method Detail |
---|
public static ResourceHash getResHash()
public void initLocalThread() throws Exception
Exception
- An exception is thrown if this method fails.public void termLocalThread()
public void run()
run
in interface Runnable
public void initialize(Object aObject) throws Exception
initialize
in interface ConnectorInterface
initialize
in class Connector
aObject
- User provided parameter
Exception
- if the initialization of this connector fails.public void selectEntries() throws Exception
selectEntries
in interface ConnectorInterface
selectEntries
in class Connector
Exception
- if an error occurs.public Entry getNextEntry() throws 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
Exception
- if an error occurs.ConnectorInterface.selectEntries()
public Entry findEntry(SearchCriteria aSearch) throws 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
Exception
- if an error occurs.public void modEntry(Entry aEntry, SearchCriteria aSearch) throws Exception
modEntry
in interface ConnectorInterface
modEntry
in class Connector
aEntry
- The entry dataaSearch
- The search criteria used to locate the entry to be modified
Exception
- if an error occurs.public void putEntry(Entry aEntry) throws 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
Exception
- if an error occurs.public void deleteEntry(Entry aEntry, SearchCriteria aSearch) throws Exception
deleteEntry
in interface ConnectorInterface
deleteEntry
in class Connector
aEntry
- The entry dataaSearch
- The search criteria used to locate the entry to be deleted
Exception
- if an error occurs.public void terminate()
terminate
in interface ConnectorInterface
terminate
in class Connector
public String getVersion()
getVersion
in interface VersionInfoInterface
public int getDeleteMailFile()
public void setDeleteMailFile(int aDeleteType) throws Exception
aDeleteType
- the type to be set
Exception
- if an error occurpublic String getDeleteGroupName()
public void setDeleteGroupName(String aGroupName) throws Exception
aGroupName
- the name of the group
Exception
- if an error occurprotected boolean mustPerformDominoAction(IDominoAction aDominoAction, Entry aEntry) throws Exception
aDominoAction
- the action to be checkedaEntry
- the Entry date
Exception
- if an error occurprotected void resetAndExtractData(IDominoAction aDominoAction, Entry aEntry) throws Exception
aDominoAction
- the actionaEntry
- the Entry data
Exception
- if an error occurprotected void performDominoAction(IDominoAction aDominoAction) throws Exception
aDominoAction
- the action
Exception
- if an error occurprotected Entry clearFixedDominoActionAttributes(IDominoAction aDominoAction, Entry aEntry) throws Exception
aDominoAction
- the actionaEntry
- the Entry data
Exception
- if an error occurprotected void checkExtractAndExecuteDominoAction(IDominoAction aDominoAction, Entry aEntry) throws Exception
aDominoAction
- the actionaEntry
- the Entry data
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 |