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.
    • Type level authorization rules

      I'm looking through the code for Csla, and it seems the check for things like GetObject are done client side before the call is made to the data portal, which is good in that a remote call won't be made if the user lacks permission. However it doesn't look like the check is repeated on the...
      Posted to CSLA .NET discussion by Andy on Wed, Feb 11 2015
    • Triggering Authorization Rules on the Server

      I've set up static Auth Rules on my object by creating a method on it: public static void AddObjectAuthorizationRules() In which I add to the static BusinessRules collection: BusinessRules.AddRule(typeof(MyObject), ... etc I have CSLA set for 3-Tier usage, and I can see that the Authorization rules...
      Posted to CSLA .NET discussion by andrew123 on Thu, Jul 24 2014
    • AddObjectAuthorizationRules() Implementation Question

      My team and I have been using CSLA.NET for a while now and recently we got the requirement to update how roles are processed. In classic ASP.NET Membership you have a role. For simplicity, let's just say it is the "ReadOnly" role. To limit BusinessBase authorization for the that role, you...
      Posted to CSLA .NET discussion by cslasoup on Tue, Jul 15 2014
    • Athorization in CSLA 4

      Hi, I am transitioning from CSLA3 to 4. The new eBooks only really talk about IsInRole. I liked how the old CSLA used AccessGroups and Roles. i.e. "Administrator" group access could have many "Role" types. "Job_Read", "Job_Write", "Task_Read", "Role_thatAllowsYouToDoSomethingElse"...
      Posted to CSLA .NET discussion by Mar72Vin on Wed, Apr 10 2013
    • CSLA 4 Authorization rules supressing

      Is it possible supress authorization rules in CSLA 4? I need to write a GET method, this method will be internal and it will be call from another classes with no authorization needed. Thansks for your suggests. Lazaro M
      Posted to CSLA .NET discussion by Lazaro Santin on Tue, Mar 12 2013
    • Async rule called during DataPortal_Fetch

      Hi, I am using CSLA 4.2.2 with Silverlight (love it). I have a question about the use of async rules. I have some BusinessBase objects I fetch from the database.There is the possibility the database data can be incorrect, so I want to call BusinessRules.CheckRules() from within DataPortal_Fetch. In this...
      Posted to CSLA .NET discussion by richardp.au on Thu, Feb 21 2013
    • Authorisation Rule - PerType Property Read/Write How to rule check on type (instead of instance)

      I'm trying to build a custom convention for Caliburn Micro that automatically sets a input control to be ReadOnly/Disabled if the user doesn't have write permission against the Csla Property that is being bound to. Where I'm stuck is to be able to test whether a particular property can be...
      Posted to CSLA .NET discussion by Jaans on Thu, Jan 17 2013
    • Re: Business Rule for Not Allowing Edit or Delete for a Specific Record

      There is support for this - you just have to follow some basic guidelines. BusinessRules at Object level must have ProperyProperty = null. AuthorizationRules for Static methods must have Member = null (CanGetObject, CanCreateObject, CanEditObject, CanDeleteObject) BusinessRules for a Property must have...
      Posted to CSLA .NET discussion by JonnyBee on Sun, Nov 4 2012
    • 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
    • Adding Object Authorization Rules conditionally

      Hi CSLAers: I have a doubt. Is there a way to add an object authorization rule depending a property value? I'm working in CSLA 3.6. I'm trying to do the following: Private Shared Sub AddObjectAuthorizationRules() AuthorizationRules.AllowGet(GetType(MyBO), "canget") AuthorizationRules...
      Posted to CSLA .NET discussion by Lazaro Santin on Fri, Jun 22 2012
    • Apply authorization to childcollection items based on parent property

      I am trying to authorize editing child collection's items based on the value of the root object. Can't seem to find any example in the samples projects nor any mentions in the Csla 4 books. I found many examples on how to authorize modifying properties or executing methods but they all refer...
      Posted to CSLA .NET discussion by Mr X on Sun, Jun 17 2012
    • Re: User/Object Specific Permissions

      Hi! We faced the same need last week and would thought about the same solution than Tiago proposed. We'd be glad to be able to access the criteria in our own rule... Thanks to seriously consider this! Etienne
      Posted to CSLA .NET discussion by edore on Mon, Apr 9 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
    • Re: CanExecute() Authorization Design Scope Question

      I am not convinced that there's a right or wrong answer. However, I view authorization rules as business rules , not just as a role-based security concept. There are many examples where authorization depends on the state of the object, the context of the application, and the identity of the user...
      Posted to CSLA .NET discussion by RockfordLhotka on Thu, Jan 5 2012
    • replacement for 3.8.x 'deny' auth rules in 4.x?

      Hi, I'm updating an older 3.8 CSLA project to CSLA 4 which uses deny... authorization rules used beside allow-rules. Unfortunatly actually I'm unable to find something comparable in 4, where all auth-actions are allowing, none denying. (and IsInRole used beside IsNotInRole results in an exception...
      Posted to CSLA .NET discussion by vschaak on Fri, Oct 7 2011
    • Re: switchable mandatory fields in wpf

      This is exactly what custom authorization rules are used to implement. If you implement this through custom authorization rules, the CanWrite property of your PropertyStatus or PropertyInfo controls will expose the results as bindable values, and then you just bind the UI controls' IsEnabled properties...
      Posted to CSLA .NET discussion by RockfordLhotka on Fri, Sep 30 2011
    • CslaGenFork Rules sample v. - new OBJECT rule CollectionPopulated

      Download the Rules sample CslaGenFork has a new feature: Import Business and Authorization Rules from DLL . This sample is the missing complement to this feature. It includes a DLL rules library you can freely use in your projects. Full source code is available. This release added object rules base classes...
      Posted to CSLA .NET discussion by Tiago Freitas Leal on Sat, Sep 3 2011
    • CslaGenFork released the Rules sample v.

      Download the Rules sample NOTE - Release updated Csla.dll 4.2.0 to Revision 5238 - 2011 Aug 28 and added metadata to the assemblies. CslaGenFork has a new feature: Import Business and Authorization Rules from DLL . This sample is the missing complement to this feature. It includes a DLL rules...
      Posted to CSLA .NET discussion by Tiago Freitas Leal on Sat, Aug 27 2011

    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