public void createShortInboxContent(IEnterpriseSession enterpriseSession,
int folderId) throws SDKException {
IInfoStore infoStore = (IInfoStore) enterpriseSession
.getService("InfoStore");
IPluginMgr pluginMgr = infoStore.getPluginMgr();
IInbox iInbox = infoStore.getMyInbox();
IInfoObjects infoObjects = infoStore.query("SELECT * FROM CI_INFOOBJECTS WHERE SI_PARENTID = "
+ iInbox.getID());
for (int i = 0; i < infoObjects.size(); i++) {
IInfoObject infoObject = (IInfoObject) infoObjects.get(i);
IPluginInfo pluginInfo = pluginMgr
.getPluginInfo("CrystalEnterprise.Shortcut");
IInfoObjects infoObject1 = infoStore.newInfoObjectCollection();
infoObject1.add(pluginInfo);
IShortcut shortcut = (IShortcut) infoObject1.get(0);
shortcut.setTargetID(infoObject.getID());
shortcut.setTitle(infoObject.getTitle() + "_" + infoObject.getID());
shortcut.properties().setProperty(CePropertyID.SI_PARENTID,
folderId);
infoStore.commit(infoObject1);
}
}