Vorhandene Communitys abrufen

Um ein Community-Objekt aus dem Repository abzurufen, verwenden Sie RAMSession.getCommunity(String name) oder RAMSession.getCommunity(int communityId).

                //Community nach Name abrufen
                RAMCommunity community = session.getCommunity("My Community");

                //Community nach Datenbank-ID abrufen
                community = session.getCommunity(25);

                //Alle Communitys abrufen
                RAMCommunity[] communities = session.getAllCommunities();

Feedback