예제 #1
0
        public void RegisterPermissions(IPermissionRegistrarController permissionController)
        {
            permissionController.Register(new Permission(
                                              SharePointPermissionIds.ViewLibrary,
                                              Permissions.ViewLibraryName,
                                              Permissions.ViewLibraryDescription,
                                              translatableController,
                                              LibraryApplicationType.Id,
                                              new PermissionConfiguration
            {
                Joinless = new JoinlessGroupPermissionConfiguration {
                    Administrators = true, Moderators = true, RegisteredUsers = true, Everyone = true
                },
                PublicOpen = new MembershipGroupPermissionConfiguration {
                    Owners = true, Managers = true, Everyone = true, Members = true
                },
                PublicClosed = new MembershipGroupPermissionConfiguration {
                    Owners = true, Managers = true, Everyone = true, Members = true
                },
                PrivateListed = new MembershipGroupPermissionConfiguration {
                    Owners = true, Managers = true, Members = true
                },
                PrivateUnlisted = new MembershipGroupPermissionConfiguration {
                    Owners = true, Managers = true, Members = true
                }
            }));

            permissionController.Register(new Permission(
                                              SharePointPermissionIds.ViewList,
                                              Permissions.ViewListName,
                                              Permissions.ViewListDescription,
                                              translatableController,
                                              ListApplicationType.Id,
                                              new PermissionConfiguration
            {
                Joinless = new JoinlessGroupPermissionConfiguration {
                    Administrators = true, Moderators = true, RegisteredUsers = true, Everyone = true, Owners = true
                },
                PublicOpen = new MembershipGroupPermissionConfiguration {
                    Owners = true, Managers = true, Everyone = true, Members = true
                },
                PublicClosed = new MembershipGroupPermissionConfiguration {
                    Owners = true, Managers = true, Everyone = true, Members = true
                },
                PrivateListed = new MembershipGroupPermissionConfiguration {
                    Owners = true, Managers = true, Members = true
                },
                PrivateUnlisted = new MembershipGroupPermissionConfiguration {
                    Owners = true, Managers = true, Members = true
                }
            }));
        }
예제 #2
0
        public void RegisterPermissions(IPermissionRegistrarController permissionController)
        {
            ApplicationType groupType = PublicApi.ApplicationTypes.List().FirstOrDefault(a => a.Name.Equals("group", StringComparison.OrdinalIgnoreCase));

            if (groupType != null)
            {
                permissionController.Register(new Permission(EditMetaDataPermission, "metadata_updatepage", "metadata_updatepagedescription", _controller, groupType.Id.Value,
                                                             new PermissionConfiguration()
                {
                    Joinless = new JoinlessGroupPermissionConfiguration {
                        Administrators = true
                    },
                    PublicOpen = new MembershipGroupPermissionConfiguration {
                        Owners = true
                    },
                    PublicClosed = new MembershipGroupPermissionConfiguration {
                        Owners = true
                    },
                    PrivateListed = new MembershipGroupPermissionConfiguration {
                        Owners = true
                    },
                    PrivateUnlisted = new MembershipGroupPermissionConfiguration {
                        Owners = true
                    }
                }));
            }
        }
예제 #3
0
 public void RegisterPermissions(IPermissionRegistrarController permissionController)
 {
     permissionController.Register(new Permission(CustomEditorSourceButton, "customeditor_source", "customeditor_sourcedescription", _controller, Telligent.Evolution.Api.Content.ContentTypes.RootApplication,
                                                  new PermissionConfiguration()
     {
     }));
 }
 public void RegisterPermissions(IPermissionRegistrarController permissionController)
 {
     permissionController.Register(new Permission(CustomEditorSourceButton, "customeditor_source", "customeditor_sourcedescription", _controller, Telligent.Evolution.Api.Content.ContentTypes.RootApplication,
         new PermissionConfiguration()
         {
         }));
 }
        public void RegisterPermissions(IPermissionRegistrarController permissionController)
        {
            ApplicationType groupType = PublicApi.ApplicationTypes.List().FirstOrDefault(a => a.Name.Equals("group", StringComparison.OrdinalIgnoreCase));

            if (groupType != null)
            {
                permissionController.Register(new Permission(EditInlineContentPermission, "inlinecontent_editcontent", "inlinecontent_editcontentdescription", _controller, groupType.Id.Value,
                    new PermissionConfiguration()
                    {
                        Joinless = new JoinlessGroupPermissionConfiguration { Administrators = true },
                        PublicOpen = new MembershipGroupPermissionConfiguration { Owners = true },
                        PublicClosed = new MembershipGroupPermissionConfiguration { Owners = true },
                        PrivateListed = new MembershipGroupPermissionConfiguration { Owners = true },
                        PrivateUnlisted = new MembershipGroupPermissionConfiguration { Owners = true }
                    }));
            }
        }
 public void RegisterPermissions(IPermissionRegistrarController permissionController)
 {
     permissionController.Register(
         new Permission(
             CreateMapId,
             "Permission_MapBook_CreateMap_Name",
             "Permission_MapBook_CreateMap_Description",
             _translation,
             TEApi.Groups.ApplicationTypeId,
             new PermissionConfiguration()
     {
         Joinless = new JoinlessGroupPermissionConfiguration {
             Administrators = true, Moderators = false, RegisteredUsers = false, Owners = true, Everyone = false
         },
         PublicOpen = new MembershipGroupPermissionConfiguration {
             Owners = true, Managers = false, Members = false, Everyone = false
         },
         PublicClosed = new MembershipGroupPermissionConfiguration {
             Owners = true, Managers = false, Members = false, Everyone = false
         },
         PrivateListed = new MembershipGroupPermissionConfiguration {
             Owners = true, Managers = false, Members = false
         },
         PrivateUnlisted = new MembershipGroupPermissionConfiguration {
             Owners = true, Managers = false, Members = false
         }
     }
             )
         );
     permissionController.Register(
         new Permission(
             ReadMapId,
             "Permission_MapBook_ReadMap_Name",
             "Permission_MapBook_ReadMap_Description",
             _translation,
             TEApi.Groups.ApplicationTypeId,
             new PermissionConfiguration()
     {
         Joinless = new JoinlessGroupPermissionConfiguration {
             Administrators = true, Moderators = true, RegisteredUsers = true, Owners = true, Everyone = true
         },
         PublicOpen = new MembershipGroupPermissionConfiguration {
             Owners = true, Managers = true, Members = true, Everyone = true
         },
         PublicClosed = new MembershipGroupPermissionConfiguration {
             Owners = true, Managers = true, Members = true, Everyone = true
         },
         PrivateListed = new MembershipGroupPermissionConfiguration {
             Owners = true, Managers = true, Members = true
         },
         PrivateUnlisted = new MembershipGroupPermissionConfiguration {
             Owners = true, Managers = true, Members = true
         }
     }
             )
         );
     permissionController.Register(
         new Permission(
             UpdateMapId,
             "Permission_MapBook_UpdateMap_Name",
             "Permission_MapBook_UpdateMap_Description",
             _translation,
             TEApi.Groups.ApplicationTypeId,
             new PermissionConfiguration()
     {
         Joinless = new JoinlessGroupPermissionConfiguration {
             Administrators = true, Moderators = false, RegisteredUsers = false, Owners = true, Everyone = false
         },
         PublicOpen = new MembershipGroupPermissionConfiguration {
             Owners = true, Managers = false, Members = false, Everyone = false
         },
         PublicClosed = new MembershipGroupPermissionConfiguration {
             Owners = true, Managers = false, Members = false, Everyone = false
         },
         PrivateListed = new MembershipGroupPermissionConfiguration {
             Owners = true, Managers = false, Members = false
         },
         PrivateUnlisted = new MembershipGroupPermissionConfiguration {
             Owners = true, Managers = false, Members = false
         }
     }
             )
         );
     permissionController.Register(
         new Permission(
             DeleteMapId,
             "Permission_MapBook_DeleteMap_Name",
             "Permission_MapBook_DeleteMap_Description",
             _translation,
             TEApi.Groups.ApplicationTypeId,
             new PermissionConfiguration()
     {
         Joinless = new JoinlessGroupPermissionConfiguration {
             Administrators = true, Moderators = false, RegisteredUsers = false, Owners = true, Everyone = false
         },
         PublicOpen = new MembershipGroupPermissionConfiguration {
             Owners = true, Managers = true, Members = false, Everyone = false
         },
         PublicClosed = new MembershipGroupPermissionConfiguration {
             Owners = true, Managers = true, Members = true, Everyone = false
         },
         PrivateListed = new MembershipGroupPermissionConfiguration {
             Owners = true, Managers = true, Members = true
         },
         PrivateUnlisted = new MembershipGroupPermissionConfiguration {
             Owners = true, Managers = true, Members = true
         }
     }
             )
         );
 }
예제 #7
0
        void IPermissionRegistrar.RegisterPermissions(IPermissionRegistrarController permissionController)
        {
            permissionController.Register(
                new Permission(
                    PollPermissions.ReadPolls,
                    "Permission_Polling_ReadPolls",
                    "Permission_Polling_ReadPolls_Description",
                    _translatablePluginController,
                    TEApi.Groups.ApplicationTypeId,
                    new PermissionConfiguration()
            {
                Joinless = new JoinlessGroupPermissionConfiguration {
                    Administrators = true, Moderators = true, Owners = true, RegisteredUsers = true, Everyone = true
                },
                PublicOpen = new MembershipGroupPermissionConfiguration {
                    Owners = true, Managers = true, Members = true, RegisteredUsers = true, Everyone = true
                },
                PublicClosed = new MembershipGroupPermissionConfiguration {
                    Owners = true, Managers = true, Members = true, RegisteredUsers = true, Everyone = true
                },
                PrivateListed = new MembershipGroupPermissionConfiguration {
                    Owners = true, Managers = true, Members = true
                },
                PrivateUnlisted = new MembershipGroupPermissionConfiguration {
                    Owners = true, Managers = true, Members = true
                }
            }));
            permissionController.Register(
                new Permission(
                    PollPermissions.CreatePolls,
                    "Permission_Polling_CreatePolls",
                    "Permission_Polling_CreatePolls_Description",
                    _translatablePluginController,
                    TEApi.Groups.ApplicationTypeId,
                    new PermissionConfiguration()
            {
                Joinless = new JoinlessGroupPermissionConfiguration {
                    Administrators = true, Moderators = true, Owners = true, RegisteredUsers = true
                },
                PublicOpen = new MembershipGroupPermissionConfiguration {
                    Owners = true, Managers = true, Members = true
                },
                PublicClosed = new MembershipGroupPermissionConfiguration {
                    Owners = true, Managers = true, Members = true
                },
                PrivateListed = new MembershipGroupPermissionConfiguration {
                    Owners = true, Managers = true, Members = true
                },
                PrivateUnlisted = new MembershipGroupPermissionConfiguration {
                    Owners = true, Managers = true, Members = true
                }
            }));

            permissionController.Register(
                new Permission(
                    PollPermissions.VoteOnPolls,
                    "Permission_Polling_VoteOnPolls",
                    "Permission_Polling_VoteOnPolls_Description",
                    _translatablePluginController,
                    TEApi.Groups.ApplicationTypeId,
                    new PermissionConfiguration()
            {
                Joinless = new JoinlessGroupPermissionConfiguration {
                    Administrators = true, Moderators = true, Owners = true, RegisteredUsers = true
                },
                PublicOpen = new MembershipGroupPermissionConfiguration {
                    Owners = true, Managers = true, Members = true
                },
                PublicClosed = new MembershipGroupPermissionConfiguration {
                    Owners = true, Managers = true, Members = true
                },
                PrivateListed = new MembershipGroupPermissionConfiguration {
                    Owners = true, Managers = true, Members = true
                },
                PrivateUnlisted = new MembershipGroupPermissionConfiguration {
                    Owners = true, Managers = true, Members = true
                }
            }));
            permissionController.Register(
                new Permission(
                    PollPermissions.ModeratePolls,
                    "Permission_Polling_ModeratePolls",
                    "Permission_Polling_ModeratePolls_Description",
                    _translatablePluginController,
                    TEApi.Groups.ApplicationTypeId,
                    new PermissionConfiguration()
            {
                Joinless = new JoinlessGroupPermissionConfiguration {
                    Administrators = true, Moderators = true, Owners = true
                },
                PublicOpen = new MembershipGroupPermissionConfiguration {
                    Owners = true, Managers = true
                },
                PublicClosed = new MembershipGroupPermissionConfiguration {
                    Owners = true, Managers = true
                },
                PrivateListed = new MembershipGroupPermissionConfiguration {
                    Owners = true, Managers = true
                },
                PrivateUnlisted = new MembershipGroupPermissionConfiguration {
                    Owners = true, Managers = true
                }
            }));
        }
예제 #8
0
        void IPermissionRegistrar.RegisterPermissions(IPermissionRegistrarController permissionController)
        {
            permissionController.Register(
                new Permission(
                    PollPermissions.ReadPolls,
                    "Permission_Polling_ReadPolls",
                    "Permission_Polling_ReadPolls_Description",
                    _translatablePluginController,
                    TEApi.Groups.ApplicationTypeId,
                    new PermissionConfiguration()
                    {
                        Joinless = new JoinlessGroupPermissionConfiguration { Administrators = true, Moderators = true, Owners = true, RegisteredUsers = true, Everyone = true },
                        PublicOpen = new MembershipGroupPermissionConfiguration { Owners = true, Managers = true, Members = true, RegisteredUsers = true, Everyone = true },
                        PublicClosed = new MembershipGroupPermissionConfiguration { Owners = true, Managers = true, Members = true, RegisteredUsers = true, Everyone = true },
                        PrivateListed = new MembershipGroupPermissionConfiguration { Owners = true, Managers = true, Members = true },
                        PrivateUnlisted = new MembershipGroupPermissionConfiguration { Owners = true, Managers = true, Members = true }
                    }));
            permissionController.Register(
                new Permission(
                    PollPermissions.CreatePolls,
                    "Permission_Polling_CreatePolls",
                    "Permission_Polling_CreatePolls_Description",
                    _translatablePluginController,
                    TEApi.Groups.ApplicationTypeId,
                    new PermissionConfiguration()
                    {
                        Joinless = new JoinlessGroupPermissionConfiguration { Administrators = true, Moderators = true, Owners = true, RegisteredUsers = true },
                        PublicOpen = new MembershipGroupPermissionConfiguration { Owners = true, Managers = true, Members = true },
                        PublicClosed = new MembershipGroupPermissionConfiguration { Owners = true, Managers = true, Members = true },
                        PrivateListed = new MembershipGroupPermissionConfiguration { Owners = true, Managers = true, Members = true },
                        PrivateUnlisted = new MembershipGroupPermissionConfiguration { Owners = true, Managers = true, Members = true }
                    }));

            permissionController.Register(
                new Permission(
                    PollPermissions.VoteOnPolls,
                    "Permission_Polling_VoteOnPolls",
                    "Permission_Polling_VoteOnPolls_Description",
                    _translatablePluginController,
                    TEApi.Groups.ApplicationTypeId,
                    new PermissionConfiguration()
                    {
                        Joinless = new JoinlessGroupPermissionConfiguration { Administrators = true, Moderators = true, Owners = true, RegisteredUsers = true },
                        PublicOpen = new MembershipGroupPermissionConfiguration { Owners = true, Managers = true, Members = true },
                        PublicClosed = new MembershipGroupPermissionConfiguration { Owners = true, Managers = true, Members = true },
                        PrivateListed = new MembershipGroupPermissionConfiguration { Owners = true, Managers = true, Members = true },
                        PrivateUnlisted = new MembershipGroupPermissionConfiguration { Owners = true, Managers = true, Members = true }
                    }));
            permissionController.Register(
                new Permission(
                    PollPermissions.ModeratePolls,
                    "Permission_Polling_ModeratePolls",
                    "Permission_Polling_ModeratePolls_Description",
                    _translatablePluginController,
                    TEApi.Groups.ApplicationTypeId,
                    new PermissionConfiguration()
                    {
                        Joinless = new JoinlessGroupPermissionConfiguration { Administrators = true, Moderators = true, Owners = true },
                        PublicOpen = new MembershipGroupPermissionConfiguration { Owners = true, Managers = true },
                        PublicClosed = new MembershipGroupPermissionConfiguration { Owners = true, Managers = true },
                        PrivateListed = new MembershipGroupPermissionConfiguration { Owners = true, Managers = true },
                        PrivateUnlisted = new MembershipGroupPermissionConfiguration { Owners = true, Managers = true }
                    }));
        }