org.exoplatform.platform.gadget.services.favorite
Class FavoriteRESTService

java.lang.Object
  extended by org.exoplatform.platform.gadget.services.favorite.FavoriteRESTService
All Implemented Interfaces:
org.exoplatform.services.rest.resource.ResourceContainer

public class FavoriteRESTService
extends Object
implements org.exoplatform.services.rest.resource.ResourceContainer

Author:
lamphan AUG 01, 2010

Nested Class Summary
 class FavoriteRESTService.FavoriteNode
           
 class FavoriteRESTService.ListResultNode
           
 
Field Summary
static String[] SPECIFIC_FOLDERS
           
 
Constructor Summary
FavoriteRESTService()
           
 
Method Summary
 List<javax.jcr.Node> getAllFavoritesByUser(String workspace, String repository, javax.jcr.Node userNode)
           
 javax.ws.rs.core.Response getFavoriteByUser(String userName, String showItems)
           
 javax.ws.rs.core.Response getFavoriteByUser(String repoName, String wsName, String userName, String showItems)
           
 javax.ws.rs.core.Response getFavoriteNode(String userName)
           
 void getListDocument(javax.jcr.Node node, List<javax.jcr.Node> listNodes)
           
static String getNodeTypeIcon(javax.jcr.Node node, String appended)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SPECIFIC_FOLDERS

public static final String[] SPECIFIC_FOLDERS
Constructor Detail

FavoriteRESTService

public FavoriteRESTService()
Method Detail

getFavoriteByUser

public javax.ws.rs.core.Response getFavoriteByUser(String userName,
                                                   String showItems)
                                            throws Exception
Throws:
Exception

getFavoriteByUser

public javax.ws.rs.core.Response getFavoriteByUser(String repoName,
                                                   String wsName,
                                                   String userName,
                                                   String showItems)
                                            throws Exception
Throws:
Exception

getFavoriteNode

public javax.ws.rs.core.Response getFavoriteNode(String userName)
                                          throws Exception
Throws:
Exception

getNodeTypeIcon

public static String getNodeTypeIcon(javax.jcr.Node node,
                                     String appended)
                              throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

getListDocument

public void getListDocument(javax.jcr.Node node,
                            List<javax.jcr.Node> listNodes)
                     throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

getAllFavoritesByUser

public List<javax.jcr.Node> getAllFavoritesByUser(String workspace,
                                                  String repository,
                                                  javax.jcr.Node userNode)
                                           throws Exception
Throws:
Exception


Copyright © 2003–2014 eXo Platform SAS. All rights reserved.