public class ContentActivityStreamUtil extends Object
Constructor and Description |
---|
ContentActivityStreamUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addViewActivityPriorityRestrictions(SessionConfig sessionConfig,
Collection<Collection<String>> principalsWithAllowViewPermission,
Collection<String> principalsWithDenyViewPermission,
ContentLocale contentLocale,
ITransaction transaction)
Add view activity priority restrictions.
|
static ActivityObjectType |
getObjectType(String serviceId,
String sourceId)
Get the
ActivityObjectType for the specified service and source |
static String |
getObjectTypeId(String serviceId,
String sourceId)
Get the
ActivityObjectType identifier for the specified service and source |
static boolean |
isActivityStreamAutomaticGenerationEnabledByScope(String scope,
Content content,
ITransaction transaction)
Checks if this content's service and source have the automatic generation
of activities by the activity stream framework enabled with a specific
scope.
|
public static boolean isActivityStreamAutomaticGenerationEnabledByScope(String scope, Content content, ITransaction transaction)
scope
- scope to be validatedcontent
- the content to checktransaction
- the transaction to usepublic static ActivityObjectType getObjectType(String serviceId, String sourceId) throws PortalException
ActivityObjectType
for the specified service and sourceserviceId
- the service identifiersourceId
- the source identifierActivityObjectType
PortalException
public static String getObjectTypeId(String serviceId, String sourceId)
ActivityObjectType
identifier for the specified service and sourceserviceId
- the service identifiersourceId
- the source identifierActivityObjectType
identifierpublic static void addViewActivityPriorityRestrictions(SessionConfig sessionConfig, Collection<Collection<String>> principalsWithAllowViewPermission, Collection<String> principalsWithDenyViewPermission, ContentLocale contentLocale, ITransaction transaction) throws PortalException
sessionConfig
- user session information.principalsWithAllowViewPermission
- collection where will be added collections of principals with
allow permission that the user must belong to for allowing
access to the activity priority.principalsWithDenyViewPermission
- collection where the principals with deny permission will be
added to.contentLocale
- the content locale that will be verified which principals may
view.transaction
- transaction for persistence access.PortalException
LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.