Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Deprecated methodsDeprecated methods
Previous
 
Next
New Post
8/8/2011 8:19 AM
 
In testing level 6 DNN, I recompiled my (42+) modules and came across a number of deprecated method issues.
Is there a list of level 5 and 6 depredcated methods and the replacement methods?

regards,
Duncan.
 
New Post
8/8/2011 10:29 AM
 
no, but each obsoleted method should say what version is was deprecated in and the description should also say the name of the new method to use. If that's not the case please log this at support.dotnetnuke.com and we will review the source and add the correct text in.

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
8/8/2011 10:58 AM
 
Thanks, Cathal,
I'm probably looking in the wrong place then... where are the methods described?
at to the mo' I'm looking at 'AddTabPermissions' which appears to have been deprecated
from:
Security.Permissions.TabPermissionController.AddTabPermission
to
DotNetNuke.Data.DataProvider.Instance.AddTabPermission

I can see the logic in this... and I've changed the code - but it isn't working -
I suspect [As I don't code too often...] that I'm making a simple error on the code - is there an example of the new usage?

regards,
Duncan.

 
New Post
8/8/2011 11:55 AM
 
Hi Duncan,

You are correct that the deprecated methods in question do not give any indication of what the recommended replacement might be.  This is probably an oversight that warrants a new work item over at support.dotnetnuke.com.

In your case, you do not want to be working through the permission data provider (notwithstanding the fact that it exposes a method with the same name).  Around DotNetNuke 5.1 all permission accesses were consolidated into a runtime-specified permission provider, and it is through this provider that you want to be making all of your permission-related requests.

There is a code sample in this thread that seems to be reasonably close to what you are trying to achieve.  Though it is a little verbose, it should give you a good idea of what you need to do to add a new page permission.

Hope this helps!

Brandon

Brandon Haynes
BrandonHaynes.org
 
New Post
8/8/2011 11:57 AM
 
Duncan, you shouldn't call dataprovider methods directly, please use methods from the business layer instead, i.e. you should modify the TabPermissionCollection for the tabinfo object and call DotNetNuke.Security.Permissions.SaveTabPermissions(tabInfo)

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Deprecated methodsDeprecated methods


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out