Exemplo n.º 1
0
 /// <summary>
 /// Interim helping hand till the block action model is resolved. Block/Alert and Workflow instance
 /// arent going to be IAction3 actions any longer but should be an integral part of the engine.
 /// </summary>
 /// <param name="action"></param>
 /// <returns></returns>
 public static bool IsBlockAction(IAction3 action)
 {
     return IsBlockAction( action.GetType().FullName );
 }
Exemplo n.º 2
0
        /// <summary>
        /// Populate the IResourceAction with the IAction3
        /// </summary>
        /// <param name="action">The action being used to populate the ResourceAction</param>
        public void SetAction(IAction3 action)
        {
            if (string.IsNullOrEmpty(action.Name))
                m_name = "Action_" + Guid.NewGuid().ToString();
            else
                m_name = action.Name;

            m_SupportedFileCollectionCapabilities = SupportedFileSet.CopyFileCollection(action.SupportedFileCollection);
            m_SupportedFileCollectionSetting = SupportedFileSet.CopyFileCollection(action.SupportedFileCollection);

            m_isExplicit = action.GetType().FullName.StartsWith("Workshare.Policy.Actions.BlockUserAction");
            m_languageSupport = action.LanguageSupport;
            m_canCoexist = !action.GetType().FullName.StartsWith("Workshare.Policy.Actions.BlockUserAction");
            m_template = false;
            m_blocking = action.GetType().FullName.StartsWith("Workshare.Policy.Actions.BlockUserAction");
            if (m_blocking)
            {
                m_allowTransparent = false;
            }

            m_supportsContainers = action.Capabilities.SupportsContainers;
            m_supportsMime = action.Capabilities.SupportsMime;
        }