public interface MBManagerInterface
extends java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static int |
ACCESS_FULL |
static int |
ACCESS_NONE |
static int |
ACCESS_READONLY |
static java.lang.String |
PS_NOT_IMPLEMENTED |
Modifier and Type | Method and Description |
---|---|
void |
addFolderPermission(MBFolderInterface fldr,
java.lang.String userEmail,
MBFolderPermissionInterface.FolderPermissionLevel level)
Add user to folder permissions.
|
void |
addFolderPermission(java.lang.String path,
java.lang.String userEmail,
MBFolderPermissionInterface.FolderPermissionLevel level)
Add user to folder permissions.
|
void |
clearAllFolderPermissions(MBFolderInterface fldr)
Clear (delete) all folder permissions.
|
MBEmailAddressInterface |
createAddress()
Create instance of Email Address
|
MBEmailAddressInterface |
createAddress(java.lang.String name,
java.lang.String address)
Create instance of Email Address
|
MBAttachmentInterface |
createAttachment()
Create empty attachment object
|
MBAttachmentInterface |
createAttachment(java.lang.String name,
byte[] content)
Create attachment object with filename and content
|
MBItemInterface |
createEmailItem()
Create Email Item
|
MBFolderIdInterface |
createFolder(MBFolderIdInterface parentId,
java.lang.String name)
Create new folder inside parent folder
|
MBFolderIdInterface |
createFolder(java.lang.String path)
Create folder by given path.
|
MBFolderIdInterface |
createFolderId(java.lang.String id)
Create folder id for string id
|
MBItemInterface |
createPostItem()
Create Post Item
|
void |
deleteFolder(MBFolderInterface folder)
Delete folder
|
boolean |
deleteFolder(java.lang.String path)
Delete folder
|
void |
deleteItem(MBObjectIdInterface itemId)
Delete Item
|
java.util.List<? extends MBFolderInterface> |
findContainedFolders(MBFolderIdInterface parentFolderId)
Get list of folders inside parent folder
|
MBFolderInterface |
findCpRootFolder()
Find root Costpoint root public folder
|
MBFolderInterface |
findFolder(java.lang.String path)
Find folder by full folder path
|
MBFolderInterface |
findFolder(java.lang.String name,
MBFolderIdInterface parentFolderId)
Find folder by name inside parent folder
|
java.util.List<? extends MBObjectIdInterface> |
findFolderItemIds(MBFolderIdInterface folderId,
java.util.List<java.lang.String> contains)
Find Items inside folder - return only IDs
|
java.util.List<? extends MBItemInterface> |
findFolderItems(MBFolderIdInterface folderId,
java.util.List<java.lang.String> contains)
Find Items inside folder - return detailed items
|
boolean |
folderEmailIsUsed(java.lang.String emailAddress)
Verify usage of folder emailAddress
|
MBAttachmentInterface |
getAttachment(java.lang.String attcId)
Get Attachment
|
java.util.List<java.lang.String> |
getCategories()
Get Categories
|
java.lang.String |
getExchangeUPNSuffix()
Get User Principal Name Suffix (usually domain.com) for Exchange Server
|
MBFolderInterface |
getFolder(MBFolderIdInterface folderId)
Get full folder information.
|
MBFolderInterface |
getFolder(java.lang.String path)
Get folder by full folder path
|
java.lang.String |
getFolderEmailAddress(MBFolderInterface fldr)
Get Folder email address.
|
MBItemInterface |
getItem(MBObjectIdInterface objectId)
Get Item by object id
|
MBItemInterface |
getItem(java.lang.String itemId)
Get Item by string id
|
int |
getMBTopicRights(SqlManager sqlM,
java.lang.String topicId)
Get current user rights to particular Exchange folder
|
java.util.List<java.lang.String> |
getWritableMBFolders(SqlManager sqlM,
java.lang.String rsId)
Get list of available full rights folders for posting new messages
Also used to default folder only one is returned
|
boolean |
isConfigured() |
boolean |
isConfigured(java.lang.String systemName) |
MBItemInterface |
saveItem(MBItemInterface item,
MBFolderIdInterface folderId)
Save item to folder
|
void |
sendAndSaveItem(MBItemInterface item,
MBFolderIdInterface folderId)
Send and Save Email Item
|
void |
sendItem(MBItemInterface item)
Send Email Item
|
java.lang.String |
setFolderEmailAddress(java.lang.String path,
java.lang.String emailAddress)
Set email address for the folder
Note: This operation might not succeed because Exchange might not accept requested address if
it is duplicated.
|
void |
setFolderPermissions(MBFolderInterface fldr,
java.util.List<java.lang.String> fullRightsUsers,
java.util.List<java.lang.String> roRightsUsers)
Sett permissions for full rights users and readonly users with the single api call
|
void |
setFolderPermissions(MBFolderInterface fldr,
java.util.List<java.lang.String> users,
MBFolderPermissionInterface.FolderPermissionLevel level)
Set folder permission to specified level for multiple users
|
boolean |
updateFolderEmailAddress(java.lang.String path,
java.lang.String emailAddress)
Update email for folder
|
boolean |
updateMBFolderPermissions(java.lang.String folderName,
SqlManager sqlM,
boolean commit)
Sync Exchange permissions with Costpoint defined access rights for single folder
|
boolean |
updateMBFoldersPermissions(SqlManager sqlM,
boolean commit)
Sync Exchange permissions with Costpoint defined access rights for all folders
|
boolean |
validEmail(java.lang.String emailId)
Validate user email.
|
static final java.lang.String PS_NOT_IMPLEMENTED
static final int ACCESS_FULL
static final int ACCESS_READONLY
static final int ACCESS_NONE
boolean isConfigured()
boolean isConfigured(java.lang.String systemName)
systemName
- system namejava.lang.String getExchangeUPNSuffix() throws DEException
DEException
- in case of the errorMBFolderInterface findCpRootFolder() throws DEException
DEException
- in case of the errorjava.util.List<? extends MBFolderInterface> findContainedFolders(MBFolderIdInterface parentFolderId) throws DEException
parentFolderId
- to look inDEException
- in case of the errorMBFolderInterface findFolder(java.lang.String name, MBFolderIdInterface parentFolderId) throws DEException
name
- to search forparentFolderId
- parent folderDEException
- in case of the errorMBFolderInterface findFolder(java.lang.String path) throws DEException
path
- - full path inside root folder, must not include root folder nameDEException
- in case of the errorMBFolderInterface getFolder(MBFolderIdInterface folderId) throws DEException
folderId
- to report onDEException
- in case of the errorMBFolderInterface getFolder(java.lang.String path) throws DEException
path
- - full path inside root folder, must not include root folderDEException
- in case of the errorvoid deleteFolder(MBFolderInterface folder) throws DEException
folder
- to deleteDEException
- in case of the errorboolean deleteFolder(java.lang.String path) throws DEException
path
- to folder to deleteDEException
- in case of the errorboolean updateFolderEmailAddress(java.lang.String path, java.lang.String emailAddress) throws DEException
path
- emailAddress
- DEException
void addFolderPermission(java.lang.String path, java.lang.String userEmail, MBFolderPermissionInterface.FolderPermissionLevel level) throws DEException
path
- userEmail
- level
- DEException
- in case of the errorvoid addFolderPermission(MBFolderInterface fldr, java.lang.String userEmail, MBFolderPermissionInterface.FolderPermissionLevel level) throws DEException
fldr
- userEmail
- level
- DEException
- in case of the errorvoid setFolderPermissions(MBFolderInterface fldr, java.util.List<java.lang.String> users, MBFolderPermissionInterface.FolderPermissionLevel level) throws DEException
fldr
- users
- level
- DEException
- in case of the errorvoid setFolderPermissions(MBFolderInterface fldr, java.util.List<java.lang.String> fullRightsUsers, java.util.List<java.lang.String> roRightsUsers) throws DEException
fldr
- fullRightsUsers
- roRightsUsers
- DEException
- in case of the errorvoid clearAllFolderPermissions(MBFolderInterface fldr) throws DEException
fldr
- DEException
- in case of the errorMBFolderIdInterface createFolderId(java.lang.String id) throws DEException
id
- DEException
- in case of the errorMBFolderIdInterface createFolder(MBFolderIdInterface parentId, java.lang.String name) throws DEException
parentId
- name
- DEException
- in case of the errorMBFolderIdInterface createFolder(java.lang.String path) throws DEException
path
- to createDEException
- in case of the errorboolean validEmail(java.lang.String emailId) throws DEException
emailId
- to validateDEException
- in case of the errorMBItemInterface createPostItem() throws DEException
DEException
- in case of the errorMBItemInterface createEmailItem() throws DEException
DEException
- in case of the errorMBEmailAddressInterface createAddress()
MBAttachmentInterface createAttachment()
MBAttachmentInterface createAttachment(java.lang.String name, byte[] content)
name
- content
- MBEmailAddressInterface createAddress(java.lang.String name, java.lang.String address)
name
- address
- MBItemInterface saveItem(MBItemInterface item, MBFolderIdInterface folderId) throws DEException
item
- folderId
- DEException
- in case of the errorvoid sendItem(MBItemInterface item) throws DEException
item
- DEException
- in case of the errorvoid sendAndSaveItem(MBItemInterface item, MBFolderIdInterface folderId) throws DEException
item
- DEException
- in case of the errorMBItemInterface getItem(java.lang.String itemId) throws DEException
itemId
- DEException
- in case of the errorMBItemInterface getItem(MBObjectIdInterface objectId) throws DEException
objectId
- DEException
- in case of the errorvoid deleteItem(MBObjectIdInterface itemId) throws DEException
itemId
- DEException
- in case of the errorjava.util.List<? extends MBItemInterface> findFolderItems(MBFolderIdInterface folderId, java.util.List<java.lang.String> contains) throws DEException
folderId
- contains
- DEException
- in case of the errorjava.util.List<? extends MBObjectIdInterface> findFolderItemIds(MBFolderIdInterface folderId, java.util.List<java.lang.String> contains) throws DEException
folderId
- contains
- DEException
- in case of the errorMBAttachmentInterface getAttachment(java.lang.String attcId) throws DEException
attcId
- DEException
- in case of the errorboolean folderEmailIsUsed(java.lang.String emailAddress) throws DEException
emailAddress
- DEException
- in case of the errorjava.lang.String getFolderEmailAddress(MBFolderInterface fldr) throws DEException
fldr
- DEException
- in case of the errorjava.lang.String setFolderEmailAddress(java.lang.String path, java.lang.String emailAddress) throws DEException
path
- emailAddress
- DEException
- in case of the errorjava.util.List<java.lang.String> getCategories() throws DEException
DEException
- in case of the errorboolean updateMBFoldersPermissions(SqlManager sqlM, boolean commit) throws DEException, java.sql.SQLException
sqlM
- commit
- DEException
- in case of the errorjava.sql.SQLException
boolean updateMBFolderPermissions(java.lang.String folderName, SqlManager sqlM, boolean commit) throws DEException, java.sql.SQLException
folderName
- sqlM
- commit
- DEException
- in case of the errorjava.sql.SQLException
int getMBTopicRights(SqlManager sqlM, java.lang.String topicId) throws DEException, java.sql.SQLException
sqlM
- topicId
- DEException
- in case of the errorjava.sql.SQLException
java.util.List<java.lang.String> getWritableMBFolders(SqlManager sqlM, java.lang.String rsId) throws DEException, java.sql.SQLException
sqlM
- rsId
- DEException
- in case of the errorjava.sql.SQLException