Skip to content

Commit

Permalink
Merge pull request sakaiproject#248 from sakaiproject/revert-243-master
Browse files Browse the repository at this point in the history
Revert "SAK-29118 add copyrightAlert to Content entity broker feed"
  • Loading branch information
ottenhoff committed Mar 4, 2015
2 parents d63844e + 023e7d1 commit eefdb97
Showing 1 changed file with 17 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -297,26 +297,23 @@ private List<ContentItem> getSiteListItems(String siteId) {
* @param item
* @param props
*/
private void setContentItemValues(ContentEntity entity,
ContentItem item, ResourceProperties props) {
item.setTitle(props.getProperty(ResourceProperties.PROP_DISPLAY_NAME));
item.setDescription(props.getProperty(ResourceProperties.PROP_DESCRIPTION));
item.setUrl(entity.getUrl());
item.setAuthor(getDisplayName(props.getProperty(ResourceProperties.PROP_CREATOR)));
item.setModifiedDate(props.getProperty(ResourceProperties.PROP_MODIFIED_DATE));
item.setContainer(entity.getContainingCollection().getReference());
item.isVisible = !entity.isHidden() && entity.isAvailable();
item.isHidden = entity.isHidden();
if(entity.getReleaseDate() != null) {
item.setFromDate(entity.getReleaseDate().toStringGmtFull());
}
if(entity.getRetractDate()!=null) {
item.setEndDate(entity.getRetractDate().toStringGmtFull());
item.setEndDate(entity.getRetractDate().toStringGmtFull());
}
item.copyrightAlert = props.getProperty(props.getNamePropCopyrightAlert());

}
private void setContentItemValues(ContentEntity entity,
ContentItem item, ResourceProperties props) {
item.setTitle(props.getProperty(ResourceProperties.PROP_DISPLAY_NAME));
item.setDescription(props.getProperty(ResourceProperties.PROP_DESCRIPTION));
item.setUrl(entity.getUrl());
item.setAuthor(getDisplayName(props.getProperty(ResourceProperties.PROP_CREATOR)));
item.setModifiedDate(props.getProperty(ResourceProperties.PROP_MODIFIED_DATE));
item.setContainer(entity.getContainingCollection().getReference());
item.isVisible = !entity.isHidden() && entity.isAvailable();
item.isHidden = entity.isHidden();
if(entity.getReleaseDate() != null) {
item.setFromDate(entity.getReleaseDate().toStringGmtFull());
}
if(entity.getRetractDate()!=null) {
item.setEndDate(entity.getRetractDate().toStringGmtFull());
}
}

/**
*
Expand Down Expand Up @@ -514,9 +511,6 @@ public static class ContentItem {

@Getter @Setter
private String endDate;

@Getter @Setter
private String copyrightAlert;
}

/**
Expand Down

0 comments on commit eefdb97

Please sign in to comment.