public class KiezatlasPlugin extends PluginActivator implements KiezatlasService, PostUpdateTopicListener, PreSendTopicListener
Modifier and Type | Field and Description |
---|---|
private AccessControlService |
accessControlService |
private FacetsService |
facetsService |
private static String |
GEO_OBJECT_KEYWORD_PROPERTY |
private static String |
GEO_OBJECT_OWNER_PROPERTY |
private GeomapsService |
geomapsService |
private static String |
KA2_GEO_OBJECT_URI_PREFIX |
private Logger |
logger |
private static String |
ROLE_TYPE_FACET_TYPE |
private static String |
ROLE_TYPE_GEOMAP |
private static String |
ROLE_TYPE_WEBSITE |
private TimeService |
timeService |
private static String |
WEBSITE_FACET_TYPES |
private static String |
WEBSITE_GEOMAP |
private WorkspacesService |
workspaceService |
bundle, dms
GEO_OBJECT, GEO_OBJECT_ADDRESS, GEO_OBJECT_NAME, KIEZATLAS_WORKSPACE_NAME, KIEZATLAS_WORKSPACE_SHARING_MODE, KIEZATLAS_WORKSPACE_URI, WEBSITE
Constructor and Description |
---|
KiezatlasPlugin() |
Modifier and Type | Method and Description |
---|---|
Association |
addGeoObjectToWebsite(long geoObjectId,
long siteId) |
javax.ws.rs.core.Response |
createGeoObjectAttribution(long id,
String owner,
String key) |
Topic |
createWebsite(String siteName,
String siteUri) |
private void |
enrichWithFacets(Topic geoObject,
ResultList<RelatedTopic> facetTypes) |
private void |
enrichWithMultiFacet(Topic geoObject,
String facetTypeUri) |
private void |
enrichWithSingleFacet(Topic geoObject,
String facetTypeUri) |
private List<Topic> |
fetchGeoObjects(long geomapId) |
List<Topic> |
getAllCriteria()
Returns all Kiezatlas criteria existing in the DB.
|
private AssociationDefinition |
getAssocDef(String facetTypeUri) |
private String |
getChildTypeUri(String facetTypeUri) |
private Topic |
getFacettedBezirkChildTopic(Topic facettedTopic) |
Topic |
getFacettedBezirksregionChildTopic(Topic facettedTopic)
This facet depends/just exists after installation of the dm4-kiezatlas-etl plugin.
|
private Topic |
getFacettedContactChildTopic(Topic facettedTopic) |
private ResultList<RelatedTopic> |
getFacetTypes()
Returns the facet types for the current topicmap, or null if the facet types can't be determined.
|
ResultList<RelatedTopic> |
getFacetTypes(long websiteId)
Returns the facet types assigned to the given Kiezatlas Website.
|
GeoCoordinate |
getGeoCoordinateByGeoObject(Topic geoObject)
Fetches Geo Coordinate facet related to a Geo Objects Address (!) topic.
|
private Topic |
getGeoObject(Topic geoObjectName) |
String |
getGeoObjectAttribution(Topic geoObject) |
List<Topic> |
getGeoObjects(long geomapId)
Returns all Geo Objects assigned to the given geomap.
|
List<RelatedTopic> |
getGeoObjectsByCategory(long categoryId)
Returns all Geo Objects assigned to the given category.
|
Topic |
getImageFileFacetByGeoObject(Topic geoObject)
This facet depends/just exists after installation of the dm4-kiezatlas-etl plugin.
|
List<SocialInstitutionObject> |
getInstitutionsMissingBacklink() |
List<SocialInstitutionObject> |
getInstitutionsMissingBezirk() |
InputStream |
getKiezatlasAdministrationPage()
Fetches a simple page rendering objects for kiez-administrators.
|
ResultList<RelatedTopic> |
getParentRelatedAggregatedGeoObjects(Topic bezirksFacet) |
List<SocialInstitutionObject> |
getSiteInstitutions(long topicId) |
Topic |
getWebsite(long geomapId)
Returns the "Kiezatlas Website" topic the given geomap is assigned to.
|
private boolean |
hasSiteAssociation(Topic geoObject,
long siteId) |
private boolean |
isGeomap(long topicmapId) |
private boolean |
isMultiFacet(String facetTypeUri) |
void |
postUpdateTopic(Topic topic,
TopicModel newModel,
TopicModel oldModel) |
void |
preSendTopic(Topic topic) |
GroupedGeoObjects |
searchCategories(String searchTerm,
long clock)
Searches for categories that match the search term (case-insensitive substring search)
and returns all Geo Objects of those categories, grouped by category.
|
GeoObjects |
searchGeoObjectNames(String searchTerm,
long clock)
Used by famportal editorial tool.
|
private void |
updateFacets(Topic geoObject,
ResultList<RelatedTopic> facetTypes,
TopicModel newModel) |
void |
updateImageFileFacet(Topic geoObject,
String imageFilePath) |
getBundleContext, getPluginName, getStaticResource, getUri, init, preInstall, publishFileSystem, serviceArrived, serviceGone, setCoreService, shutdown, start, stop, toString
private static final String KA2_GEO_OBJECT_URI_PREFIX
private static final String GEO_OBJECT_OWNER_PROPERTY
private static final String GEO_OBJECT_KEYWORD_PROPERTY
private static final String WEBSITE_GEOMAP
private static final String ROLE_TYPE_WEBSITE
private static final String ROLE_TYPE_GEOMAP
private static final String WEBSITE_FACET_TYPES
private static final String ROLE_TYPE_FACET_TYPE
private GeomapsService geomapsService
private FacetsService facetsService
private TimeService timeService
private AccessControlService accessControlService
private WorkspacesService workspaceService
public KiezatlasPlugin()
public InputStream getKiezatlasAdministrationPage()
public Topic createWebsite(String siteName, String siteUri)
createWebsite
in interface KiezatlasService
public Association addGeoObjectToWebsite(long geoObjectId, long siteId)
addGeoObjectToWebsite
in interface KiezatlasService
public Topic getWebsite(long geomapId)
KiezatlasService
getWebsite
in interface KiezatlasService
public ResultList<RelatedTopic> getFacetTypes(long websiteId)
KiezatlasService
getFacetTypes
in interface KiezatlasService
public List<Topic> getAllCriteria()
KiezatlasService
ka2.criteria.
but does not end with .facet
.getAllCriteria
in interface KiezatlasService
public List<Topic> getGeoObjects(long geomapId)
KiezatlasService
getGeoObjects
in interface KiezatlasService
public List<RelatedTopic> getGeoObjectsByCategory(long categoryId)
KiezatlasService
getGeoObjectsByCategory
in interface KiezatlasService
public GeoObjects searchGeoObjectNames(String searchTerm, long clock)
searchGeoObjectNames
in interface KiezatlasService
clock
- The logical clock value send back to the client (contained in GeoObjects).
Allows the client to order asynchronous responses.public List<SocialInstitutionObject> getInstitutionsMissingBezirk()
public List<SocialInstitutionObject> getInstitutionsMissingBacklink()
public List<SocialInstitutionObject> getSiteInstitutions(long topicId)
public javax.ws.rs.core.Response createGeoObjectAttribution(long id, String owner, String key)
public GroupedGeoObjects searchCategories(String searchTerm, long clock)
KiezatlasService
searchCategories
in interface KiezatlasService
clock
- The logical clock value send back to the client (contained in GroupedGeoObjects).
Allows the client to order asynchronous responses.public GeoCoordinate getGeoCoordinateByGeoObject(Topic geoObject)
KiezatlasService
getGeoCoordinateByGeoObject
in interface KiezatlasService
public String getGeoObjectAttribution(Topic geoObject)
getGeoObjectAttribution
in interface KiezatlasService
public Topic getFacettedBezirksregionChildTopic(Topic facettedTopic)
getFacettedBezirksregionChildTopic
in interface KiezatlasService
public Topic getImageFileFacetByGeoObject(Topic geoObject)
getImageFileFacetByGeoObject
in interface KiezatlasService
public ResultList<RelatedTopic> getParentRelatedAggregatedGeoObjects(Topic bezirksFacet)
getParentRelatedAggregatedGeoObjects
in interface KiezatlasService
public void updateImageFileFacet(Topic geoObject, String imageFilePath)
updateImageFileFacet
in interface KiezatlasService
public void preSendTopic(Topic topic)
preSendTopic
in interface PreSendTopicListener
public void postUpdateTopic(Topic topic, TopicModel newModel, TopicModel oldModel)
postUpdateTopic
in interface PostUpdateTopicListener
private Topic getFacettedContactChildTopic(Topic facettedTopic)
private Topic getFacettedBezirkChildTopic(Topic facettedTopic)
private boolean hasSiteAssociation(Topic geoObject, long siteId)
private void enrichWithFacets(Topic geoObject, ResultList<RelatedTopic> facetTypes)
private void enrichWithSingleFacet(Topic geoObject, String facetTypeUri)
private void enrichWithMultiFacet(Topic geoObject, String facetTypeUri)
private void updateFacets(Topic geoObject, ResultList<RelatedTopic> facetTypes, TopicModel newModel)
private ResultList<RelatedTopic> getFacetTypes()
null
.private List<Topic> fetchGeoObjects(long geomapId)
private Topic getGeoObject(Topic geoObjectName)
private boolean isGeomap(long topicmapId)
private boolean isMultiFacet(String facetTypeUri)
private String getChildTypeUri(String facetTypeUri)
private AssociationDefinition getAssocDef(String facetTypeUri)
Copyright © 2016. All Rights Reserved.