Class ScriptInvitationService
java.lang.Object
org.alfresco.repo.processor.BaseProcessorExtension
org.alfresco.repo.jscript.BaseScopableProcessorExtension
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
- Author:
- Mark Rogers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidScriptInvitation<?>[]listInvitations(org.mozilla.javascript.Scriptable props) List the open invitations.voidsetInvitationService(InvitationService invitationService) Set the invitation servicevoidsetNodeService(NodeService nodeService) Set the node servicevoidsetPersonService(PersonService personService) Sets the person service.voidsetSiteService(SiteService siteService) Methods inherited from class org.alfresco.repo.jscript.BaseScopableProcessorExtension
getScope, setScopeMethods inherited from class org.alfresco.repo.processor.BaseProcessorExtension
getExtensionName, register, setExtensionName, setProcessor
-
Constructor Details
-
ScriptInvitationService
public ScriptInvitationService()
-
-
Method Details
-
setInvitationService
Set the invitation service- Parameters:
invitationService- the invitation service
-
setNodeService
Set the node service- Parameters:
nodeService- the nodeService to set
-
setPersonService
Sets the person service.- Parameters:
personService- the personService to set
-
setSiteService
-
listInvitations
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- inviteeUserNameprops- resourceNameprops- resourceTypeprops- invitationType- Returns:
- the invitations
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-