Class FavoriteACLPlugin

java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.social.metadata.FavoriteACLPlugin
All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin

public abstract class FavoriteACLPlugin extends org.exoplatform.container.component.BaseComponentPlugin
A plugin that will be used by FavoriteServiceImpl to check ACL of create favorite
  • Field Summary

    Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin

    desc, name
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract boolean
    canCreateFavorite(org.exoplatform.services.security.Identity userIdentity, String entityId)
    Checks whether the user can mark an entity as favorite
    abstract String
     

    Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin

    getDescription, getName, setDescription, setName

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FavoriteACLPlugin

      public FavoriteACLPlugin()
  • Method Details

    • getEntityType

      public abstract String getEntityType()
      Returns:
      entity types that plugin handles
    • canCreateFavorite

      public abstract boolean canCreateFavorite(org.exoplatform.services.security.Identity userIdentity, String entityId)
      Checks whether the user can mark an entity as favorite
      Parameters:
      userIdentity - user identity
      entityId - object technical unique identifier
      Returns:
      true if the user can mark entity as favorite, else false.