Advertisement
Guest User

Untitled

a guest
Jan 17th, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.68 KB | None | 0 0
  1. package com.trulia.aem.dam.core;
  2.  
  3. import org.osgi.service.metatype.annotations.AttributeDefinition;
  4. import org.osgi.service.metatype.annotations.AttributeType;
  5. import org.osgi.service.metatype.annotations.ObjectClassDefinition;
  6.  
  7. @ObjectClassDefinition(name = "com.trulia.aem.dam.TruliaDAMSettingsConfiguration", description = "Service Configuration")
  8. public @interface TruliaDAMSettingsConfiguration {
  9.  
  10. @AttributeDefinition(name ="Google Maps API Key", description="Google Maps API Key", type = AttributeType.STRING)
  11. String getGoogleMapsAPIKey() default "" ;
  12.  
  13. @AttributeDefinition(name ="Google Maps Zoom Level", description="Google Maps Zoom Level for DAM Map View", type = AttributeType.INTEGER)
  14. int getGoogleMapsZoomLevel() default 13;
  15.  
  16. @AttributeDefinition(name ="Location API Headers", description="")
  17. String[] getLocationAPIHeaders() default {"x-api-key,8277ec85-b52e-4521-b986-6dc137749d03","Accept,application/json","Cookie,GARBAGE","User-Agent,Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:47.0) Gecko/20100101 Firefox/47.0","x-plugin-version,1.0.1"};
  18.  
  19. @AttributeDefinition(name ="Media API Headers", description="")
  20. String[] getMediaAPIHeaders() default {"x-api-key,8277ec85-b52e-4521-b986-6dc137749d03","Accept,application/json","Cookie,GARBAGE","User-Agent,Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:47.0) Gecko/20100101 Firefox/47.0","x-plugin-version,1.0.1"};
  21.  
  22. @AttributeDefinition(name ="API - LocationsforLatLong", description="", type = AttributeType.STRING)
  23. String getAPILocationsforLatLong() default "";
  24.  
  25. @AttributeDefinition(name ="API - LookupNeighborhoodByID", description="", type = AttributeType.STRING)
  26. String getAPILookupNeighborhoodByID() default "";
  27.  
  28. @AttributeDefinition(name ="API - GenerateURL", description="", type = AttributeType.STRING)
  29. String getUrlForGenerateURL() default "https://neighborhood-media-service-stage.trulia-local.com/admin/neighborhoods/%s/collections/%s";
  30.  
  31. @AttributeDefinition(name ="API - CreateCollectionInNeighborhood", description="", type = AttributeType.STRING)
  32. String getUrlForCreateCollectionInNeighborhood() default "https://neighborhood-media-service-stage.trulia-local.com/admin/neighborhoods/%s/collections";
  33.  
  34. @AttributeDefinition(name ="API - GetCollectionById", description="", type = AttributeType.STRING)
  35. String getUrlForGetCollectionById() default "https://neighborhood-media-service-stage.trulia-local.com/admin/neighborhoods/%s/collections/%s";
  36.  
  37. @AttributeDefinition(name ="API - UpdateCollectionOrder", description="", type = AttributeType.STRING)
  38. String getUrlForUpdateCollectionOrder() default "";
  39.  
  40. @AttributeDefinition(name ="API - GetCollectionStatus", description="", type = AttributeType.STRING)
  41. String getUrlForGetCollectionStatus() default "https://neighborhood-media-service-stage.trulia-local.com/admin/neighborhoods/%s/collections/%s/status";
  42.  
  43. @AttributeDefinition(name ="API - AddMediaItemToCollection", description="", type = AttributeType.STRING)
  44. String getUrlForAddMediaItemToCollection() default "https://neighborhood-media-service-stage.trulia-local.com/admin/neighborhoods/%s/collections/%s/items";
  45.  
  46. @AttributeDefinition(name ="API - PreviewURL", description="", type = AttributeType.STRING)
  47. String getUrlForPreviewURL() default "";
  48.  
  49. @AttributeDefinition(name ="API - GetCollectionItems", description="", type = AttributeType.STRING)
  50. String getUrlForGetCollectionItems() default "";
  51.  
  52. @AttributeDefinition(name ="API - UpdateItemInCollection", description="", type = AttributeType.STRING)
  53. String getUrlForUpdateItemInCollection() default "";
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement