Changeset 5549 for ComponentRegistry/trunk/ComponentRegistry/src/main/java/clarin/cmdi/componentregistry/rss/RssCreatorDescriptions.java
- Timestamp:
- 08/11/14 16:07:55 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ComponentRegistry/trunk/ComponentRegistry/src/main/java/clarin/cmdi/componentregistry/rss/RssCreatorDescriptions.java
r4098 r5549 14 14 /** 15 15 * 16 * @param userspace if "true" then profiles and components from the user's16 * @param isPrivate if "true" then profiles and components from the user's 17 17 * workspace, otherwise -- public (uri-parameter) 18 18 * @param baseURI where the database is located … … 23 23 * @param comparator compare descriptions by dates 24 24 */ 25 public RssCreatorDescriptions(boolean userspace, String baseURI, String descriptionType,25 public RssCreatorDescriptions(boolean isPrivate, String baseURI, String descriptionType, 26 26 int limit, List<T> descriptions, Comparator<T> comparator) { 27 super( userspace, baseURI, limit, descriptions);27 super(isPrivate, baseURI, limit, descriptions); 28 28 setChannelLink(baseURI + "/"); 29 setChannelTitle(( userspace ? "Your workspace " : "Public ") + descriptionType);29 setChannelTitle((isPrivate ? "Private " : "Public ") + descriptionType); 30 30 setChannelDescription(String.format("News feed for the %s", descriptionType)); 31 31 setComparator(comparator); … … 41 41 @Override 42 42 protected RssItem fromArgToRssItem(T desc) { 43 String href = getBaseURI() + "?item=" + desc.getId() + ( userspace ? "&space=user" : "");43 String href = getBaseURI() + "?item=" + desc.getId() + (isPrivate ? "&space=user" : ""); 44 44 RssItem retval = new RssItem(); 45 45 retval.setDescription(desc.getDescription());
Note: See TracChangeset
for help on using the changeset viewer.