| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.stratelia.silverpeas.peasCore.AbstractComponentSessionController
com.silverpeas.classifieds.control.ClassifiedsSessionController
public final class ClassifiedsSessionController
| Field Summary | 
|---|
| Fields inherited from class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController | 
|---|
CHARACTER_ENCODING, context | 
| Constructor Summary | |
|---|---|
ClassifiedsSessionController(com.stratelia.silverpeas.peasCore.MainSessionController mainSessionCtrl,
                             com.stratelia.silverpeas.peasCore.ComponentContext componentContext)
Standard Session Controller Constructeur  | 
|
| Method Summary | |
|---|---|
 String | 
createClassified(ClassifiedDetail classified,
                 Collection<org.apache.commons.fileupload.FileItem> listImage,
                 ClassifiedsRole profile)
create classified  | 
 void | 
createClassifiedImage(org.apache.commons.fileupload.FileItem fileImage,
                      String classifiedId)
create classified image  | 
 void | 
createSubscribe(Subscribe subscribe)
create a subscription  | 
 void | 
deleteClassified(String classifiedId)
delete the classified corresponding to classifiedId  | 
 void | 
deleteClassifiedImage(String imageId)
delete classified image  | 
 void | 
deleteSubscribe(String subscribeId)
delete the subscription corresponding to subscribeId  | 
 void | 
draftInClassified(String classifiedId)
pass the classified corresponding to classifiedId in draft mode  | 
 void | 
draftOutClassified(String classifiedId,
                   ClassifiedsRole highestRole)
take out draft mode the classified corresponding to classified  | 
 Collection<ClassifiedDetail> | 
getAllValidClassifieds(int currentPage)
get all valid classifieds  | 
 ClassifiedDetail | 
getClassified(String classifiedId)
get classified corresponding to classifiedId  | 
 List<ClassifiedDetail> | 
getClassifieds(org.silverpeas.search.searchEngine.model.QueryDescription query,
               int nb)
 | 
 Collection<ClassifiedDetail> | 
getClassifiedsByUser()
get all classifieds for the current user and this instance  | 
 Collection<ClassifiedDetail> | 
getClassifiedsToValidate()
get all classifieds to validate for this instance  | 
 ClassifiedDetail | 
getClassifiedWithImages(String classifiedId)
get classified corresponding to classifiedId including images  | 
 int | 
getCurrentPage()
 | 
 String | 
getNbPages(String nbClassifieds)
get the number of pages to display  | 
 String | 
getNbTotalClassifieds()
get the number of classifieds for this instance  | 
 Collection<ClassifiedDetail> | 
getPage(int itemIndex)
 | 
 com.stratelia.webactiv.util.viewGenerator.html.pagination.Pagination | 
getPagination()
 | 
 com.silverpeas.publicationTemplate.PublicationTemplate | 
getPublicationTemplate()
Gets the template of the publication based on the classified XML form.  | 
 com.stratelia.silverpeas.util.ResourcesWrapper | 
getResources()
Gets the resources associated with this session controller.  | 
 SearchContext | 
getSearchContext()
 | 
 String | 
getSearchFields1()
get the name of search field1  | 
 String | 
getSearchFields2()
get the name of search field2  | 
 Collection<ClassifiedDetail> | 
getSessionClassifieds()
 | 
 Collection<Subscribe> | 
getSubscribesByUser()
get all subscriptions for the current user and this instance  | 
 String | 
getWysiwygHeader()
return wysiwyg header html code  | 
 String | 
getXMLFormName()
get the name of xmlForm  | 
 boolean | 
isCommentsEnabled()
return true if comments feature is enabled  | 
 boolean | 
isDraftEnabled()
return true if draft mode is enabled  | 
 boolean | 
isHomePageDisplayCategorized()
return true if Home page displays classifieds organized by category  | 
 boolean | 
isValidationEnabled()
 | 
 boolean | 
isWysiwygHeaderEnabled()
return true if wysiwyg header feature is enabled  | 
 void | 
refusedClassified(String classifiedId,
                  String motive)
pass to status refused because the user corresponding to userId refused the classified corresponding to classifiedId for the motive ResusalMotive  | 
 void | 
search(org.silverpeas.search.searchEngine.model.QueryDescription query)
search all classifieds corresponding to the query  | 
 void | 
sendSubscriptionsNotification(String classifiedId)
send a notification for subscribers when classified (corresponding to classifiedId) is modified  | 
 void | 
setCurrentPage(int currentPage)
 | 
 void | 
setPagination(com.stratelia.webactiv.util.viewGenerator.html.pagination.Pagination pagination)
 | 
 void | 
setSearchContext(SearchContext context)
 | 
 void | 
updateClassified(ClassifiedDetail classified,
                 boolean isUpdate,
                 boolean isAdmin)
update the classified and send notification if isUpdate is true and, if isAdmin is true and classified is in status valid  | 
 void | 
updateClassifiedImage(org.apache.commons.fileupload.FileItem fileImage,
                      String imageId,
                      String classifiedId)
update classified image  | 
 void | 
validateClassified(String classifiedId)
pass to status validate because the user corresponding to userId validated the classified corresponding to classifiedId  | 
| Methods inherited from class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController | 
|---|
addClipboardSelection, clipboardPasteDone, close, getAlertUser, getClipboardCount, getClipboardErrorMessage, getClipboardExceptionError, getClipboardName, getClipboardObjects, getClipboardSelectedObjects, getClipboardSize, getComponentAccessController, getComponentId, getComponentLabel, getComponentName, getComponentParameters, getComponentParameterValue, getComponentParameterValue, getComponentRootName, getComponentUrl, getFavoriteSpace, getGenericPanel, getHighestSilverpeasUserRole, getIcon, getLanguage, getLastResults, getLook, getMultilang, getOrganisationController, getPersonalization, getRSSUrl, getSelection, getServerNameAndPort, getSettings, getSilverpeasUserRoles, getSpaceId, getSpaceLabel, getString, getSubscriptionContext, getUrlEncodedParameter, getUserAccessLevel, getUserAvailComponentIds, getUserAvailSpaceIds, getUserDetail, getUserDetail, getUserId, getUserManageableGroupIds, getUserManageableSpaceIds, getUserRoleLevel, getUserRoles, isAppInMaintenance, isGroupManager, isPasswordChangeAllowed, isSpaceInMaintenance, removeClipboardElement, setAppModeMaintenance, setClipboardError, setClipboardSelectedElement, setComponentRootName, setFavoriteSpaceToMainSessionController, setGenericPanel, setIconFileName, setLastResults, setMultilangFileName, setResourceFileName, setSpaceModeMaintenance | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public ClassifiedsSessionController(com.stratelia.silverpeas.peasCore.MainSessionController mainSessionCtrl,
                                    com.stratelia.silverpeas.peasCore.ComponentContext componentContext)
mainSessionCtrl - The user's profilecomponentContext - The component's profile| Method Detail | 
|---|
public void setPagination(com.stratelia.webactiv.util.viewGenerator.html.pagination.Pagination pagination)
public com.stratelia.webactiv.util.viewGenerator.html.pagination.Pagination getPagination()
public com.stratelia.silverpeas.util.ResourcesWrapper getResources()
public ClassifiedDetail getClassified(String classifiedId)
classifiedId - : String
public String getNbTotalClassifieds()
public void search(org.silverpeas.search.searchEngine.model.QueryDescription query)
query - : QueryDescription
public List<ClassifiedDetail> getClassifieds(org.silverpeas.search.searchEngine.model.QueryDescription query,
                                             int nb)
public Collection<ClassifiedDetail> getSessionClassifieds()
public Collection<ClassifiedDetail> getPage(int itemIndex)
public Collection<ClassifiedDetail> getClassifiedsByUser()
public Collection<ClassifiedDetail> getClassifiedsToValidate()
public void draftOutClassified(String classifiedId,
                               ClassifiedsRole highestRole)
                        throws com.silverpeas.publicationTemplate.PublicationTemplateException,
                               com.silverpeas.form.FormException
classifiedId - : StringhighestRole - : ClassifiedsRole
com.silverpeas.publicationTemplate.PublicationTemplateException
com.silverpeas.form.FormExceptionpublic void draftInClassified(String classifiedId)
classifiedId - : String
public void validateClassified(String classifiedId)
                        throws com.silverpeas.publicationTemplate.PublicationTemplateException,
                               com.silverpeas.form.FormException
classifiedId - : String
com.silverpeas.publicationTemplate.PublicationTemplateException
com.silverpeas.form.FormException
public void refusedClassified(String classifiedId,
                              String motive)
classifiedId - : Stringmotive - : Stringpublic String getXMLFormName()
public String getSearchFields1()
public String getSearchFields2()
public String createClassified(ClassifiedDetail classified,
                               Collection<org.apache.commons.fileupload.FileItem> listImage,
                               ClassifiedsRole profile)
classified - : classifiedDetailprofile - : ClassifiedsRole
public void deleteClassified(String classifiedId)
classifiedId - : String
public void updateClassified(ClassifiedDetail classified,
                             boolean isUpdate,
                             boolean isAdmin)
classified - : ClassifiedDetailisUpdate - : booleanisAdmin - : boolean
public void sendSubscriptionsNotification(String classifiedId)
                                   throws com.silverpeas.publicationTemplate.PublicationTemplateException,
                                          com.silverpeas.form.FormException
classifiedId - : String
com.silverpeas.publicationTemplate.PublicationTemplateException
com.silverpeas.form.FormExceptionpublic void createSubscribe(Subscribe subscribe)
subscribe - : Subscribepublic void deleteSubscribe(String subscribeId)
subscribeId - : Stringpublic Collection<Subscribe> getSubscribesByUser()
public void setCurrentPage(int currentPage)
public int getCurrentPage()
public boolean isDraftEnabled()
public boolean isValidationEnabled()
public boolean isCommentsEnabled()
public boolean isWysiwygHeaderEnabled()
public String getWysiwygHeader()
public void createClassifiedImage(org.apache.commons.fileupload.FileItem fileImage,
                                  String classifiedId)
fileImage - : FileItemclassifiedId - : Stringpublic ClassifiedDetail getClassifiedWithImages(String classifiedId)
classifiedId - : String
public void updateClassifiedImage(org.apache.commons.fileupload.FileItem fileImage,
                                  String imageId,
                                  String classifiedId)
fileImage - : FileItemimageId - : StringclassifiedId - : Stringpublic void deleteClassifiedImage(String imageId)
imageId - : Stringpublic boolean isHomePageDisplayCategorized()
public Collection<ClassifiedDetail> getAllValidClassifieds(int currentPage)
currentPage - 
public String getNbPages(String nbClassifieds)
public com.silverpeas.publicationTemplate.PublicationTemplate getPublicationTemplate()
                                                                              throws com.silverpeas.publicationTemplate.PublicationTemplateException
classifiedsSC - the session controller.
com.silverpeas.publicationTemplate.PublicationTemplateException - if an error occurs while getting the publication template.public void setSearchContext(SearchContext context)
public SearchContext getSearchContext()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||