Need Help.... Consider Please

6 posts, 0 answers
  1. jagadish kumar
    jagadish kumar avatar
    6 posts
    Member since:
    Mar 2010

    Posted 15 Jul 2010 Link to this post

    Hi,

    i posted one thread on last day but till now i didn't get any reply for that thread...

    so again i can express the thread,

    1. Is possible to do all (Database CRUD Operations) in sitefinity Environment and moreover how to use that Open Access Data source and rad controls in sitefinity environment......
    2.If yes, Please tell me how to do that and develop it
    3.if No, how can i do all those things...

    Please reply me soon... please........ i trust you all..


    Thank You..............
    Jagadish
  2. Alexander
    Admin
    Alexander avatar
    727 posts

    Posted 15 Jul 2010 Link to this post

    Hello jagadish kumar,

    Sorry for the delayed reply, we were quite busy with the Q2 release the last days. What you are trying to achieve could be possible but before giving you any directions we would like to know the version of Sitefinity that you are using - is it the new 4.0 or an older one? This is important because the steps you would have to perform would be different.

    Sincerely yours,
    Alexander
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. jagadish kumar
    jagadish kumar avatar
    6 posts
    Member since:
    Mar 2010

    Posted 15 Jul 2010 Link to this post

    Hello,

    Thank for your reply... and i am using 4.0 CTP evaluation version.... so guide me now how can i achieve that....


    Please reply me soon

  5. jagadish kumar
    jagadish kumar avatar
    6 posts
    Member since:
    Mar 2010

    Posted 16 Jul 2010 Link to this post

    Hello All,

    Please just answer my posts which posted on yesterday........ Please guide me to develop apllication using sitefinity 4.0 CTP Evaluation version... i felt it is quite easy to develop some application in asp.net so please guide me sooon.......


    I hope you all

    Thanks
    Jagadish
  6. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 19 Jul 2010 Link to this post

    SItefinity 4 CTP isn't buildable, it's a super early release tech preview

    That being said, the buildable beta should be thursday or early next week.
  7. Ivan Dimitrov
    Admin
    Ivan Dimitrov avatar
    78 posts

    Posted 21 Jul 2010 Link to this post

    Hi ,

    Sitefinity 4.0 CTP is still under development and its API changes dynamically. You can use Open Access with Sitefintiy and RadControls in the same way as for each other web application. Sitefinity is just consumer for Open Access and its functionality. Sitefinity has its own data providers  and persistence classes which use Open Access to commit changes. You can extend the custom providers ( once we finish the development ) by inheriting from the data classes. For instance for Events you should inherit from Telerik.Sitefinity.Modules.Events.Data.OpenAccessEventProvider where you can override some of the base methods or add a new one using OpenAcess. Another option is creating a custom provide from scratch. Generally the provider should inherit ContentDataProviderBase and implement IOpenAccessDataProvider interface.

    Below are two samples - delete and create items

    public override SomeItem CreateItem(Guid id)
    {
        var item = new SomeItem(ApplicationName, id);
        item.Owner = SecurityManager.GetCurrentUserId();
        ((IDataItem)item).Provider = this;
     
       t
        var securityRoot = this.GetSecurityRoot();
        if (securityRoot != null)
        {
            this.providerDecorator.CreatePermissionInheritanceAssociation(securityRoot, item);
        }
        else
        {
            var msg = Res.Get<SecurityResources>().NoSecurityRoot;
            msg = string.Format(msg, typeof(SomeItem).AssemblyQualifiedName);
            throw new InvalidOperationException(msg);
        }
     
        if (id != Guid.Empty)
        {
            this.GetScope().Add(item);
        }
        return item;
    }
     
     
    public override void Delete(SomeItem itemToDelete)
    {
        var scope = this.GetScope();
        
        var securityRoot = this.GetSecurityRoot();
        if (securityRoot != null)
        {
            List<PermissionsInheritanceMap> parentInheritors = securityRoot.PermissionChildren.Where(c => c.ChildObjectId == itemToDelete.Id).ToList();
            for (int inheritor = 0; inheritor < parentInheritors.Count(); inheritor++)
            {
                securityRoot.PermissionChildren.Remove(parentInheritors[inheritor]);
            }
        }
        this.providerDecorator.DeletePermissions(itemToDelete);
        if (scope != null)
            scope.Remove(itemToDelete);
    }




    Sincerely yours,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top
DevCraft banner