예제 #1
0
            public static ItemId GetItemId(IdAndSession idAndSession, StoreId storeId)
            {
                ConcatenatedIdAndChangeKey concatenatedIdAndChangeKey;

                if (idAndSession.Session is PublicFolderSession)
                {
                    concatenatedIdAndChangeKey = IdConverter.GetConcatenatedIdForPublicFolderItem(storeId, StoreId.GetStoreObjectId(idAndSession.ParentFolderId), null);
                }
                else
                {
                    concatenatedIdAndChangeKey = IdConverter.GetConcatenatedId(storeId, idAndSession, null);
                }
                return(new ItemId(concatenatedIdAndChangeKey.Id, concatenatedIdAndChangeKey.ChangeKey));
            }