Exemple #1
0
        public PersistentPermissionObject AddPermission(IPermission permission)
        {
            PersistentPermissionObject result = new PersistentPermissionObject(Session, permission);

            PersistentPermissions.Add(result);
            return(result);
        }
        IXPSimpleObject IXpoCloneable.CloneTo(Type targetType)
        {
            if (!typeof(PersistentPermissionObject).IsAssignableFrom(targetType))
            {
                return(null);
            }
            PersistentPermissionObject result = (PersistentPermissionObject)ReflectionHelper.CreateObject(GetType(), Session);

            result.Group = Group;
            result.SerializedPermission = SerializedPermission;
            return(result);
        }