Class ScriptInvitationService

All Implemented Interfaces:
org.alfresco.processor.ProcessorExtension, Scopeable, org.springframework.beans.factory.InitializingBean

public class ScriptInvitationService extends BaseScopableProcessorExtension implements org.springframework.beans.factory.InitializingBean
Script object representing the invitation service. Provides access to invitations from outside the context of a web project or a web site
Author:
Mark Rogers
  • Constructor Details

    • ScriptInvitationService

      public ScriptInvitationService()
  • Method Details

    • setInvitationService

      public void setInvitationService(InvitationService invitationService)
      Set the invitation service
      Parameters:
      invitationService - the invitation service
    • setNodeService

      public void setNodeService(NodeService nodeService)
      Set the node service
      Parameters:
      nodeService - the nodeService to set
    • setPersonService

      public void setPersonService(PersonService personService)
      Sets the person service.
      Parameters:
      personService - the personService to set
    • setSiteService

      public void setSiteService(SiteService siteService)
    • listInvitations

      public ScriptInvitation<?>[] listInvitations(org.mozilla.javascript.Scriptable props)
      List the open invitations. props specifies optional properties to constrain the search. By default, if no "resultsLimit" property is specified in the props argument, this method will return a maximum of DEFAULT_MAX_LIST_INVITATIONS_RETURN_SIZE (200) results
      Parameters:
      props - inviteeUserName
      props - resourceName
      props - resourceType
      props - invitationType
      Returns:
      the invitations
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception