Interface PublicationAccessControl
-
- All Superinterfaces:
AccessController<PublicationPK>
- All Known Implementing Classes:
PublicationAccessController
public interface PublicationAccessControl extends AccessController<PublicationPK>
This interface extends access controller for a Publication resource.- Author:
- Yohann Chastagnier
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Stream<PublicationDetail>
filterAuthorizedByUser(String userId, Collection<PublicationDetail> pubs)
Using this method avoid to use perform database request in order to retrieve publication data.Stream<PublicationDetail>
filterAuthorizedByUser(String userId, Collection<PublicationDetail> pubs, AccessControlContext context)
Using this method avoid to use perform database request in order to retrieve publication data.static PublicationAccessControl
get()
boolean
isUserAuthorized(String userId, PublicationDetail pubDetail)
Using this method avoid to use perform database request in order to retrieve publication data.boolean
isUserAuthorized(String userId, PublicationDetail pubDetail, AccessControlContext context)
Using this method avoid to use perform database request in order to retrieve publication data.-
Methods inherited from interface org.silverpeas.core.security.authorization.AccessController
filterAuthorizedByUser, filterAuthorizedByUser, getUserRoles, isGroupAuthorized, isUserAuthorized, isUserAuthorized, isUserAuthorized, isUserAuthorized
-
-
-
-
Method Detail
-
get
static PublicationAccessControl get()
-
filterAuthorizedByUser
default Stream<PublicationDetail> filterAuthorizedByUser(String userId, Collection<PublicationDetail> pubs)
Using this method avoid to use perform database request in order to retrieve publication data.
-
filterAuthorizedByUser
Stream<PublicationDetail> filterAuthorizedByUser(String userId, Collection<PublicationDetail> pubs, AccessControlContext context)
Using this method avoid to use perform database request in order to retrieve publication data.
-
isUserAuthorized
boolean isUserAuthorized(String userId, PublicationDetail pubDetail)
Using this method avoid to use perform database request in order to retrieve publication data.
-
isUserAuthorized
boolean isUserAuthorized(String userId, PublicationDetail pubDetail, AccessControlContext context)
Using this method avoid to use perform database request in order to retrieve publication data.
-
-