public class SecurityManager extends Object
| Constructor and Description |
|---|
SecurityManager() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canAccessActivity(org.exoplatform.container.PortalContainer portalContainer,
org.exoplatform.social.core.identity.model.Identity authenticatedIdentity,
org.exoplatform.social.core.activity.model.ExoSocialActivity existingActivity)
Checks if an authenticated identity can access an existing activity.
|
static boolean |
canAccessActivity(org.exoplatform.container.PortalContainer portalContainer,
String userIdentityId,
org.exoplatform.social.core.activity.model.ExoSocialActivity existingActivity)
Checks if an authenticated remoteId of user can access an existing activity.
|
static boolean |
canAccessActivityStream(org.exoplatform.container.PortalContainer portalContainer,
org.exoplatform.social.core.identity.model.Identity authenticatedIdentity,
org.exoplatform.social.core.identity.model.Identity ownerStream)
Checks if an authenticated identity could access the activity stream of an owner stream identity.
|
static boolean |
canCommentToActivity(org.exoplatform.container.PortalContainer portalContainer,
org.exoplatform.social.core.identity.model.Identity authenticatedIdentity,
org.exoplatform.social.core.activity.model.ExoSocialActivity existingActivity)
Checks if an authenticated identity has the permission to comment on an existing activity.
|
static boolean |
canDeleteActivity(org.exoplatform.container.PortalContainer portalContainer,
org.exoplatform.social.core.identity.model.Identity authenticatedIdentity,
org.exoplatform.social.core.activity.model.ExoSocialActivity existingActivity)
Checks if an authenticated identity has the permission to delete an existing activity.
|
static boolean |
canDeleteComment(org.exoplatform.container.PortalContainer portalContainer,
org.exoplatform.social.core.identity.model.Identity authenticatedIdentity,
org.exoplatform.social.core.activity.model.ExoSocialActivity existingComment)
Checks if an authenticated identity has the permission to delete an existing comment.
|
static boolean |
canPostActivity(org.exoplatform.container.PortalContainer portalContainer,
org.exoplatform.social.core.identity.model.Identity authenticatedIdentity,
org.exoplatform.social.core.identity.model.Identity ownerIdentityStream)
Checks if an poster identity has the permission to post activities on an owner identity stream.
|
static org.exoplatform.social.core.identity.model.Identity |
getAuthenticatedUserIdentity()
Deprecated.
use
Util.getAuthenticatedUserIdentity(String) instead. |
public static boolean canAccessActivity(org.exoplatform.container.PortalContainer portalContainer,
String userIdentityId,
org.exoplatform.social.core.activity.model.ExoSocialActivity existingActivity)
Checks if an authenticated remoteId of user can access an existing activity.
If the authenticated identity is the one who posted that existing activity, return true.portalContainer - the specified portal containeruserIdentityId - the authenticated identity to checkexistingActivity - the existing activity to checkpublic static boolean canAccessActivity(org.exoplatform.container.PortalContainer portalContainer,
org.exoplatform.social.core.identity.model.Identity authenticatedIdentity,
org.exoplatform.social.core.activity.model.ExoSocialActivity existingActivity)
Checks if an authenticated identity can access an existing activity.
If the authenticated identity is the one who posted that existing activity, return true.portalContainer - the specified portal containerauthenticatedIdentity - the authenticated identity to checkexistingActivity - the existing activity to checkpublic static boolean canPostActivity(org.exoplatform.container.PortalContainer portalContainer,
org.exoplatform.social.core.identity.model.Identity authenticatedIdentity,
org.exoplatform.social.core.identity.model.Identity ownerIdentityStream)
Checks if an poster identity has the permission to post activities on an owner identity stream.
If posterIdentity is the same as ownerIdentityStream, return true.portalContainer - the specified portal containerauthenticatedIdentity - the authenticated identity to checkownerIdentityStream - the identity of an existing activity stream.public static boolean canDeleteActivity(org.exoplatform.container.PortalContainer portalContainer,
org.exoplatform.social.core.identity.model.Identity authenticatedIdentity,
org.exoplatform.social.core.activity.model.ExoSocialActivity existingActivity)
Checks if an authenticated identity has the permission to delete an existing activity.
If the authenticated identity is the identity who creates that existing activity, return true.portalContainer - the specified portal containerauthenticatedIdentity - the identity to checkexistingActivity - the existing activitypublic static boolean canCommentToActivity(org.exoplatform.container.PortalContainer portalContainer,
org.exoplatform.social.core.identity.model.Identity authenticatedIdentity,
org.exoplatform.social.core.activity.model.ExoSocialActivity existingActivity)
Checks if an authenticated identity has the permission to comment on an existing activity.
If commenterIdentity is the one who creates the existing activity, return true.portalContainer - the specified portal containerauthenticatedIdentity - the authenticated identity to checkexistingActivity - the existing activitypublic static boolean canDeleteComment(org.exoplatform.container.PortalContainer portalContainer,
org.exoplatform.social.core.identity.model.Identity authenticatedIdentity,
org.exoplatform.social.core.activity.model.ExoSocialActivity existingComment)
Checks if an authenticated identity has the permission to delete an existing comment.
If authenticatedIdentity is the one who creates the existing comment, return true.portalContainer - the specified portal containerauthenticatedIdentity - the authenticated identity to checkexistingComment - the existing commentpublic static org.exoplatform.social.core.identity.model.Identity getAuthenticatedUserIdentity()
Util.getAuthenticatedUserIdentity(String) instead.Gets the current logged in Identity, if not logged in return null
public static boolean canAccessActivityStream(org.exoplatform.container.PortalContainer portalContainer,
org.exoplatform.social.core.identity.model.Identity authenticatedIdentity,
org.exoplatform.social.core.identity.model.Identity ownerStream)
portalContainer - the portal containerauthenticatedIdentity - the authenticated identityownerStream - the stream owner identityCopyright © 2003–2014 eXo Platform SAS. All rights reserved.