Interface IDirectoryManager
- All Superinterfaces:
IDisposable, IEntity
Manages the directories.
-
Method Summary
Modifier and TypeMethodDescriptionintcreateContactProfile(int directoryId, ContactProfileRequest request) Creates a contact profile.intcreateContactProfileByAttributes(int directoryId, Attribute[] values) Creates a contact profile.intcreateDirectory(DirectoryCreateRequest request) Creates a directory.voiddeleteContactProfileById(int directoryId, int contactProfileId) Deletes a contact profile.voiddeleteContactProfileByUniqueId(int directoryId, String uniqueId) Deletes a contact profile.voiddeleteDirectory(String directoryName) Deletes a directory.getContactProfileById(int directoryId, int contactProfileId) Gets the specified contact profile.getContactProfileById(int directoryId, int contactProfileId, PurposeFilter purposeFilter) Gets the specified contact profile.getContactProfileByIdAsAttributes(int directoryId, int contactProfileId, String[] columns) Gets the specified contact profile as attributes.getContactProfileByIdAsAttributes(int directoryId, int contactProfileId, String[] columns, PurposeFilter purposeFilter) Gets the specified contact profile as attributes.getContactProfileByUniqueId(int directoryId, String uniqueId) Gets the specified contact profile.getContactProfileByUniqueId(int directoryId, String uniqueId, PurposeFilter purposeFilter) Gets the specified contact profile.getContactProfileByUniqueIdAsAttributes(int directoryId, String uniqueId, String[] columns) Gets the specified contact profile as attributes.getContactProfileByUniqueIdAsAttributes(int directoryId, String uniqueId, String[] columns, PurposeFilter purposeFilter) Gets the specified contact profile as attributes.intgetContactProfileCount(int directoryId, String sql) Gets the count of the contact profile.getContactProfileCursor(int cursorId) Gets the contact profile cursor.getContactProfileFieldsFormatted(int directoryId, int contactProfileId) Gets the formatted contact profile fields.getContactProfileFieldsFormatted(int directoryId, int contactProfileId, PurposeFilter purposeFilter) Gets the formatted contact profile fields.getContactProfileTableSchema(int directoryId) Gets the table schema of the contact profile.getContactProfileUploaderById(int contactProfileUploaderId) Gets aIContactProfileUploaderobject by the identifier within the IntegrationServer.getContactProfileUploaderByTaskId(int contactProfileUploaderTaskId) Returns aIContactProfileUploaderobject that previously has started an upload task in the Altitude uCI Server.Gets theIContactProfileUploaderobjects.Gets the directories.getDirectoryById(int directoryId) Gets the specified directory.getDirectoryByName(String directoryName) Gets the specified directory.String[]Gets the names of the directories.The instance.getPermissions(String directoryName) Gets the list of role permissions.newContactProfileCursor(int directoryId, String[] columns, String sql) Opens a contact profile cursor.newContactProfileCursor(int directoryId, String[] columns, String sql, PurposeFilter purposeFilter) Opens a contact profile cursor.newContactProfileUploader(String directoryName) Creates anIContactProfileUploaderused to upload contact profiles.tryGetContactProfileCursor(int cursorId) Gets the contact profile cursor or null if the cursor does not exist.voidupdateContactProfileById(int directoryId, int contactProfileId, ContactProfileRequest request) Updates a contact profile.voidupdateContactProfileByIdAttributes(int directoryId, int contactProfileId, Attribute[] values) Updates a contact profile.voidupdateContactProfileByUniqueId(int directoryId, String uniqueId, ContactProfileRequest request) Updates a contact profile.voidupdateContactProfileByUniqueIdAttributes(int directoryId, String uniqueId, Attribute[] values) Updates a contact profile.voidupdateDirectory(String directoryName, DirectoryUpdateRequest request) Updates a directory.Methods inherited from interface IDisposable
addDisposedListener, removeDisposedListenerMethods inherited from interface IEntity
getUserContext, setUserContext
-
Method Details
-
createContactProfile
int createContactProfile(int directoryId, ContactProfileRequest request) throws Exception, altitude.integrationServer.exceptions.ISException Creates a contact profile.- Parameters:
directoryId- Identifier of the directory.request- Contains the fields that must be overwritten- Returns:
- The contact profile identifier.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
createContactProfileByAttributes
int createContactProfileByAttributes(int directoryId, Attribute[] values) throws Exception, altitude.integrationServer.exceptions.ISException Creates a contact profile.- Parameters:
directoryId- Identifier of the directory.values- The contact profile data.- Returns:
- The contact profile identifier.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
createDirectory
int createDirectory(DirectoryCreateRequest request) throws Exception, altitude.integrationServer.exceptions.ISException Creates a directory.- Parameters:
request- Contains the fields that must be overwritten- Returns:
- Identifier of the created directory.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
deleteContactProfileById
void deleteContactProfileById(int directoryId, int contactProfileId) throws Exception, altitude.integrationServer.exceptions.ISException Deletes a contact profile.- Parameters:
directoryId- Identifier of the directory.contactProfileId- Identifier of the contact profile.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
deleteContactProfileByUniqueId
void deleteContactProfileByUniqueId(int directoryId, String uniqueId) throws Exception, altitude.integrationServer.exceptions.ISException Deletes a contact profile.- Parameters:
directoryId- Identifier of the directory.uniqueId- Unique identifier.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
deleteDirectory
-
getContactProfileById
ContactProfile getContactProfileById(int directoryId, int contactProfileId) throws Exception, altitude.integrationServer.exceptions.ISException Gets the specified contact profile.- Parameters:
directoryId- Identifier of the directory.contactProfileId- Identifier of the contact profile.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getContactProfileById
ContactProfile getContactProfileById(int directoryId, int contactProfileId, PurposeFilter purposeFilter) throws Exception, altitude.integrationServer.exceptions.ISException Gets the specified contact profile.- Parameters:
directoryId- Identifier of the directory.contactProfileId- Identifier of the contact profile.purposeFilter- Purpose filter.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getContactProfileByIdAsAttributes
Attribute[] getContactProfileByIdAsAttributes(int directoryId, int contactProfileId, String[] columns) throws Exception, altitude.integrationServer.exceptions.ISException Gets the specified contact profile as attributes.- Parameters:
directoryId- Identifier of the directory.contactProfileId- Identifier of the contact profile.columns- Columns to fetch. If null all columns are fetched.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getContactProfileByIdAsAttributes
Attribute[] getContactProfileByIdAsAttributes(int directoryId, int contactProfileId, String[] columns, PurposeFilter purposeFilter) throws Exception, altitude.integrationServer.exceptions.ISException Gets the specified contact profile as attributes.- Parameters:
directoryId- Identifier of the directory.contactProfileId- Identifier of the contact profile.columns- Columns to fetch. If null all columns are fetched.purposeFilter- Purpose filter.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getContactProfileByUniqueId
ContactProfile getContactProfileByUniqueId(int directoryId, String uniqueId) throws Exception, altitude.integrationServer.exceptions.ISException Gets the specified contact profile.- Parameters:
directoryId- Identifier of the directory.uniqueId- Unique identifier.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getContactProfileByUniqueId
ContactProfile getContactProfileByUniqueId(int directoryId, String uniqueId, PurposeFilter purposeFilter) throws Exception, altitude.integrationServer.exceptions.ISException Gets the specified contact profile.- Parameters:
directoryId- Identifier of the directory.uniqueId- Unique identifier.purposeFilter- Purpose filter.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getContactProfileByUniqueIdAsAttributes
Attribute[] getContactProfileByUniqueIdAsAttributes(int directoryId, String uniqueId, String[] columns) throws Exception, altitude.integrationServer.exceptions.ISException Gets the specified contact profile as attributes.- Parameters:
directoryId- Identifier of the directory.uniqueId- Unique identifier.columns- Columns to fetch. If null all columns are fetched.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getContactProfileByUniqueIdAsAttributes
Attribute[] getContactProfileByUniqueIdAsAttributes(int directoryId, String uniqueId, String[] columns, PurposeFilter purposeFilter) throws Exception, altitude.integrationServer.exceptions.ISException Gets the specified contact profile as attributes.- Parameters:
directoryId- Identifier of the directory.uniqueId- Unique identifier.columns- Columns to fetch. If null all columns are fetched.purposeFilter- Purpose filter.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getContactProfileCount
-
getContactProfileCursor
IContactProfileCursor getContactProfileCursor(int cursorId) throws Exception, altitude.integrationServer.exceptions.ISException Gets the contact profile cursor.- Parameters:
cursorId- Identifier of the cursor.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getContactProfileFieldsFormatted
Attribute[] getContactProfileFieldsFormatted(int directoryId, int contactProfileId) throws Exception, altitude.integrationServer.exceptions.ISException Gets the formatted contact profile fields.- Parameters:
directoryId- Identifier of the directory.contactProfileId- Identifier of the contact profile.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getContactProfileFieldsFormatted
Attribute[] getContactProfileFieldsFormatted(int directoryId, int contactProfileId, PurposeFilter purposeFilter) throws Exception, altitude.integrationServer.exceptions.ISException Gets the formatted contact profile fields.- Parameters:
directoryId- Identifier of the directory.contactProfileId- Identifier of the contact profile.purposeFilter- Purpose filter.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getContactProfileTableSchema
TableSchema getContactProfileTableSchema(int directoryId) throws Exception, altitude.integrationServer.exceptions.ISException Gets the table schema of the contact profile.- Parameters:
directoryId- Identifier of the directory.- Returns:
- An array with the definition of each column of the contact profile table.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getContactProfileUploaderById
IContactProfileUploader getContactProfileUploaderById(int contactProfileUploaderId) throws Exception, altitude.integrationServer.exceptions.ISException Gets aIContactProfileUploaderobject by the identifier within the IntegrationServer.- Parameters:
contactProfileUploaderId- Identifier of theIContactProfileUploaderobject.- Returns:
- The
IContactProfileUploaderobject. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getContactProfileUploaderByTaskId
IContactProfileUploader getContactProfileUploaderByTaskId(int contactProfileUploaderTaskId) throws Exception, altitude.integrationServer.exceptions.ISException Returns aIContactProfileUploaderobject that previously has started an upload task in the Altitude uCI Server.- Parameters:
contactProfileUploaderTaskId- Identifier of the entity upload task returned by the IContactProfileUploader.Start- Returns:
- The
IContactProfileUploaderobject. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getContactProfileUploaders
IContactProfileUploader[] getContactProfileUploaders() throws Exception, altitude.integrationServer.exceptions.ISExceptionGets theIContactProfileUploaderobjects.- Returns:
- The
IContactProfileUploaderobjects. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getDirectories
-
getDirectoryById
-
getDirectoryByName
-
getDirectoryNames
-
getInstance
-
getPermissions
DirectoryRolePermission[] getPermissions(String directoryName) throws Exception, altitude.integrationServer.exceptions.ISException Gets the list of role permissions.- Parameters:
directoryName- Name of the directory.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
newContactProfileCursor
IContactProfileCursor newContactProfileCursor(int directoryId, String[] columns, String sql) throws Exception, altitude.integrationServer.exceptions.ISException, altitude.integrationServer.exceptions.ISSqlException Opens a contact profile cursor.- Parameters:
directoryId- Identifier of the directory.columns- Columns to fetch.sql- SQL.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISExceptionaltitude.integrationServer.exceptions.ISSqlException
-
newContactProfileCursor
IContactProfileCursor newContactProfileCursor(int directoryId, String[] columns, String sql, PurposeFilter purposeFilter) throws Exception, altitude.integrationServer.exceptions.ISException, altitude.integrationServer.exceptions.ISSqlException Opens a contact profile cursor.- Parameters:
directoryId- Identifier of the directory.columns- Columns to fetch.sql- SQL.purposeFilter- Purpose filter.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISExceptionaltitude.integrationServer.exceptions.ISSqlException
-
newContactProfileUploader
IContactProfileUploader newContactProfileUploader(String directoryName) throws Exception, altitude.integrationServer.exceptions.ISException Creates anIContactProfileUploaderused to upload contact profiles.- Parameters:
directoryName- Name of the directory.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
tryGetContactProfileCursor
IContactProfileCursor tryGetContactProfileCursor(int cursorId) throws Exception, altitude.integrationServer.exceptions.ISException Gets the contact profile cursor or null if the cursor does not exist.- Parameters:
cursorId- Identifier of the cursor.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
updateContactProfileById
void updateContactProfileById(int directoryId, int contactProfileId, ContactProfileRequest request) throws Exception, altitude.integrationServer.exceptions.ISException Updates a contact profile.- Parameters:
directoryId- Identifier of the directory.contactProfileId- Identifier of the contact profile.request- Describes what to update.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
updateContactProfileByIdAttributes
void updateContactProfileByIdAttributes(int directoryId, int contactProfileId, Attribute[] values) throws Exception, altitude.integrationServer.exceptions.ISException Updates a contact profile.- Parameters:
directoryId- Identifier of the directory.contactProfileId- Identifier of the contact profile.values- The contact profile attributes to update.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
updateContactProfileByUniqueId
void updateContactProfileByUniqueId(int directoryId, String uniqueId, ContactProfileRequest request) throws Exception, altitude.integrationServer.exceptions.ISException Updates a contact profile.- Parameters:
directoryId- Identifier of the directory.uniqueId- Unique identifier.request- Describes what to update.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
updateContactProfileByUniqueIdAttributes
void updateContactProfileByUniqueIdAttributes(int directoryId, String uniqueId, Attribute[] values) throws Exception, altitude.integrationServer.exceptions.ISException Updates a contact profile.- Parameters:
directoryId- Identifier of the directory.uniqueId- Unique identifier.values- The contact profile attributes to update.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
updateDirectory
void updateDirectory(String directoryName, DirectoryUpdateRequest request) throws Exception, altitude.integrationServer.exceptions.ISException Updates a directory.- Parameters:
directoryName- Name of the directory.request- Describes what to update.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-