Ignore:
Timestamp:
08/11/14 16:07:55 (10 years ago)
Author:
olhsha@mpi.nl
Message:

Added group service. Tested via the tomcat on loclahots (test URI and postman), old unit tests are adjusted and work well. Todo: retest on localhost tomcat, look at run-time exceptions, add new unit tests, adjust front-end

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ComponentRegistry/trunk/ComponentRegistry/src/main/java/clarin/cmdi/componentregistry/rss/RssCreatorDescriptions.java

    r4098 r5549  
    1414    /**
    1515     *
    16      * @param userspace if "true" then profiles and components from the user's
     16     * @param isPrivate if "true" then profiles and components from the user's
    1717     * workspace, otherwise -- public (uri-parameter)
    1818     * @param baseURI where the database is located
     
    2323     * @param comparator compare descriptions by dates
    2424     */
    25     public RssCreatorDescriptions(boolean userspace, String baseURI, String descriptionType,
     25    public RssCreatorDescriptions(boolean isPrivate, String baseURI, String descriptionType,
    2626            int limit, List<T> descriptions, Comparator<T> comparator) {
    27         super(userspace, baseURI, limit, descriptions);
     27        super(isPrivate, baseURI, limit, descriptions);
    2828        setChannelLink(baseURI + "/");
    29         setChannelTitle((userspace ? "Your workspace " : "Public ") + descriptionType);
     29        setChannelTitle((isPrivate ? "Private " : "Public ") + descriptionType);
    3030        setChannelDescription(String.format("News feed for the %s", descriptionType));
    3131        setComparator(comparator);
     
    4141    @Override
    4242    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" : "");
    4444        RssItem retval = new RssItem();
    4545        retval.setDescription(desc.getDescription());
Note: See TracChangeset for help on using the changeset viewer.