com.silverpeas.whitePages.control
Class WhitePagesSessionController

java.lang.Object
  extended by com.stratelia.silverpeas.peasCore.AbstractComponentSessionController
      extended by com.silverpeas.whitePages.control.WhitePagesSessionController
All Implemented Interfaces:
com.stratelia.silverpeas.peasCore.ComponentSessionController

public class WhitePagesSessionController
extends com.stratelia.silverpeas.peasCore.AbstractComponentSessionController


Field Summary
 
Fields inherited from class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController
CHARACTER_ENCODING, context
 
Constructor Summary
WhitePagesSessionController(com.stratelia.silverpeas.peasCore.MainSessionController mainSessionCtrl, com.stratelia.silverpeas.peasCore.ComponentContext context)
           
 
Method Summary
 void confirmFieldsChoice(String[] fields)
           
 void createCard(javax.servlet.http.HttpServletRequest request)
           
 Card createCard(com.stratelia.webactiv.beans.admin.UserDetail userDetail)
           
 void delete(Collection<String> userCardIds)
           
 boolean existCard(String userId)
           
 List<com.silverpeas.form.FieldTemplate> getAllXmlFieldsForSearch()
           
 Card getCard(long userCardId)
           
 Card getCardReadOnly(long userCardId)
           
 Collection<Card> getCards()
           
 com.stratelia.silverpeas.containerManager.ContainerContext getContainerContext()
           
 Card getCurrentCard()
           
 String getCurrentCardContentId()
           
 Card getCurrentCreateCard()
           
 Collection<WhitePagesCard> getCurrentUserCards()
           
 int getDomainId()
           
 String[] getHostParameters()
           
 List<SearchField> getLdapAttributesList()
           
 HashMap<String,Set<com.stratelia.silverpeas.pdc.model.ClassifyValue>> getPdcPositions(int cardId)
           
 String getReturnURL()
           
 Set<String> getSearchFieldIds()
           
 SortedSet<SearchField> getSearchFields()
           
 List<Card> getSearchResult(String query, com.stratelia.silverpeas.pdc.model.SearchContext pdcContext, Map<String,String> xmlFields, List<org.silverpeas.search.indexEngine.model.FieldDescription> fieldsQuery)
           
 int getSilverObjectId(String objectId)
           
 List<com.stratelia.silverpeas.pdc.model.SearchAxis> getUsedAxisList(com.stratelia.silverpeas.pdc.model.SearchContext searchContext, String axisType)
           
 Card getUserCard(String userId)
           
 com.stratelia.webactiv.beans.admin.UserDetail getUserDetailSelected()
           
 Collection<Card> getVisibleCards()
           
 void hide(Collection<String> userCardIds)
           
 void indexVisibleCards()
           
 void initCurrentUserCards()
           
 String initUserPanel()
           
 boolean isAdmin()
           
 boolean isCardClassifiedOnPdc()
           
 Boolean isEmailHidden()
           
 Boolean isFicheVisible()
           
 void reverseHide(Collection<String> userCardIds)
           
 void saveCard()
           
 void sendNotification(String bodyMessage)
           
 Card setCardRecord()
           
 void setContainerContext(com.stratelia.silverpeas.containerManager.ContainerContext containerContext)
           
 void setHostParameters(String hostSpaceName, String hostComponentName, String hostUrl, String hostPath)
           
 void setNotifiedUserCard(Card card)
           
 void setReturnURL(String returnURL)
           
 void unHide(Collection<String> userCardIds)
           
 void updateCardRecord(javax.servlet.http.HttpServletRequest request)
           
 
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

WhitePagesSessionController

public WhitePagesSessionController(com.stratelia.silverpeas.peasCore.MainSessionController mainSessionCtrl,
                                   com.stratelia.silverpeas.peasCore.ComponentContext context)
Method Detail

isAdmin

public boolean isAdmin()

getCard

public Card getCard(long userCardId)
             throws WhitePagesException
Throws:
WhitePagesException

getCardReadOnly

public Card getCardReadOnly(long userCardId)
                     throws WhitePagesException
Throws:
WhitePagesException

getUserCard

public Card getUserCard(String userId)
                 throws WhitePagesException
Throws:
WhitePagesException

createCard

public Card createCard(com.stratelia.webactiv.beans.admin.UserDetail userDetail)
                throws WhitePagesException
Throws:
WhitePagesException

setCardRecord

public Card setCardRecord()
                   throws WhitePagesException
Throws:
WhitePagesException

createCard

public void createCard(javax.servlet.http.HttpServletRequest request)
                throws WhitePagesException,
                       JAXBException
Throws:
WhitePagesException
JAXBException

updateCardRecord

public void updateCardRecord(javax.servlet.http.HttpServletRequest request)
                      throws WhitePagesException
Throws:
WhitePagesException

saveCard

public void saveCard()
              throws WhitePagesException
Throws:
WhitePagesException

getCards

public Collection<Card> getCards()
                          throws WhitePagesException
Throws:
WhitePagesException

getVisibleCards

public Collection<Card> getVisibleCards()
                                 throws WhitePagesException
Throws:
WhitePagesException

indexVisibleCards

public void indexVisibleCards()
                       throws WhitePagesException
Throws:
WhitePagesException

delete

public void delete(Collection<String> userCardIds)
            throws WhitePagesException
Throws:
WhitePagesException

hide

public void hide(Collection<String> userCardIds)
          throws WhitePagesException
Throws:
WhitePagesException

unHide

public void unHide(Collection<String> userCardIds)
            throws WhitePagesException
Throws:
WhitePagesException

reverseHide

public void reverseHide(Collection<String> userCardIds)
                 throws WhitePagesException
Throws:
WhitePagesException

existCard

public boolean existCard(String userId)
                  throws WhitePagesException
Throws:
WhitePagesException

initUserPanel

public String initUserPanel()

getUserDetailSelected

public com.stratelia.webactiv.beans.admin.UserDetail getUserDetailSelected()

initCurrentUserCards

public void initCurrentUserCards()

getCurrentCard

public Card getCurrentCard()

getCurrentCreateCard

public Card getCurrentCreateCard()

getCurrentUserCards

public Collection<WhitePagesCard> getCurrentUserCards()

setHostParameters

public void setHostParameters(String hostSpaceName,
                              String hostComponentName,
                              String hostUrl,
                              String hostPath)

getHostParameters

public String[] getHostParameters()

getSilverObjectId

public int getSilverObjectId(String objectId)

getCurrentCardContentId

public String getCurrentCardContentId()

setContainerContext

public void setContainerContext(com.stratelia.silverpeas.containerManager.ContainerContext containerContext)

getContainerContext

public com.stratelia.silverpeas.containerManager.ContainerContext getContainerContext()

setReturnURL

public void setReturnURL(String returnURL)

getReturnURL

public String getReturnURL()

setNotifiedUserCard

public void setNotifiedUserCard(Card card)

sendNotification

public void sendNotification(String bodyMessage)
                      throws com.stratelia.silverpeas.notificationManager.NotificationManagerException
Throws:
com.stratelia.silverpeas.notificationManager.NotificationManagerException

isCardClassifiedOnPdc

public boolean isCardClassifiedOnPdc()
                              throws WhitePagesException,
                                     com.stratelia.silverpeas.contentManager.ContentManagerException,
                                     com.stratelia.silverpeas.pdc.model.PdcException
Throws:
WhitePagesException
com.stratelia.silverpeas.contentManager.ContentManagerException
com.stratelia.silverpeas.pdc.model.PdcException

isEmailHidden

public Boolean isEmailHidden()

isFicheVisible

public Boolean isFicheVisible()

getDomainId

public int getDomainId()

getAllXmlFieldsForSearch

public List<com.silverpeas.form.FieldTemplate> getAllXmlFieldsForSearch()
                                                                 throws WhitePagesException,
                                                                        com.silverpeas.publicationTemplate.PublicationTemplateException
Throws:
WhitePagesException
com.silverpeas.publicationTemplate.PublicationTemplateException

getUsedAxisList

public List<com.stratelia.silverpeas.pdc.model.SearchAxis> getUsedAxisList(com.stratelia.silverpeas.pdc.model.SearchContext searchContext,
                                                                           String axisType)
                                                                    throws com.stratelia.silverpeas.pdc.model.PdcException
Throws:
com.stratelia.silverpeas.pdc.model.PdcException

getLdapAttributesList

public List<SearchField> getLdapAttributesList()
                                        throws Exception
Throws:
Exception

confirmFieldsChoice

public void confirmFieldsChoice(String[] fields)
                         throws com.stratelia.webactiv.util.exception.UtilException
Throws:
com.stratelia.webactiv.util.exception.UtilException

getSearchFields

public SortedSet<SearchField> getSearchFields()
                                       throws com.stratelia.webactiv.util.exception.UtilException,
                                              WhitePagesException
Throws:
com.stratelia.webactiv.util.exception.UtilException
WhitePagesException

getSearchFieldIds

public Set<String> getSearchFieldIds()
                              throws com.stratelia.webactiv.util.exception.UtilException,
                                     WhitePagesException
Throws:
com.stratelia.webactiv.util.exception.UtilException
WhitePagesException

getSearchResult

public List<Card> getSearchResult(String query,
                                  com.stratelia.silverpeas.pdc.model.SearchContext pdcContext,
                                  Map<String,String> xmlFields,
                                  List<org.silverpeas.search.indexEngine.model.FieldDescription> fieldsQuery)

getPdcPositions

public HashMap<String,Set<com.stratelia.silverpeas.pdc.model.ClassifyValue>> getPdcPositions(int cardId)
                                                                                      throws com.stratelia.silverpeas.pdc.model.PdcException
Throws:
com.stratelia.silverpeas.pdc.model.PdcException


Copyright © 2016 Silverpeas. All Rights Reserved.