private List <dtoModuleActionControl> AnalyzeActions(dtoModuleDisplayActionInitializer dto, StandardActionType actionsToDisplay)
        {
            List <dtoModuleActionControl> actions = new List <dtoModuleActionControl>();

            View.ContainerCSS = dto.ContainerCSS;
            View.IconSize     = dto.IconSize;

            if (dto.Link == null || dto.Link.DestinationItem == null)
            {
                View.DisplayEmptyAction();
            }
            else
            {
                View.Display = dto.Display;
                liteBaseCommunityFile item = CurrentManager.Get <liteBaseCommunityFile>(dto.Link.DestinationItem.ObjectLongID);
                View.ItemType = RepositoryItemType.None;
                if (item == null || (dto.Link.DestinationItem.ObjectLongID == 0 && (dto.Link.Action == (int)CoreModuleRepository.ActionType.CreateFolder || dto.Link.Action == (int)CoreModuleRepository.ActionType.CreateFolder)))
                {
                    View.DisplayRemovedObject();
                }
                else
                {
                    View.ItemType = item.RepositoryItemType;
                    if (dto.PlaceHolders.Where(p => !String.IsNullOrEmpty(p.Text)).Any() && (Display(dto.Display, DisplayActionMode.defaultAction) || Display(dto.Display, DisplayActionMode.text)))
                    {
                        View.DisplayPlaceHolders(dto.PlaceHolders.Where(p => !String.IsNullOrEmpty(p.Text)).ToList());
                    }
                    actions = AnalyzeModuleLinkItem(dto.Link, item, dto.Display, actionsToDisplay);
                }
            }
            return(actions);
        }
        private List <dtoModuleActionControl> InitializeControlByLink(dtoModuleDisplayActionInitializer dto, StandardActionType actionsToDisplay)
        {
            List <dtoModuleActionControl> actions = new List <dtoModuleActionControl>();

            if (dto.Link == null || dto.Link.DestinationItem == null)     //|| UserContext.isAnonymous
            {
                View.DisplayEmptyAction();
            }
            else if (dto.Link.DestinationItem.ServiceCode == CoreModuleRepository.UniqueID)
            {
                View.ItemIdentifier = "link_" + dto.Link.Id.ToString();
                actions             = AnalyzeActions(dto, actionsToDisplay);
            }
            else
            {
                View.DisplayEmptyAction();
            }
            return(actions);
        }
 public List <dtoModuleActionControl> InitRemoteControlView(dtoModuleDisplayActionInitializer dto, StandardActionType actionsToDisplay)
 {
     View.InsideOtherModule = true;
     return(InitializeControlByLink(dto, actionsToDisplay));
 }
 public void InitView(dtoModuleDisplayActionInitializer dto, StandardActionType actionsToDisplay)
 {
     View.InsideOtherModule = true;
     InitializeControlByLink(dto, actionsToDisplay);
 }
 public void InitView(dtoModuleDisplayActionInitializer dto)
 {
     View.InsideOtherModule = true;
     InitializeControlByLink(dto, (Display(dto.Display, DisplayActionMode.defaultAction) ? StandardActionType.Play : StandardActionType.None));
 }