|
||||||||||
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 java.lang.String |
GROUP_SEARCH_FILTER
Group search filter : "Form = \"Group\"" |
static java.lang.String |
ITEM_NAME_FORM
Item name : "Form" |
static java.lang.String |
ITEM_NAME_GROUP_MEMBERS
Item name : "Members" |
static java.lang.String |
ITEM_NAME_GROUP_NAME
Item name : "ListName" |
static java.lang.String |
ITEM_VALUE_PERSON
Item value : "Person" |
static java.lang.String |
VIEW_NAME_DENY_GROUPS
View name : "Server\\Deny Access Groups" |
Constructor Summary | |
---|---|
DominoUtils()
|
Method Summary | |
---|---|
static java.lang.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,
java.lang.String aDenyGroupName)
Checks if the provided group name is in the data base view with the denied groups. |
static java.lang.String |
getNotesFormula(SearchCriteria aSearch)
Builds Notes formula. |
static java.lang.String |
getUserAbbreviatedName(lotus.domino.Session aSession,
java.lang.String aUserName)
Retrieves user's abbreviated name. |
static java.lang.String |
getUserCanonicalName(lotus.domino.Session aSession,
java.lang.String aUserName)
Retrieves the canonical name of the user. |
static boolean |
groupExist(lotus.domino.Database aDatabase,
java.lang.String aGroupName)
Checks if the provided group name exists in the database. |
static boolean |
isDenyGroupMember(lotus.domino.Database aDatabase,
java.lang.String aUserName)
Checks whether a user is in the deny groups view of the data base. |
static boolean |
isDenyGroupMember(lotus.domino.Database aDatabase,
java.lang.String aUserName,
java.lang.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,
java.lang.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 java.lang.String VIEW_NAME_DENY_GROUPS
public static final java.lang.String ITEM_NAME_GROUP_NAME
public static final java.lang.String ITEM_NAME_GROUP_MEMBERS
public static final java.lang.String ITEM_NAME_FORM
public static final java.lang.String ITEM_VALUE_PERSON
public static final java.lang.String GROUP_SEARCH_FILTER
Constructor Detail |
---|
public DominoUtils()
Method Detail |
---|
public static boolean groupExist(lotus.domino.Database aDatabase, java.lang.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, java.lang.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, java.lang.String aUserName) throws java.lang.Exception
aDenyGroupDoc
- deny group Document
to look intoaUserName
- user name to check
true
if match found
java.lang.Exception
- if an error occurs.public static boolean isDenyGroupMember(lotus.domino.Database aDatabase, java.lang.String aUserName) throws java.lang.Exception
aDatabase
- data base to checkaUserName
- user name to check
true
if match found
java.lang.Exception
- if an error occurs.public static boolean isDenyGroupMember(lotus.domino.Database aDatabase, java.lang.String aUserName, java.lang.String aDenyGroupName) throws java.lang.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.
java.lang.Exception
- if the provided group deny name is not in the database view
or if some other error occurs.public static java.lang.String getUserCanonicalName(lotus.domino.Session aSession, java.lang.String aUserName) throws lotus.domino.NotesException
aSession
- Session
aUserName
- user name
lotus.domino.NotesException
- if an error occurspublic static java.lang.String getUserAbbreviatedName(lotus.domino.Session aSession, java.lang.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 java.lang.String getNotesFormula(SearchCriteria aSearch)
aSearch
- SearchCriteria
instance
SearchCriteria.getNotesFilter()
public static java.lang.String buildNotesFormulaElement(SearchCriteria.rscSearch criteria)
criteria
- search criteria
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |