|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.connector.dominoUsers.DominoUtils
public class DominoUtils
Utility class
Field Summary | |
---|---|
static String |
GROUP_SEARCH_FILTER
Group search filter : "Form = \"Group\"" |
static String |
ITEM_NAME_FORM
Item name : "Form" |
static String |
ITEM_NAME_GROUP_MEMBERS
Item name : "Members" |
static String |
ITEM_NAME_GROUP_NAME
Item name : "ListName" |
static String |
ITEM_VALUE_PERSON
Item value : "Person" |
static String |
VIEW_NAME_DENY_GROUPS
View name : "Server\\Deny Access Groups" |
Constructor Summary | |
---|---|
DominoUtils()
|
Method Summary | |
---|---|
static String |
buildNotesFormulaElement(SearchCriteria.rscSearch criteria)
Builds Notes formula element. |
static SearchCriteria |
cloneSearchCriteria(SearchCriteria aSearch)
Clones the search criteria. |
static boolean |
denyGroupExist(lotus.domino.Database aDatabase,
String aDenyGroupName)
Checks if the provided group name is in the data base view with the denied groups. |
static String |
getNotesFormula(SearchCriteria aSearch)
Builds Notes formula. |
static String |
getUserAbbreviatedName(lotus.domino.Session aSession,
String aUserName)
Retrieves user's abbreviated name. |
static String |
getUserCanonicalName(lotus.domino.Session aSession,
String aUserName)
Retrieves the canonical name of the user. |
static boolean |
groupExist(lotus.domino.Database aDatabase,
String aGroupName)
Checks if the provided group name exists in the database. |
static boolean |
isDenyGroupMember(lotus.domino.Database aDatabase,
String aUserName)
Checks whether a user is in the deny groups view of the data base. |
static boolean |
isDenyGroupMember(lotus.domino.Database aDatabase,
String aUserName,
String aDenyGroupName)
Performs verification if the the group is part of the deny groups of the data base and if so is the user part of this group. |
static boolean |
isDenyGroupMember(lotus.domino.Document aDenyGroupDoc,
String aUserName)
Checks whether the provided name is in the denied list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String VIEW_NAME_DENY_GROUPS
public static final String ITEM_NAME_GROUP_NAME
public static final String ITEM_NAME_GROUP_MEMBERS
public static final String ITEM_NAME_FORM
public static final String ITEM_VALUE_PERSON
public static final String GROUP_SEARCH_FILTER
Constructor Detail |
---|
public DominoUtils()
Method Detail |
---|
public static boolean groupExist(lotus.domino.Database aDatabase, String aGroupName) throws lotus.domino.NotesException
aDatabase
- date base to look into.aGroupName
- name of the group
true
if exists.
lotus.domino.NotesException
public static boolean denyGroupExist(lotus.domino.Database aDatabase, String aDenyGroupName) throws lotus.domino.NotesException
aDatabase
- database to look intoaDenyGroupName
- group name to look for
lotus.domino.NotesException
- if an error occurs.public static boolean isDenyGroupMember(lotus.domino.Document aDenyGroupDoc, String aUserName) throws Exception
aDenyGroupDoc
- deny group Document
to look intoaUserName
- user name to check
true
if match found
Exception
- if an error occurs.public static boolean isDenyGroupMember(lotus.domino.Database aDatabase, String aUserName) throws Exception
aDatabase
- data base to checkaUserName
- user name to check
true
if match found
Exception
- if an error occurs.public static boolean isDenyGroupMember(lotus.domino.Database aDatabase, String aUserName, String aDenyGroupName) throws Exception
aDatabase
- data base to search intoaUserName
- user name to checkaDenyGroupName
- name of the deny group
true
if the user is part of the deny group.
Exception
- if the provided group deny name is not in the database view
or if some other error occurs.public static String getUserCanonicalName(lotus.domino.Session aSession, String aUserName) throws lotus.domino.NotesException
aSession
- Session
aUserName
- user name
lotus.domino.NotesException
- if an error occurspublic static String getUserAbbreviatedName(lotus.domino.Session aSession, String aUserName) throws lotus.domino.NotesException
aSession
- Session
aUserName
- user name
lotus.domino.NotesException
public static SearchCriteria cloneSearchCriteria(SearchCriteria aSearch)
aSearch
- SearchCriteria
to copy
public static String getNotesFormula(SearchCriteria aSearch)
aSearch
- SearchCriteria
instance
SearchCriteria.getNotesFilter()
public static String buildNotesFormulaElement(SearchCriteria.rscSearch criteria)
criteria
- search criteria
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |