de.kiezatlas.angebote
public class AngebotPlugin extends de.deepamehta.core.osgi.PluginActivator implements AngebotService, de.deepamehta.core.service.event.PostCreateTopicListener
ANGEBOT, ANGEBOT_ASSIGNMENT, ANGEBOT_BESCHREIBUNG, ANGEBOT_KONTAKT, ANGEBOT_NAME, ANGEBOT_WEBPAGE, ASSIGNMENT_BESCHREIBUNG, ASSIGNMENT_EDGE, ASSIGNMENT_KONTAKT, PROP_ANGEBOT_END_TIME, PROP_ANGEBOT_START_TIME
Constructor and Description |
---|
AngebotPlugin() |
Modifier and Type | Method and Description |
---|---|
de.deepamehta.core.Association |
createAngebotsAssignment(de.deepamehta.core.model.AssociationModel assocModel,
long fromDate,
long toDate)
Creates an association of type "ka2.angebot.assignment" with two properties (timestamp "from" and "to").
|
void |
deleteAngebotsAssignment(long assocId)
Deletes an association of type "ka2.angebot.assignment" with two properties (timestamp "from" and "to").
|
List<de.deepamehta.core.Topic> |
getAllAngebotsinfoTopicsFilteredByTime(long nowDate)
Fetches all Angebotsinfos with a _current_ (now gt from && now st to) Geo Object Assignment.
|
InputStream |
getAngebotAssignmentView(String id) |
InputStream |
getAngebotDetailView(String id) |
InputStream |
getAngebotEditView(String id) |
List<de.deepamehta.core.RelatedTopic> |
getAngeboteTopics(long geoObjectId)
Fetches all assigned angebotsinfo topics by geo object id.
|
List<de.deepamehta.core.RelatedTopic> |
getAngeboteTopicsByGeoObject(de.deepamehta.core.Topic geoObject) |
List<de.deepamehta.core.RelatedTopic> |
getAngeboteTopicsByUri(String topicId)
Fetches all assigned angebotsinfo topics by topic uri (through passing the kiezatlas 1 topic id).
|
InputStream |
getAngeboteView() |
InputStream |
getAngebotListView() |
Angebotsinfos |
getAngebotsinfo(long topicId) |
List<AngebotsinfosAssigned> |
getAngebotsinfoAssignments(long topicId) |
List<AngebotsinfosAssigned> |
getAngebotsinfosAssigned(de.deepamehta.core.Topic geoObject) |
List<Angebotsinfos> |
getAngebotsinfosByTimestamp(long timestamp) |
List<de.deepamehta.core.RelatedTopic> |
getAssignmentsByGeoObjectIds(String payloadListing)
Fethes all Angebotsinfos for the given list (JSON Array) of geo object ids.
|
List<AngebotsinfosAssigned> |
getCurrentAngebotsinfosAssigned(de.deepamehta.core.Topic geoObject) |
List<de.deepamehta.core.RelatedTopic> |
getGeoObjectTopicsByAngebot(de.deepamehta.core.Topic angebot) |
List<AngebotsinfosAssigned> |
getUsersAngebotsinfoAssignments(long topicId) |
Angebotsinfos |
getUsersAngebotsinfos(long topicId) |
List<de.deepamehta.core.Topic> |
getUsersAngebotsinfoTopics() |
String |
hasAngeboteWorkspaceMembership()
Custom authorization utility method checking membership of requesting user to "Angebote" workspace.
|
void |
postCreateTopic(de.deepamehta.core.Topic topic)
Associates each Angebot to the currently logged in username who issued the creation (request).
|
List<Angebotsinfos> |
searchAngebotsinfosByText(String query,
String location,
String radius,
long timestamp)
Builds up a list of search results (Geo Objects to be displayed in a map) by text query.
|
de.deepamehta.core.Association |
updateAngebotsAssignmentDate(long assocId,
long fromDate,
long toDate)
Updates an association of type "ka2.angebot.assignment" with its two properties (timestamp "from" and "to").
|
public InputStream getAngebotListView()
public InputStream getAngebotAssignmentView(String id)
public InputStream getAngebotEditView(String id)
public InputStream getAngebotDetailView(String id)
public String hasAngeboteWorkspaceMembership()
public List<de.deepamehta.core.RelatedTopic> getAngeboteTopics(long geoObjectId)
getAngeboteTopics
in interface AngebotService
long
- geoObjectIdpublic List<de.deepamehta.core.RelatedTopic> getAngeboteTopicsByUri(String topicId)
getAngeboteTopicsByUri
in interface AngebotService
String
- topicIdpublic List<de.deepamehta.core.RelatedTopic> getAssignmentsByGeoObjectIds(String payloadListing)
getAssignmentsByGeoObjectIds
in interface AngebotService
payloadListing
- String (Semicolon separated list of ids)public InputStream getAngeboteView()
public List<de.deepamehta.core.Topic> getUsersAngebotsinfoTopics()
getUsersAngebotsinfoTopics
in interface AngebotService
public Angebotsinfos getAngebotsinfo(long topicId)
getAngebotsinfo
in interface AngebotService
public Angebotsinfos getUsersAngebotsinfos(long topicId)
getUsersAngebotsinfos
in interface AngebotService
public List<AngebotsinfosAssigned> getAngebotsinfoAssignments(long topicId)
public List<AngebotsinfosAssigned> getUsersAngebotsinfoAssignments(long topicId)
public de.deepamehta.core.Association createAngebotsAssignment(de.deepamehta.core.model.AssociationModel assocModel, long fromDate, long toDate)
public de.deepamehta.core.Association updateAngebotsAssignmentDate(long assocId, long fromDate, long toDate)
public void deleteAngebotsAssignment(long assocId)
public List<Angebotsinfos> getAngebotsinfosByTimestamp(long timestamp)
public List<Angebotsinfos> searchAngebotsinfosByText(String query, String location, String radius, long timestamp)
searchAngebotsinfosByText
in interface AngebotService
query
- location
- public List<de.deepamehta.core.Topic> getAllAngebotsinfoTopicsFilteredByTime(long nowDate)
AngebotService
getAllAngebotsinfoTopicsFilteredByTime
in interface AngebotService
public void postCreateTopic(de.deepamehta.core.Topic topic)
postCreateTopic
in interface de.deepamehta.core.service.event.PostCreateTopicListener
public List<de.deepamehta.core.RelatedTopic> getAngeboteTopicsByGeoObject(de.deepamehta.core.Topic geoObject)
getAngeboteTopicsByGeoObject
in interface AngebotService
public List<AngebotsinfosAssigned> getAngebotsinfosAssigned(de.deepamehta.core.Topic geoObject)
getAngebotsinfosAssigned
in interface AngebotService
public List<AngebotsinfosAssigned> getCurrentAngebotsinfosAssigned(de.deepamehta.core.Topic geoObject)
getCurrentAngebotsinfosAssigned
in interface AngebotService
public List<de.deepamehta.core.RelatedTopic> getGeoObjectTopicsByAngebot(de.deepamehta.core.Topic angebot)
getGeoObjectTopicsByAngebot
in interface AngebotService
Copyright © 2016. All Rights Reserved.