This is a migrated thread and some comments may be shown as answers.

Need Help.... Consider Please

5 Answers 98 Views
Development (API, general questions)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
jagadish kumar
Top achievements
Rank 1
jagadish kumar asked on 15 Jul 2010, 01:39 PM
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

5 Answers, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 15 Jul 2010, 01:53 PM
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
0
jagadish kumar
Top achievements
Rank 1
answered on 15 Jul 2010, 01:57 PM
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

0
jagadish kumar
Top achievements
Rank 1
answered on 16 Jul 2010, 06:19 AM
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
0
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 20 Jul 2010, 02:17 AM
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.
0
Ivan Dimitrov
Telerik team
answered on 21 Jul 2010, 05:10 PM
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
Tags
Development (API, general questions)
Asked by
jagadish kumar
Top achievements
Rank 1
Answers by
Alexander
Telerik team
jagadish kumar
Top achievements
Rank 1
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Ivan Dimitrov
Telerik team
Share this question
or