CSLA .NET

Vibrant discussion about CSLA .NET and using the framework to build great business applications.

Forum has moved

New location: CSLA .NET forum


CSLA .NET Resources:
  • CSLA .NET forum
  • CSLA .NET home page
  • Browse Site by Tags

    Showing related tags and posts across the entire site.
    • Authorization rule & object state

      I often find that there's a need to do authorization not just based on the user's roles (permissions), but also based on some state in the object itself. A common scenario is only the creator of a particular object can edit it (but they can be viewed by all). Or a property value should only be...
      Posted to CSLA .NET discussion by Andy on Tue, Sep 9 2014
    • Per-property authorization rule that depends on async, lazy-loaded property

      What is the best approach for implementing a per-property authorization rule that depends on the result of an async, lazy-loaded property? Here's my suggestion: [Serializable] public sealed class Parent : BusinessBase<Parent> { public static readonly PropertyInfo<string> NameProperty...
      Posted to CSLA .NET discussion by Chattererman on Tue, May 7 2013
    • Authorization rules not running for new object

      When I create a new instance of a business object, the authorization rules do not run. I have a custom authorization rule that changes access to a property based on the state of another property. This rule runs as expected when fetching an existing object and editing it, but it seems like the authorization...
      Posted to CSLA .NET discussion by jmuller on Thu, Feb 14 2013
    • Authorization returning reason with details about denied action

      Hi all, I have an UI scenario in which I need to display to user the details about why he was denied to do something, for example not to remove some item in the list because some other objects in other business models might be using it. Looking at the Csla authorization code I thought I've found...
      Posted to CSLA .NET discussion by Miroslav Galajda on Mon, Aug 20 2012
    • AuthorizationActions.ExecuteMethod

      Hi Can anyone explain me why in BussinessRules class there is no overload static HasPermission method that accept Csla.Core.IMemberInfo parameter? Whenever I want to check permission for a shared(static) method , I am forcing to create an instance of that class and then test the permission. like this...
      Posted to CSLA .NET discussion by Alireza Majma on Sat, Jan 7 2012
    • Customize Authorization Rules Messages.

      Hello all. I'm using Authorization Rules in my Business Objects but when any Authorization Rule is broken the message provided on the exception do not fits my needs. I was reviewing the implementation of the DataPortal class and CSLA throws a Security Exception and loads the exception message from...
      Posted to CSLA .NET discussion by omarcusido on Fri, Oct 14 2011
    • Where is Execute command authorization rule?

      Why there is no ExecuteObject/ExecuteCommand per type authorization rule/action? I can see that AddObjectAuthorizationRules() is being call... Thanks Ivan UPDATE : ok, after looking through csla source, I figured out that EditObject permission is being checked while executing DataPortal_Execute method...
      Posted to CSLA .NET discussion by mesh on Mon, Aug 29 2011
    • ReadWriteAuthorization WinForms Base Class

      Hi All, We have encountered a problem with the ReadWriteAuthorization control which I believe is related to how we've created our BO. It currently works for all other WinForms except one. We have created a base class that contains our Property Methods (let's call it Contact) derived from BusinessBase...
      Posted to CSLA .NET discussion by Phlar on Tue, Jul 12 2011
    • 4.10 Permission based authorization example - am I doing it right?

      I'm updating an extremely ancient CSLA (1.x era) project to 4.10 and our original authorization is permission based. Users can set each users rights to 84 types of objects (RootObjectTypes in the code below) within our app at 4 different levels (No access, read only, read/write, delete). Rights are...
      Posted to CSLA .NET discussion by JCardina on Wed, Feb 16 2011
    • Internal GetObject bypassing Authorization rules. Is that possible?

      Hello all, I have one business object (BO1) that needs to load another business object (BO2) to obtain some data. The user may not have the required permission to load BO2, but that doesn't matter because BO1 is not going to expose BO2, it is just going to use BO2's data. Can I write an internal...
      Posted to CSLA .NET discussion by correodemarques on Wed, Feb 2 2011
    • ReadWriteAuthorization and CheckBox

      I hope this is a quick/simple question. I have a form with 5 Text boxes and 1 Check box. The Edit permissions properly grey's out all text boxes for those users whom only have Read-Only permissions. However the check box is still editable (clickable). The current databinding is being done on the...
      Posted to CSLA .NET discussion by Phlar on Tue, Jan 25 2011
    • Changing CanEditObject After loaded

      i have a person object. This person Object has the Shared function of CanEditObject. This is working just fine using the permissions/roles for the currentuser. However, this permission: PERMISSION_PERSON_EDIT_DEMOGRAPHICS, sometimes need to be overridden based on values returned within the object. So...
      Posted to CSLA .NET discussion by nj609eagle on Mon, Dec 20 2010
    • CSLA 4 Authorization

      Quick question. In CSLA 3.x we had InstanceDenyRead / InstanceDenyWrite. What's the equivalent for that in CSLA 4.0? Thanks
      Posted to CSLA .NET discussion by Jaans on Fri, Dec 10 2010
    • Authorization capability in 4.0

      I'm currently developing a Csla solution using 3.8.2 and was wondering if authorization was more flexible/customizable in Csla 4.0.x. I have to work with complex auth/validation logic and the line between what is considered authorization or validation is blurry. I started by reading this post http...
      Posted to CSLA .NET discussion by Brett Mathe on Thu, Dec 9 2010
    • Auth Rules of CSLA.net 4 - RuleHandler -RuleArgs

      Csla.Rules.RuleHandler is replace with what in Auth Rules of CSLA.net 4 ? sample: private class EmailRule<SupplierMarketingER> : Csla.Rules.BusinessRule { protected override void Execute(RuleContext context) { var target = (SupplierMarketingER)context.Target; Csla.Rules.RuleHandler emailRule =...
      Posted to CSLA .NET discussion by JJ on Thu, Nov 11 2010
    • Re: CSLA.net 4 Authorization rules delete instance problem

      how can I send my project code to you? Will you compile it to see it happen? The xaml "remove button" trigger the viewmodel function: "void RemoveInstance" it run this code in the function: TestER TestER_ = (TestER)stack_.DataContext; //TestER BusinessBase class TestERL TestERL_ ...
      Posted to CSLA .NET discussion by JJ on Fri, Nov 5 2010
    • AuthorizationRule CSLA.net 4

      why can I add a priority to a BusinessRule but not a AuthorizationRule in CSLA.net 4 ***BusinessRule : private class MoreInfoMayDelete<T> : Csla.Rules.BusinessRule { public MoreInfoMayDelete(Csla.Core.IPropertyInfo primaryProperty, List<Csla.Core.IPropertyInfo> affectedProperties, int pPriority...
      Posted to CSLA .NET discussion by JJ on Thu, Nov 4 2010
    • AddBusinessRules & AddObjectAuthorizationRules getting called twice per type

      If I put a debug statement in my AddBusinessRules & AddObjectAuthorizationRules functions, like so: #if SILVERLIGHT System.Diagnostics.Debug.WriteLine("SL AddObjectAuthorizationRules() called for type: " + typeof(T)); #else System.Diagnostics.Debug.WriteLine("NET AddObjectAuthorizationRules...
      Posted to CSLA .NET discussion by marthac on Fri, Oct 15 2010
    • Type level AuthorizationRules and Child Objects

      This is regarding CSLA 3.8.3 We (my colleague and I) have a parent collection that is used to populated grids. Our child objects housed by the collection have type level authorization rules. However these rules are not being honored. The BusinessListBase is happily firing any of the Child... dataportal...
      Posted to CSLA .NET discussion by Carl on Fri, Sep 24 2010
    • ObjectAuthorizationRules system perfomance

      Hello everybody: I have a doubt concerning to the Project class in the PTracker. The developer implemented a function like this: Public Shared Function CanAddObject() As Boolean Return Csla.ApplicationContext.User.IsInRole("ProjectManager") End Function Is that function the same that doing...
      Posted to CSLA .NET discussion by Lazaro Santin on Sun, Aug 1 2010
    Page 1 of 1 (20 items)

    Copyright (c) 2006-2014 Marimer LLC. All rights reserved.
    Email admin@lhotka.net for support.
    Powered by Community Server (Non-Commercial Edition), by Telligent Systems