com.silverpeas.interestCenterPeas.control
Class InterestCenterSessionController

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

public class InterestCenterSessionController
extends AbstractComponentSessionController


Field Summary
 
Fields inherited from class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController
CHARACTER_ENCODING, context
 
Constructor Summary
InterestCenterSessionController(MainSessionController mainSessionCtrl, ComponentContext componentContext)
          Constructor Creates new InterestCenter Session Controller
 
Method Summary
 void close()
           
 void createIC(InterestCenter icToCreate)
          Method createIC creates new InterestCenter
 InterestCenter getICByPK(int pk)
          Method getICByPK returns InterestCenter object by pk
 List<InterestCenter> getICByUserId()
          Method getICByUserId returns ArrayList of all InterestCenter objects for user given by userId
 boolean isICExists(String nameIC)
           
 void removeICByPK(int pk)
          Method removeICByPK removes InterestCenter object corresponding to given PK
 void removeICByPKs(String[] iDs)
          Method removeICByPKs removes InterestCenter objects corresponding to PKs from given ArrayList
 void updateIC(InterestCenter icToUpdate)
          Method updateIC updates existing InterestCenter
 
Methods inherited from class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController
addClipboardSelection, clipboardPasteDone, 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

InterestCenterSessionController

public InterestCenterSessionController(MainSessionController mainSessionCtrl,
                                       ComponentContext componentContext)
Constructor Creates new InterestCenter Session Controller

Method Detail

getICByUserId

public List<InterestCenter> getICByUserId()
                                   throws RemoteException
Method getICByUserId returns ArrayList of all InterestCenter objects for user given by userId

Throws:
RemoteException

getICByPK

public InterestCenter getICByPK(int pk)
                         throws RemoteException
Method getICByPK returns InterestCenter object by pk

Throws:
RemoteException

createIC

public void createIC(InterestCenter icToCreate)
              throws RemoteException
Method createIC creates new InterestCenter

Throws:
RemoteException

updateIC

public void updateIC(InterestCenter icToUpdate)
              throws RemoteException
Method updateIC updates existing InterestCenter

Throws:
RemoteException

removeICByPKs

public void removeICByPKs(String[] iDs)
                   throws RemoteException
Method removeICByPKs removes InterestCenter objects corresponding to PKs from given ArrayList

Throws:
RemoteException

removeICByPK

public void removeICByPK(int pk)
                  throws RemoteException
Method removeICByPK removes InterestCenter object corresponding to given PK

Throws:
RemoteException

isICExists

public boolean isICExists(String nameIC)
                   throws RemoteException
Throws:
RemoteException

close

public void close()
Overrides:
close in class AbstractComponentSessionController


Copyright © 2016 Silverpeas. All Rights Reserved.