public class UserUtilities extends Object
| Modifier and Type | Method and Description | 
|---|---|
static Credential | 
createCredentialForUserDistinguishedName(LibrarySession session,
                                        String dn)
Create a Credential that can be used to establish a LibrarySession
 for the specified user, identified by distinguished name (GUID). 
 | 
static Credential | 
createCredentialForUserName(LibrarySession session,
                           String userName)
Create a credential that can be used to create a session
 for the specified user, identified by name. 
 | 
static Credential | 
createGuestCredential(LibrarySession session)
Create a credential that can be used to establish guest access. 
 | 
static LibrarySession | 
createGuestSession(LibrarySession session)
Create a LibrarySession that can be used for guest access. 
 | 
static LibrarySession | 
createSessionForUserDistinguishedName(LibrarySession session,
                                     String dn)
Create a LibrarySession for the specified user, identified
 by distinguished name (GUID). 
 | 
static LibrarySession | 
createSessionForUserName(LibrarySession session,
                        String userName)
Create a LibrarySession for the specified user, identified
 by name. 
 | 
static String[] | 
getAddresses(DirectoryUser[] users)
Gets a list of e-mail addresses from a list of DirectoryUsers, removing
 any address that is null. 
 | 
static String[] | 
getAddressesForGroupMembers(DirectoryGroup group)
Gets the e-mail addresses of all the members of the specified user group. 
 | 
public static LibrarySession createGuestSession(LibrarySession session) throws IfsException
session - the current session contextIfsException - if the operation failspublic static LibrarySession createSessionForUserName(LibrarySession session, String userName) throws IfsException
Typically the specified session must be in admin mode.
session - the current session contextuserName - the requested user's nameIfsException - if the operation failspublic static LibrarySession createSessionForUserDistinguishedName(LibrarySession session, String dn) throws IfsException
Typically the specified session must be in admin mode.
session - the current session contextdn - the requested user's distinguihsed name (GUID)IfsException - if the operation failspublic static Credential createGuestCredential(LibrarySession session) throws IfsException
session - the current session contextIfsException - if the operation failspublic static Credential createCredentialForUserName(LibrarySession session, String userName) throws IfsException
Typically the specified session must be in admin mode.
session - the current session contextuserName - the requested user's nameIfsException - if the operation failspublic static Credential createCredentialForUserDistinguishedName(LibrarySession session, String dn) throws IfsException
Typically the specified session must be in admin mode.
session - the current session contextdn - the requested user's distinguihsed name (GUID)IfsException - if the operation failspublic static String[] getAddressesForGroupMembers(DirectoryGroup group) throws IfsException
group - The group.IfsException - if the operation failspublic static String[] getAddresses(DirectoryUser[] users) throws IfsException
users - the set of usersIfsException - if the operation failsCopyright © 2025. All rights reserved.