/// <exclude />
        public FlowToken Execute(string serializedEntityToken, string serializedActionToken, ActionToken actionToken, FlowControllerServicesContainer flowControllerServicesContainer)
        {
            PageAddActionToken pageAddActionToken = (PageAddActionToken)actionToken;

            var newPage = DataFacade.BuildNew <IPage>();

            newPage.PageTypeId = pageAddActionToken.PageTypeId;

            var action = DataActionTokenResolverFacade.Resolve(newPage, ((PageAddActionToken)actionToken).ActionIdentifier);

            return(ActionExecutorFacade.Execute(EntityTokenSerializer.Deserialize(serializedEntityToken), action, flowControllerServicesContainer));
        }
Example #2
0
        /// <exclude />
        public static new ActionToken Deserialize(string serializedData)
        {
            Dictionary<string, string> dic = StringConversionServices.ParseKeyValueCollection(serializedData);

            Guid pageTypeId = StringConversionServices.DeserializeValueGuid(dic["_PageTypeId_"]);

            var baseProxyDataActionToken = (ProxyDataActionToken)ProxyDataActionToken.Deserialize(serializedData);

            var result = new PageAddActionToken(pageTypeId, baseProxyDataActionToken.ActionIdentifier, baseProxyDataActionToken.PermissionTypes) { DoIgnoreEntityTokenLocking = baseProxyDataActionToken.IgnoreEntityTokenLocking };

            return result;
        }
Example #3
0
        /// <exclude />
        public new static ActionToken Deserialize(string serializedData)
        {
            Dictionary <string, string> dic = StringConversionServices.ParseKeyValueCollection(serializedData);

            Guid pageTypeId = StringConversionServices.DeserializeValueGuid(dic["_PageTypeId_"]);

            var baseProxyDataActionToken = (ProxyDataActionToken)ProxyDataActionToken.Deserialize(serializedData);

            var result = new PageAddActionToken(pageTypeId, baseProxyDataActionToken.ActionIdentifier, baseProxyDataActionToken.PermissionTypes)
            {
                DoIgnoreEntityTokenLocking = baseProxyDataActionToken.IgnoreEntityTokenLocking
            };

            return(result);
        }