Search in sources :

Example 1 with AlbumImpl

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;
}
Also used : AlbumImpl(org.apache.shindig.social.core.model.AlbumImpl) Album(org.apache.shindig.social.opensocial.model.Album)

Aggregations

AlbumImpl (org.apache.shindig.social.core.model.AlbumImpl)1 Album (org.apache.shindig.social.opensocial.model.Album)1