com.silverpeas.myLinksPeas.control
Class MyLinksPeasSessionController

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

public class MyLinksPeasSessionController
extends AbstractComponentSessionController


Field Summary
static int SCOPE_COMPONENT
           
static int SCOPE_OBJECT
           
static int SCOPE_USER
           
 
Fields inherited from class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController
CHARACTER_ENCODING, context
 
Constructor Summary
MyLinksPeasSessionController(MainSessionController mainSessionCtrl, ComponentContext componentContext)
          Standard Session Controller Constructeur
 
Method Summary
 void createLink(MyLinkEntity newLink)
           
 void deleteLinks(String[] links)
           
 Collection<LinkDetail> getAllLinksByInstance()
           
 Collection<LinkDetail> getAllLinksByObject()
           
 Collection<LinkDetail> getAllLinksByUser()
           
 String getInstanceId()
           
 LinkDetail getLink(String linkId)
           
protected  MyLinksBm getMyLinksBm()
           
 String getObjectId()
           
 int getScope()
           
 String getUrl()
           
 void setInstanceId(String instanceId)
           
 void setObjectId(String objectId)
           
 void setScope(int scope)
           
 void setUrl(String url)
           
 void updateLink(MyLinkEntity updatedLink)
           
 void verifyCurrentUserIsOwner(int linkId)
          This method verify that the owner of the link represented by the given id is the current user.
 void verifyCurrentUserIsOwner(String linkId)
          This method verify that the owner of the link represented by the given id is the current user.
 
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
 

Field Detail

SCOPE_USER

public static final int SCOPE_USER
See Also:
Constant Field Values

SCOPE_COMPONENT

public static final int SCOPE_COMPONENT
See Also:
Constant Field Values

SCOPE_OBJECT

public static final int SCOPE_OBJECT
See Also:
Constant Field Values
Constructor Detail

MyLinksPeasSessionController

public MyLinksPeasSessionController(MainSessionController mainSessionCtrl,
                                    ComponentContext componentContext)
Standard Session Controller Constructeur

Parameters:
mainSessionCtrl - The user's profile
componentContext - The component's profile
See Also:
Method Detail

getAllLinksByUser

public Collection<LinkDetail> getAllLinksByUser()

getAllLinksByInstance

public Collection<LinkDetail> getAllLinksByInstance()

getAllLinksByObject

public Collection<LinkDetail> getAllLinksByObject()

getLink

public LinkDetail getLink(String linkId)

verifyCurrentUserIsOwner

public void verifyCurrentUserIsOwner(int linkId)
This method verify that the owner of the link represented by the given id is the current user.

Parameters:
linkId -

verifyCurrentUserIsOwner

public void verifyCurrentUserIsOwner(String linkId)
This method verify that the owner of the link represented by the given id is the current user.

Parameters:
linkId -

createLink

public void createLink(MyLinkEntity newLink)

updateLink

public void updateLink(MyLinkEntity updatedLink)

deleteLinks

public void deleteLinks(String[] links)

getMyLinksBm

protected MyLinksBm getMyLinksBm()

getUrl

public String getUrl()

setUrl

public void setUrl(String url)

getInstanceId

public String getInstanceId()

setInstanceId

public void setInstanceId(String instanceId)

getObjectId

public String getObjectId()

setObjectId

public void setObjectId(String objectId)

setScope

public void setScope(int scope)

getScope

public int getScope()


Copyright © 2016 Silverpeas. All Rights Reserved.