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);
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
10 | |
7 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 |