use of org.apache.shindig.social.core.model.AlbumImpl in project liferay-ide by liferay.
the class LiferayAlbumService method toAlbum.
protected Album toAlbum(Folder folder, Set<String> fields, SecurityToken securityToken) throws JSONException {
Album album = new AlbumImpl();
album.setDescription(folder.getDescription());
album.setId(String.valueOf(folder.getFolderId()));
album.setOwnerId(String.valueOf(folder.getUserId()));
album.setTitle(folder.getName());
SerializerUtil.copyProperties(folder.getAttributes(), album, _ALBUM_FIELDS);
return album;
}