Package org.silverpeas.core.security
Interface Securable
-
- All Known Subinterfaces:
Attachment
,Contribution
,Folder
,I18nContribution
,LocalizedAttachment
,LocalizedContribution
,ResourceView
,SilverContentInterface
,SilverpeasContent
,SilverpeasSharedComponentInstance
,SilverpeasToolContent
,ValidableContribution
- All Known Implementing Classes:
AbstractSilverpeasContentManager.ContributionWrapper
,Calendar
,CalendarEvent
,CalendarEventOccurrence
,CategoryDetail
,Comment
,ComponentInst
,ComponentInstLight
,Document
,DragAndDropFileWrapper
,DragAndDropWbeFile
,DragAndDropWebEditorStore
,HistorisedDocument
,HistorisedDocumentVersion
,LinkDetail
,NodeDetail
,PublicationDetail
,QuestionContainerDetail
,QuestionContainerHeader
,SilverContent
,SimpleDocument
,SimpleDocumentVersion
,SimpleWbeFile
,SpaceInst
,SpaceInstLight
,Variable
,WbeFile
,WbeFileWrapper
,WebdavWbeFile
public interface Securable
A securable object is an object for which some operations on it requires for the user to be authorized. For doing, it defines for each basic kind of operations in Silverpeas (access, modification, ...) a method to control the rights of the user to perform such an operation.- Author:
- Yohann Chastagnier
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description boolean
canBeAccessedBy(User user)
Checks the given user can access this resource.default boolean
canBeDeletedBy(User user)
Checks the given user can delete this resource.default boolean
canBeFiledInBy(User user)
Checks the given user can file in this resource another resource.default boolean
canBeModifiedBy(User user)
Checks the given user can modify this resource.
-
-
-
Method Detail
-
canBeAccessedBy
boolean canBeAccessedBy(User user)
Checks the given user can access this resource.- Parameters:
user
- a user in Silverpeas.- Returns:
- true if the user can access the data managed by this instance, false otherwise.
-
canBeModifiedBy
default boolean canBeModifiedBy(User user)
Checks the given user can modify this resource. By default, if the user can access this securable resource, then it can also modify it.- Parameters:
user
- a user in Silverpeas.- Returns:
- true if the user can modify the data managed by this instance, false otherwise.
-
canBeDeletedBy
default boolean canBeDeletedBy(User user)
Checks the given user can delete this resource. By default, if the user can modify this securable resource, then it can also delete it.- Parameters:
user
- a user in Silverpeas.- Returns:
- true if the user can delete the data managed by this instance, false otherwise.
-
canBeFiledInBy
default boolean canBeFiledInBy(User user)
Checks the given user can file in this resource another resource. This behaviour control is only pertinent for resources acting as a container of other resources. By default, it returns false so that it requires to be implemented by any securable resource type supporting filing.- Parameters:
user
- a user in Silverpeas.- Returns:
- true if the user can file in this resource another resource.
-
-