/** * Searches NodeRef to the IMAP home for specified user * * @param userName the name of the user */ public ScriptNode getImapHomeRef(String userName) { ScriptNode result = null; NodeRef nodeRef = services.getImapService().getUserImapHomeRef(userName); if (nodeRef != null) { result = new ScriptNode(nodeRef, this.services, getScope()); } return result; }
/** * Searches NodeRef to the IMAP home for specified user * * @param userName the name of the user */ public ScriptNode getImapHomeRef(String userName) { ScriptNode result = null; NodeRef nodeRef = services.getImapService().getUserImapHomeRef(userName); if (nodeRef != null) { result = new ScriptNode(nodeRef, this.services, getScope()); } return result; }
protected void buildMessage(FileInfo fileInfo, ServiceRegistry serviceRegistry) throws MessagingException { checkParameter(serviceRegistry, "ServiceRegistry"); this.content = null; this.serviceRegistry = serviceRegistry; this.imapService = serviceRegistry.getImapService(); this.messageFileInfo = fileInfo; this.isMessageInSitesLibrary = imapService.getNodeSiteContainer(messageFileInfo.getNodeRef()) != null ? true : false; RetryingTransactionHelper txHelper = serviceRegistry.getTransactionService().getRetryingTransactionHelper(); txHelper.setMaxRetries(MAX_RETRIES); txHelper.setReadOnly(false); txHelper.doInTransaction(new RetryingTransactionCallback<Object>() { public Object execute() throws Throwable { buildMessageInternal(); return null; } }, false); }
protected void buildMessage(FileInfo fileInfo, ServiceRegistry serviceRegistry) throws MessagingException { checkParameter(serviceRegistry, "ServiceRegistry"); this.content = null; this.serviceRegistry = serviceRegistry; this.imapService = serviceRegistry.getImapService(); this.messageFileInfo = fileInfo; this.isMessageInSitesLibrary = imapService.getNodeSiteContainer(messageFileInfo.getNodeRef()) != null ? true : false; RetryingTransactionHelper txHelper = serviceRegistry.getTransactionService().getRetryingTransactionHelper(); txHelper.setMaxRetries(MAX_RETRIES); txHelper.setReadOnly(false); txHelper.doInTransaction(new RetryingTransactionCallback<Object>() { public Object execute() throws Throwable { buildMessageInternal(); return null; } }, false); }
namespacePrefixResolver = (DictionaryNamespaceComponent) ctx.getBean("namespaceService"); cociService = (CheckOutCheckInService) ctx.getBean("checkOutCheckInService"); imapService = serviceRegistry.getImapService(); personService = serviceRegistry.getPersonService(); permissionService = serviceRegistry.getPermissionService(); imapEnabled = serviceRegistry.getImapService().getImapServerEnabled();
nodeService = serviceRegistry.getNodeService(); authenticationService = serviceRegistry.getAuthenticationService(); imapService = serviceRegistry.getImapService(); searchService = serviceRegistry.getSearchService(); namespaceService = serviceRegistry.getNamespaceService();
imapService = serviceRegistry.getImapService(); importerService = serviceRegistry.getImporterService(); NodeService nodeService = serviceRegistry.getNodeService();
authenticationService = serviceRegistry.getAuthenticationService(); permissionService = serviceRegistry.getPermissionService(); imapService = serviceRegistry.getImapService(); searchService = serviceRegistry.getSearchService(); namespaceService = serviceRegistry.getNamespaceService();