Class MyLinksPeasSessionController
- java.lang.Object
-
- org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
-
- org.silverpeas.web.mylinks.control.MyLinksPeasSessionController
-
- All Implemented Interfaces:
Serializable
,ComponentSessionController
,SessionCloseable
public class MyLinksPeasSessionController extends AbstractComponentSessionController
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
SCOPE_COMPONENT
static int
SCOPE_OBJECT
static int
SCOPE_USER
-
Fields inherited from class org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
context
-
-
Constructor Summary
Constructors Constructor Description MyLinksPeasSessionController(MainSessionController mainSessionCtrl, ComponentContext componentContext)
Standard Session Controller Constructeur
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createLink(MyLinkEntity newLink)
void
deleteLinks(String[] links)
Collection<LinkDetail>
getAllLinksByInstance()
Collection<LinkDetail>
getAllLinksByObject()
Collection<LinkDetail>
getAllLinksByUser()
String
getInstanceId()
LinkDetail
getLink(String linkId)
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 org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
addClipboardSelection, clipboardPasteDone, close, getClipboardErrorMessage, getClipboardExceptionError, getClipboardObjects, getClipboardSelectedObjects, getClipboardSize, getComponentAccessController, getComponentId, getComponentLabel, getComponentName, getComponentParameterValue, getComponentParameterValue, getComponentRootName, getComponentUrl, getHighestSilverpeasUserRole, getIcon, getLanguage, getLook, getMultilang, getOrganisationController, getPersonalization, getRSSUrl, getSelection, getSettings, getSilverpeasUserRoles, getSpaceId, getSpaceLabel, getString, getSubscriptionContext, getUrlEncodedParameter, getUserAccessLevel, getUserAvailComponentIds, getUserDetail, getUserDetail, getUserId, getUserManageableGroupIds, getUserManageableSpaceIds, getUserRoles, getZoneId, isAppInMaintenance, isGroupManager, isPasswordChangeAllowed, isSpaceInMaintenance, removeClipboardElement, setAppModeMaintenance, setClipboardSelectedElement, setComponentRootName, setSpaceModeMaintenance
-
-
-
-
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 profilecomponentContext
- The component's profile
-
-
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)
-
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()
-
-