Search in sources :

Example 16 with Session

use of com.runwaysdk.session.Session in project geoprism-registry by terraframe.

the class ListTypeService method createEntries.

@Request(RequestType.SESSION)
public JsonObject createEntries(String sessionId, String oid) {
    ListType mList = ListType.get(oid);
    mList.createEntries(null);
    ((Session) Session.getCurrentSession()).reloadPermissions();
    return mList.toJSON(true);
}
Also used : ListType(net.geoprism.registry.ListType) Session(com.runwaysdk.session.Session) Request(com.runwaysdk.session.Request)

Aggregations

Session (com.runwaysdk.session.Session)16 Request (com.runwaysdk.session.Request)10 Transaction (com.runwaysdk.dataaccess.transaction.Transaction)4 ListType (net.geoprism.registry.ListType)4 GlobalNotificationMessage (net.geoprism.registry.ws.GlobalNotificationMessage)3 JsonObject (com.google.gson.JsonObject)2 DataNotFoundException (com.runwaysdk.dataaccess.cache.DataNotFoundException)2 SupportedLocaleIF (com.runwaysdk.localization.SupportedLocaleIF)2 SupportedLocale (com.runwaysdk.system.metadata.SupportedLocale)2 BusinessType (net.geoprism.registry.BusinessType)2 ListTypeVersion (net.geoprism.registry.ListTypeVersion)2 ServerGeoObjectType (net.geoprism.registry.model.ServerGeoObjectType)2 WMSService (net.geoprism.registry.service.WMSService)2 LocalizedValueStore (com.runwaysdk.localization.LocalizedValueStore)1 MdAttributeConcrete (com.runwaysdk.system.metadata.MdAttributeConcrete)1 Date (java.util.Date)1 DirectedAcyclicGraphType (net.geoprism.registry.DirectedAcyclicGraphType)1 InvalidMasterListException (net.geoprism.registry.InvalidMasterListException)1 ListTypeEntry (net.geoprism.registry.ListTypeEntry)1 UndirectedGraphType (net.geoprism.registry.UndirectedGraphType)1