Skip to content

Commit

Permalink
SAK-29118 add copyright alert to content feed
Browse files Browse the repository at this point in the history
  • Loading branch information
bethkirschner committed May 11, 2015
1 parent b820401 commit 2b7d52f
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -305,14 +305,15 @@ private void setContentItemValues(ContentEntity entity,
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();
item.setVisible( !entity.isHidden() && entity.isAvailable() );
item.setHidden( entity.isHidden() );
if(entity.getReleaseDate() != null) {
item.setFromDate(entity.getReleaseDate().toStringGmtFull());
}
item.setFromDate(entity.getReleaseDate().toStringGmtFull());
}
if(entity.getRetractDate()!=null) {
item.setEndDate(entity.getRetractDate().toStringGmtFull());
item.setEndDate(entity.getRetractDate().toStringGmtFull());
}
item.setCopyrightAlert(props.getProperty(props.getNamePropCopyrightAlert()) );
}

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

@Getter @Setter
private String endDate;

@Getter @Setter
private String copyrightAlert;
}

/**
Expand Down

0 comments on commit 2b7d52f

Please sign in to comment.