/// <summary> /// Remove Permision Library /// </summary> /// <param name="web"></param> /// <param name="group">Name Group</param> /// <returns></returns> public static bool RemovePermisionSite(this SPWeb web, string group) { try { var encSite = new Entities.Artefacts.Site(web, Logger); return(encSite.RemovePermision(group)); } catch (Exception exception) { Logger.Error(string.Concat("Error Create Site: ", exception.Message)); return(false); } }
/// <summary> /// Create SubSite in SharePoint /// </summary> /// <param name="web"></param> /// <param name="urlWeb">Url para la Web que vamos a crear </param> /// <param name="title"></param> /// <param name="description"></param> /// <param name="breakPermisions"></param> /// <param name="template">Nombre de la definición de sitios por ejemplo Team Template el valor que se debe pasar es "STS"</param> /// <returns></returns> public static bool CreateSubSite(this SPWeb web, string urlWeb, string title, string description, string template, bool breakPermisions) { try { var encSite = new Entities.Artefacts.Site(web, Logger); var templateValue = string.IsNullOrEmpty(template) ? SPWebTemplate.WebTemplateSTS : template; return(encSite.CreateSite(urlWeb, title, description, templateValue, web.Language, breakPermisions)); } catch (Exception exception) { Logger.Error(string.Concat("Error Create SubSite: ", exception.Message)); return(false); } }
/// <summary> /// Create SubSite in SharePoint /// </summary> /// <param name="web"></param> /// <param name="urlWeb">Url para la Web que vamos a crear </param> /// <param name="title"></param> /// <param name="description"></param> /// <param name="breakPermisions"></param> /// <param name="template">Nombre de la definición de sitios por ejemplo Team Template el valor que se debe pasar es "STS"</param> /// <returns></returns> public static bool CreateSubSite(this SPWeb web, string urlWeb, string title, string description, string template, bool breakPermisions) { try { var encSite = new Entities.Artefacts.Site(web, Logger); var templateValue = string.IsNullOrEmpty(template) ? SPWebTemplate.WebTemplateSTS : template; return encSite.CreateSite(urlWeb, title, description, templateValue, web.Language, breakPermisions); } catch (Exception exception) { Logger.Error(string.Concat("Error Create SubSite: ", exception.Message)); return false; } }
/// <summary> /// Remove Permision Library /// </summary> /// <param name="web"></param> /// <param name="group">Name Group</param> /// <returns></returns> public static bool RemovePermisionSite(this SPWeb web, string group) { try { var encSite = new Entities.Artefacts.Site(web, Logger); return encSite.RemovePermision(group); } catch (Exception exception) { Logger.Error(string.Concat("Error Create Site: ", exception.Message)); return false; } }