org.esupportail.lecture.domain
Interface DomainService

All Known Implementing Classes:
DomainServiceImpl, DomainServiceTest

public interface DomainService

Author:
bourges Domain service interface

Method Summary
 void foldCategory(java.lang.String uid, java.lang.String cxtId, java.lang.String catId)
           
 java.util.List<CategoryBean> getAvailableCategories(java.lang.String uid, java.lang.String contextId, ExternalService ex)
           
 java.util.List<SourceBean> getAvailableSources(java.lang.String uid, java.lang.String categoryId, ExternalService ex)
           
 UserBean getConnectedUser(java.lang.String uid)
           
 ContextBean getContext(java.lang.String uid, java.lang.String contextId)
           
 java.util.List<ItemBean> getItems(java.lang.String uid, java.lang.String sourceId, ExternalService ex)
           
 java.util.List<SourceBean> getVisibleSources(java.lang.String uid, java.lang.String categoryId, ExternalService ex)
           
 void marckItemReadMode(java.lang.String uid, java.lang.String sourceId, java.lang.String itemId, boolean isRead)
           
 void markItemDisplayMode(java.lang.String uid, java.lang.String sourceId, ItemDisplayMode mode)
           
 void setTreeSize(java.lang.String uid, java.lang.String contextId, int size)
           
 void subscribeToSource(java.lang.String uid, java.lang.String categorieId, java.lang.String sourceId, ExternalService ex)
           
 void unfoldCategory(java.lang.String uid, java.lang.String cxtId, java.lang.String catId)
           
 void unsubscribeToSource(java.lang.String uid, java.lang.String categorieId, java.lang.String sourceId, ExternalService ex)
           
 

Method Detail

foldCategory

void foldCategory(java.lang.String uid,
                  java.lang.String cxtId,
                  java.lang.String catId)
                  throws ContextNotFoundException
Parameters:
uid -
cxtId -
catId -
Throws:
ContextNotFoundException
See Also:
FacadeService.foldCategory(String, String, String)

getAvailableCategories

java.util.List<CategoryBean> getAvailableCategories(java.lang.String uid,
                                                    java.lang.String contextId,
                                                    ExternalService ex)
                                                    throws ContextNotFoundException
Parameters:
uid -
contextId -
ex - access to external service
Returns:
List
Throws:
ContextNotFoundException
See Also:
FacadeService.getAvailableCategories(String, String)

getAvailableSources

java.util.List<SourceBean> getAvailableSources(java.lang.String uid,
                                               java.lang.String categoryId,
                                               ExternalService ex)
                                               throws CategoryNotVisibleException,
                                                      CategoryProfileNotFoundException,
                                                      InternalDomainException,
                                                      CategoryNotLoadedException,
                                                      UserNotSubscribedToCategoryException
Parameters:
categoryId -
uid -
ex -
Returns:
List
Throws:
CategoryNotVisibleException
CategoryProfileNotFoundException
InternalDomainException
CategoryNotLoadedException
UserNotSubscribedToCategoryException
See Also:
FacadeService.getAvailableSources(String, String)

getConnectedUser

UserBean getConnectedUser(java.lang.String uid)
Parameters:
uid -
Returns:
UserBean
See Also:
FacadeService.getConnectedUser(String)

getContext

ContextBean getContext(java.lang.String uid,
                       java.lang.String contextId)
                       throws ContextNotFoundException
Parameters:
uid -
contextId -
Returns:
ContextBean
Throws:
ContextNotFoundException
See Also:
FacadeService.getContext(String,String)

getItems

java.util.List<ItemBean> getItems(java.lang.String uid,
                                  java.lang.String sourceId,
                                  ExternalService ex)
                                  throws SourceNotLoadedException,
                                         InternalDomainException,
                                         ManagedCategoryProfileNotFoundException,
                                         CategoryNotLoadedException
Parameters:
sourceId -
uid -
ex - access to external service
Returns:
List
Throws:
SourceNotLoadedException
InternalDomainException
CategoryNotLoadedException
ManagedCategoryProfileNotFoundException
See Also:
FacadeService.getItems(String, String)

getVisibleSources

java.util.List<SourceBean> getVisibleSources(java.lang.String uid,
                                             java.lang.String categoryId,
                                             ExternalService ex)
                                             throws ManagedCategoryProfileNotFoundException,
                                                    CategoryNotVisibleException,
                                                    CategoryProfileNotFoundException,
                                                    InternalDomainException,
                                                    CategoryNotLoadedException,
                                                    UserNotSubscribedToCategoryException
Parameters:
categoryId -
uid -
ex -
Returns:
List
Throws:
CategoryNotVisibleException
ManagedCategoryProfileNotFoundException
CategoryNotVisibleException
ManagedCategoryProfileNotFoundException
CategoryProfileNotFoundException
InternalDomainException
CategoryNotLoadedException
UserNotSubscribedToCategoryException
See Also:
FacadeService.getVisibleSources(String, String)

marckItemReadMode

void marckItemReadMode(java.lang.String uid,
                       java.lang.String sourceId,
                       java.lang.String itemId,
                       boolean isRead)
                       throws InternalDomainException
Parameters:
uid -
itemId -
sourceId -
isRead -
Throws:
InternalDomainException
See Also:
FacadeService.marckItemReadMode(String, String, String, boolean)

markItemDisplayMode

void markItemDisplayMode(java.lang.String uid,
                         java.lang.String sourceId,
                         ItemDisplayMode mode)
                         throws InternalDomainException
Parameters:
uid -
sourceId -
mode -
Throws:
InternalDomainException
See Also:
FacadeService.marckItemDisplayMode(String,String,ItemDisplayMode)

setTreeSize

void setTreeSize(java.lang.String uid,
                 java.lang.String contextId,
                 int size)
                 throws TreeSizeErrorException,
                        ContextNotFoundException
Parameters:
uid -
contextId -
size -
Throws:
TreeSizeErrorException
ContextNotFoundException
See Also:
FacadeService.setTreeSize(String, String, int)

subscribeToSource

void subscribeToSource(java.lang.String uid,
                       java.lang.String categorieId,
                       java.lang.String sourceId,
                       ExternalService ex)
                       throws UserNotSubscribedToCategoryException,
                              ManagedCategoryProfileNotFoundException,
                              CategoryNotVisibleException,
                              CategoryProfileNotFoundException,
                              CategoryNotLoadedException,
                              SourceProfileNotFoundException,
                              SourceNotVisibleException,
                              InternalDomainException
Parameters:
uid -
categorieId -
sourceId -
ex -
Throws:
UserNotSubscribedToCategoryException
ManagedCategoryProfileNotFoundException
CategoryNotVisibleException
SourceNotVisibleException
SourceProfileNotFoundException
CategoryNotLoadedException
CategoryProfileNotFoundException
InternalDomainException
See Also:
FacadeService.subscribeToSource(String, String, String)

unfoldCategory

void unfoldCategory(java.lang.String uid,
                    java.lang.String cxtId,
                    java.lang.String catId)
                    throws ContextNotFoundException
Parameters:
uid -
cxtId -
catId -
Throws:
ContextNotFoundException
See Also:
FacadeService.unfoldCategory(String, String, String)

unsubscribeToSource

void unsubscribeToSource(java.lang.String uid,
                         java.lang.String categorieId,
                         java.lang.String sourceId,
                         ExternalService ex)
                         throws ManagedCategoryProfileNotFoundException,
                                CategoryNotVisibleException,
                                UserNotSubscribedToCategoryException,
                                InternalDomainException,
                                CategoryProfileNotFoundException,
                                CategoryNotLoadedException,
                                SourceObligedException
Parameters:
uid -
categorieId -
sourceId -
ex -
Throws:
CategoryNotVisibleException
ManagedCategoryProfileNotFoundException
UserNotSubscribedToCategoryException
InternalDomainException
SourceObligedException
CategoryNotLoadedException
CategoryProfileNotFoundException
See Also:
FacadeService.unsubscribeToSource(String, String, String)