org.alfresco.repo.invitation.script
Class ScriptInvitationService

java.lang.Object
  extended by org.alfresco.repo.processor.BaseProcessorExtension
      extended by org.alfresco.repo.jscript.BaseScopableProcessorExtension
          extended by org.alfresco.repo.invitation.script.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


Constructor Summary
ScriptInvitationService()
           
 
Method Summary
 void afterPropertiesSet()
           
 ScriptInvitation[] listInvitations(org.mozilla.javascript.Scriptable props)
          List the open invitations.
 void setInvitationService(InvitationService invitationService)
          Set the invitation service
 void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
          Set the node service
 void setPersonService(PersonService personService)
          Sets the person service.
 
Methods inherited from class org.alfresco.repo.jscript.BaseScopableProcessorExtension
getScope, setScope
 
Methods inherited from class org.alfresco.repo.processor.BaseProcessorExtension
getExtensionName, register, setExtensionName, setProcessor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptInvitationService

public ScriptInvitationService()
Method Detail

setInvitationService

public void setInvitationService(InvitationService invitationService)
Set the invitation service

Parameters:
invitationService - the invitation service

setNodeService

public void setNodeService(org.alfresco.service.cmr.repository.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

listInvitations

public ScriptInvitation[] listInvitations(org.mozilla.javascript.Scriptable props)
List the open invitations. props specifies optional properties to constrain the search.

Parameters:
props - inviteeUserName
props - resourceName
props - resourceType
props - invitationType
Returns:
the invitations

afterPropertiesSet

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


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.