|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.moyosoft.connector.ms.outlook.folder.OutlookFolder
Field Summary | |
static int |
PERMISSION_CREATE_ASSOCIATED
|
static int |
PERMISSION_CREATE_CONTENTS
|
static int |
PERMISSION_CREATE_HIERARCHY
|
static int |
PERMISSION_DELETE
|
static int |
PERMISSION_MODIFY
|
static int |
PERMISSION_READ
|
Constructor Summary | |
OutlookFolder(com.moyosoft.connector.com.Dispatch dispatch)
|
|
OutlookFolder(OutlookFolder parentFolder,
java.lang.String newFolderName)
Creates a new folder with the specified name |
|
OutlookFolder(OutlookFolder parentFolder,
java.lang.String newFolderName,
FolderType folderType)
Creates a new folder with the specified name and type |
Method Summary | |
void |
addToFavorites()
|
void |
addToFavorites(boolean dontDisplayAddFavoriteDialog)
|
void |
addToFavorites(boolean dontDisplayAddFavoriteDialog,
java.lang.String favoriteName)
|
void |
addToPFFavorites()
|
boolean |
canCreateItems()
Returns true if the current user has permission to create new items in this folder; false otherwise. |
boolean |
canCreateSubfolders()
Returns true if the current user has permission to create sub-folders in this folder; false otherwise. |
boolean |
canDeleteItems()
Returns true if the current user has permission to delete items in this folder; false otherwise. |
boolean |
canReadItems()
Returns true if the current user has permission to read items in this folder; false otherwise. |
OutlookFolder |
copyTo(OutlookFolder destinationFolder)
|
OutlookFolder |
createFolder(java.lang.String pNewFolderName,
FolderType pFolderType)
Create a new folder in this folder. |
OutlookItem |
createItem()
Create a new item in this folder. |
OutlookItem |
createItem(ItemType pType)
Create a new item in this folder. |
void |
delete()
|
void |
display()
|
void |
dispose()
|
java.lang.String |
getAddressBookName()
|
View |
getCurrentView()
|
ItemType |
getDefaultItemType()
|
java.lang.String |
getDescription()
|
com.moyosoft.connector.com.Dispatch |
getDispatch()
|
Explorer |
getExplorer()
|
Explorer |
getExplorer(FolderDisplayMode displayMode)
|
OutlookFolder |
getFolder(java.lang.String folderPath)
Returns a sub-folder for the specified name or path. |
OutlookFolderID |
getFolderId()
|
java.lang.String |
getFolderPath()
|
FoldersCollection |
getFolders()
Retrieve information about Outlook folders. |
int |
getFoldersCount()
|
java.lang.String |
getFullFolderPath()
|
ItemsCollection |
getItems()
Return items in this folders as a collection. |
java.lang.String |
getName()
|
OutlookFolder |
getParentFolder()
|
int |
getPermissions()
Returns the permissions of the folder. |
ShowItemCount |
getShowItemCount()
|
java.lang.String |
getStorePath()
|
FolderStoreType |
getStoreType()
|
int |
getUnReadItemCount()
|
ViewsCollection |
getViews()
|
java.lang.String |
getWebViewURL()
|
boolean |
hasChildren()
|
boolean |
isCustomViewsOnly()
|
boolean |
isInAppFolderSyncObject()
|
boolean |
isSharePointFolder()
|
boolean |
isShowAsOutlookAB()
|
boolean |
isWebViewAllowNavigation()
|
boolean |
isWebViewOn()
|
void |
moveTo(OutlookFolder destinationFolder)
|
void |
setAddressBookName(java.lang.String value)
|
void |
setCustomViewsOnly(boolean value)
|
void |
setDescription(java.lang.String value)
|
void |
setInAppFolderSyncObject(boolean value)
|
void |
setName(java.lang.String value)
|
void |
setShowAsOutlookAB(boolean value)
|
void |
setShowItemCount(ShowItemCount value)
|
void |
setWebViewAllowNavigation(boolean value)
|
void |
setWebViewOn(boolean value)
|
void |
setWebViewURL(java.lang.String value)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int PERMISSION_MODIFY
public static final int PERMISSION_READ
public static final int PERMISSION_DELETE
public static final int PERMISSION_CREATE_HIERARCHY
public static final int PERMISSION_CREATE_CONTENTS
public static final int PERMISSION_CREATE_ASSOCIATED
Constructor Detail |
public OutlookFolder(com.moyosoft.connector.com.Dispatch dispatch)
public OutlookFolder(OutlookFolder parentFolder, java.lang.String newFolderName)
parentFolder
- the parent folder where the new folder will be creatednewFolderName
- new folder's name
com.moyosoft.connector.com.ComponentObjectModelException
- if a COM error occurs.public OutlookFolder(OutlookFolder parentFolder, java.lang.String newFolderName, FolderType folderType)
parentFolder
- the parent folder where the new folder will be creatednewFolderName
- new folder's namefolderType
- new folder's type
com.moyosoft.connector.com.ComponentObjectModelException
- if a COM error occurs.Method Detail |
public com.moyosoft.connector.com.Dispatch getDispatch()
public ItemType getDefaultItemType()
public java.lang.String getDescription()
public void setDescription(java.lang.String value)
public OutlookFolderID getFolderId()
public FoldersCollection getFolders() throws com.moyosoft.connector.com.ComponentObjectModelException
com.moyosoft.connector.com.ComponentObjectModelException
- if a COM error occurs.public OutlookFolder getFolder(java.lang.String folderPath)
public ItemsCollection getItems() throws com.moyosoft.connector.com.ComponentObjectModelException
com.moyosoft.connector.com.ComponentObjectModelException
public java.lang.String getName()
public void setName(java.lang.String value)
public OutlookFolder getParentFolder()
public FolderStoreType getStoreType()
public java.lang.String getStorePath()
public int getUnReadItemCount()
public OutlookFolder copyTo(OutlookFolder destinationFolder)
public void delete()
public void display()
public Explorer getExplorer()
public Explorer getExplorer(FolderDisplayMode displayMode)
public void moveTo(OutlookFolder destinationFolder)
public boolean isWebViewOn()
public void setWebViewOn(boolean value)
public java.lang.String getWebViewURL()
public void setWebViewURL(java.lang.String value)
public boolean isWebViewAllowNavigation()
public void setWebViewAllowNavigation(boolean value)
public void addToPFFavorites()
public java.lang.String getAddressBookName()
public void setAddressBookName(java.lang.String value)
public boolean isShowAsOutlookAB()
public void setShowAsOutlookAB(boolean value)
public java.lang.String getFolderPath()
public void addToFavorites()
public void addToFavorites(boolean dontDisplayAddFavoriteDialog)
public void addToFavorites(boolean dontDisplayAddFavoriteDialog, java.lang.String favoriteName)
public boolean isInAppFolderSyncObject()
public void setInAppFolderSyncObject(boolean value)
public View getCurrentView()
public boolean isCustomViewsOnly()
public void setCustomViewsOnly(boolean value)
public ViewsCollection getViews()
public java.lang.String getFullFolderPath()
public boolean isSharePointFolder()
public ShowItemCount getShowItemCount()
public void setShowItemCount(ShowItemCount value)
public OutlookFolder createFolder(java.lang.String pNewFolderName, FolderType pFolderType) throws com.moyosoft.connector.com.ComponentObjectModelException
pNewFolderName
- new folder's namepFolderType
- new folder's type
com.moyosoft.connector.com.ComponentObjectModelException
public OutlookItem createItem() throws com.moyosoft.connector.com.ComponentObjectModelException
com.moyosoft.connector.com.ComponentObjectModelException
public OutlookItem createItem(ItemType pType) throws com.moyosoft.connector.com.ComponentObjectModelException
pType
- new item's type
com.moyosoft.connector.com.ComponentObjectModelException
public int getFoldersCount()
public boolean hasChildren()
public int getPermissions()
int permissions = folder.getPermissions(); if((permissions & OutlookFolder.PERMISSION_READ) != 0) { // Permission to read items } if((permissions & OutlookFolder.PERMISSION_DELETE) != 0) { // Permission to delete items } if((permissions & OutlookFolder.PERMISSION_CREATE_CONTENTS) != 0) { // Permission to create items } if((permissions & OutlookFolder.PERMISSION_CREATE_HIERARCHY) != 0) { // Permission to create subfolders }
public boolean canReadItems()
public boolean canDeleteItems()
public boolean canCreateItems()
public boolean canCreateSubfolders()
public void dispose()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |