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, dmsGEO_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, toStringprivate 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 KiezatlasServicepublic Association addGeoObjectToWebsite(long geoObjectId, long siteId)
addGeoObjectToWebsite in interface KiezatlasServicepublic Topic getWebsite(long geomapId)
KiezatlasServicegetWebsite in interface KiezatlasServicepublic ResultList<RelatedTopic> getFacetTypes(long websiteId)
KiezatlasServicegetFacetTypes in interface KiezatlasServicepublic List<Topic> getAllCriteria()
KiezatlasServiceka2.criteria.
but does not end with .facet.getAllCriteria in interface KiezatlasServicepublic List<Topic> getGeoObjects(long geomapId)
KiezatlasServicegetGeoObjects in interface KiezatlasServicepublic List<RelatedTopic> getGeoObjectsByCategory(long categoryId)
KiezatlasServicegetGeoObjectsByCategory in interface KiezatlasServicepublic GeoObjects searchGeoObjectNames(String searchTerm, long clock)
searchGeoObjectNames in interface KiezatlasServiceclock - 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)
KiezatlasServicesearchCategories in interface KiezatlasServiceclock - The logical clock value send back to the client (contained in GroupedGeoObjects).
Allows the client to order asynchronous responses.public GeoCoordinate getGeoCoordinateByGeoObject(Topic geoObject)
KiezatlasServicegetGeoCoordinateByGeoObject in interface KiezatlasServicepublic String getGeoObjectAttribution(Topic geoObject)
getGeoObjectAttribution in interface KiezatlasServicepublic Topic getFacettedBezirksregionChildTopic(Topic facettedTopic)
getFacettedBezirksregionChildTopic in interface KiezatlasServicepublic Topic getImageFileFacetByGeoObject(Topic geoObject)
getImageFileFacetByGeoObject in interface KiezatlasServicepublic ResultList<RelatedTopic> getParentRelatedAggregatedGeoObjects(Topic bezirksFacet)
getParentRelatedAggregatedGeoObjects in interface KiezatlasServicepublic void updateImageFileFacet(Topic geoObject, String imageFilePath)
updateImageFileFacet in interface KiezatlasServicepublic void preSendTopic(Topic topic)
preSendTopic in interface PreSendTopicListenerpublic void postUpdateTopic(Topic topic, TopicModel newModel, TopicModel oldModel)
postUpdateTopic in interface PostUpdateTopicListenerprivate 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.