本文整理汇总了Java中org.alfresco.service.cmr.invitation.InvitationService类的典型用法代码示例。如果您正苦于以下问题:Java InvitationService类的具体用法?Java InvitationService怎么用?Java InvitationService使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
InvitationService类属于org.alfresco.service.cmr.invitation包,在下文中一共展示了InvitationService类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ScriptModeratedInvitation
import org.alfresco.service.cmr.invitation.InvitationService; //导入依赖的package包/类
public ScriptModeratedInvitation(ModeratedInvitation invitation,
InvitationService invitationService,
String inviteeEmail,
String inviteeFirstName,
String inviteeLastName)
{
super(invitation, invitationService);
this.inviteeEmail = inviteeEmail;
this.inviteeFirstName = inviteeFirstName;
this.inviteeLastName = inviteeLastName;
}
示例2: initStaticData
import org.alfresco.service.cmr.invitation.InvitationService; //导入依赖的package包/类
@BeforeClass public static void initStaticData() throws Exception
{
INVITATION_SERVICE = APP_CONTEXT_INIT.getApplicationContext().getBean("InvitationService", InvitationService.class);
SITE_SERVICE = APP_CONTEXT_INIT.getApplicationContext().getBean("SiteService", SiteService.class);
TRANSACTION_HELPER = APP_CONTEXT_INIT.getApplicationContext().getBean("retryingTransactionHelper", RetryingTransactionHelper.class);
WORKFLOW_SERVICE = APP_CONTEXT_INIT.getApplicationContext().getBean("WorkflowService", WorkflowService.class);
NODE_ARCHIVE_SERVICE = APP_CONTEXT_INIT.getApplicationContext().getBean("nodeArchiveService", NodeArchiveService.class);
}
示例3: RepoService
import org.alfresco.service.cmr.invitation.InvitationService; //导入依赖的package包/类
@SuppressWarnings("unchecked")
public RepoService(ApplicationContext applicationContext) throws Exception
{
this.applicationContext = applicationContext;
this.publicApiContext = new PublicApiTestContext(applicationContext);
this.authenticationService = (MutableAuthenticationService)applicationContext.getBean("AuthenticationService");
this.siteService = (SiteService)applicationContext.getBean("SiteService");
this.activityService = (ActivityService)applicationContext.getBean("activityService");
this.fileFolderService = (FileFolderService)applicationContext.getBean("FileFolderService");
this.contentService = (ContentService)applicationContext.getBean("ContentService");
this.commentService = (CommentService)applicationContext.getBean("CommentService");
this.nodeService = (NodeService)applicationContext.getBean("NodeService");
this.preferenceService = (PreferenceService)applicationContext.getBean("PreferenceService");
this.taggingService = (TaggingService)applicationContext.getBean("TaggingService");
this.ratingService = (RatingService)applicationContext.getBean("RatingService");
this.tenantService = (TenantService)applicationContext.getBean("tenantService");
this.tenantAdminService = (TenantAdminService)applicationContext.getBean("tenantAdminService");
this.personService = (PersonService)applicationContext.getBean("PersonService");
this.contentStoreCleaner = (ContentStoreCleaner)applicationContext.getBean("contentStoreCleaner");
this.postDAO = (ActivityPostDAO)applicationContext.getBean("postDAO");
this.nodeRatingSchemeRegistry = (NamedObjectRegistry<RatingScheme>)applicationContext.getBean("nodeRatingSchemeRegistry");
this.cociService = (CheckOutCheckInService)applicationContext.getBean("CheckoutCheckinService");
this.favouritesService = (FavouritesService)applicationContext.getBean("FavouritesService");
this.dictionaryService = (DictionaryService)applicationContext.getBean("dictionaryService");
this.invitationService = (InvitationService)applicationContext.getBean("InvitationService");
this.lockService = (LockService)applicationContext.getBean("LockService");
this.cmisConnector = (CMISConnector)applicationContext.getBean("CMISConnector");
this.nodeIndexer = (NodeIndexer)applicationContext.getBean("nodeIndexer");
this.activities = (Activities)applicationContext.getBean("activities");
this.hiddenAspect = (HiddenAspect)applicationContext.getBean("hiddenAspect");
this.networksService = (NetworksService)applicationContext.getBean("networksService");
this.namespaceService = (NamespaceService)applicationContext.getBean("namespaceService");
this.transactionHelper = (RetryingTransactionHelper)applicationContext.getBean("retryingTransactionHelper");
Scheduler scheduler = (Scheduler)applicationContext.getBean("schedulerFactory");
JobDetailBean contentStoreCleanerJobDetail = (JobDetailBean)applicationContext.getBean("contentStoreCleanerJobDetail");
scheduler.pauseJob(contentStoreCleanerJobDetail.getName(), contentStoreCleanerJobDetail.getGroup());
ChildApplicationContextFactory activitiesFeed = (ChildApplicationContextFactory)applicationContext.getBean("ActivitiesFeed");
ApplicationContext activitiesFeedCtx = activitiesFeed.getApplicationContext();
this.postLookup = (PostLookup)activitiesFeedCtx.getBean("postLookup");
this.feedGenerator = (FeedGenerator)activitiesFeedCtx.getBean("feedGenerator");
this.feedGeneratorJobDetail = (JobDetailBean)activitiesFeedCtx.getBean("feedGeneratorJobDetail");
this.postLookupJobDetail = (JobDetailBean)activitiesFeedCtx.getBean("postLookupJobDetail");
this.feedCleanerJobDetail = (JobDetailBean)activitiesFeedCtx.getBean("feedCleanerJobDetail");
this.postCleanerJobDetail = (JobDetailBean)activitiesFeedCtx.getBean("postCleanerJobDetail");
this.feedNotifierJobDetail = (JobDetailBean)activitiesFeedCtx.getBean("feedNotifierJobDetail");
this.feedCleaner = (FeedCleaner)activitiesFeedCtx.getBean("feedCleaner");
// Pause activities jobs so that we aren't competing with their scheduled versions
scheduler.pauseJob(feedGeneratorJobDetail.getName(), feedGeneratorJobDetail.getGroup());
scheduler.pauseJob(postLookupJobDetail.getName(), postLookupJobDetail.getGroup());
scheduler.pauseJob(feedCleanerJobDetail.getName(), feedCleanerJobDetail.getGroup());
scheduler.pauseJob(postCleanerJobDetail.getName(), postCleanerJobDetail.getGroup());
scheduler.pauseJob(feedNotifierJobDetail.getName(), feedNotifierJobDetail.getGroup());
this.systemNetwork = new TestNetwork(TenantService.DEFAULT_DOMAIN, true);
}
示例4: getInvitationService
import org.alfresco.service.cmr.invitation.InvitationService; //导入依赖的package包/类
@Override
public InvitationService getInvitationService()
{
return (InvitationService)getService(INVITATION_SERVICE);
}
示例5: ScriptInvitation
import org.alfresco.service.cmr.invitation.InvitationService; //导入依赖的package包/类
public ScriptInvitation(T invitation, InvitationService invitationService)
{
this.invitation = invitation;
this.invitationService = invitationService;
}
示例6: getInvitationService
import org.alfresco.service.cmr.invitation.InvitationService; //导入依赖的package包/类
protected InvitationService getInvitationService()
{
return invitationService;
}
示例7: ScriptInvitationFactory
import org.alfresco.service.cmr.invitation.InvitationService; //导入依赖的package包/类
public ScriptInvitationFactory(InvitationService invitationService, NodeService nodeService, PersonService personService)
{
this.nodeService = nodeService;
this.personService = personService;
this.invitationService = invitationService;
}
示例8: ScriptNominatedInvitation
import org.alfresco.service.cmr.invitation.InvitationService; //导入依赖的package包/类
public ScriptNominatedInvitation(NominatedInvitation invitation, InvitationService invitationService)
{
super(invitation, invitationService);
}
示例9: setInvitationService
import org.alfresco.service.cmr.invitation.InvitationService; //导入依赖的package包/类
/**
* @param invitationService the invitationService to set
*/
public void setInvitationService(InvitationService invitationService)
{
this.invitationService = invitationService;
}
示例10: getInvitationService
import org.alfresco.service.cmr.invitation.InvitationService; //导入依赖的package包/类
@Override
public InvitationService getInvitationService()
{
// A mock response
return null;
}
示例11: onSetUpInTransaction
import org.alfresco.service.cmr.invitation.InvitationService; //导入依赖的package包/类
/**
* Called during the transaction setup
*/
@SuppressWarnings("deprecation")
@Override
protected void onSetUpInTransaction() throws Exception
{
super.onSetUpInTransaction();
this.invitationService = (InvitationService) this.applicationContext.getBean("InvitationService");
this.siteService = (SiteService) this.applicationContext.getBean("SiteService");
this.personService = (PersonService) this.applicationContext.getBean("PersonService");
this.authenticationComponent = (AuthenticationComponent) this.applicationContext
.getBean("authenticationComponent");
this.invitationServiceImpl = (InvitationServiceImpl) applicationContext.getBean("invitationService");
this.workflowAdminService = (WorkflowAdminServiceImpl)applicationContext.getBean(WorkflowAdminServiceImpl.NAME);
this.templateService = (TemplateServiceImpl)applicationContext.getBean("templateService");
this.startSendEmails = invitationServiceImpl.isSendEmails();
this.enabledEngines = workflowAdminService.getEnabledEngines();
this.visibleEngines = workflowAdminService.getVisibleEngines();
invitationServiceImpl.setSendEmails(true);
// TODO MER 20/11/2009 Bodge - turn off email sending to prevent errors
// during unit testing
// (or sending out email by accident from tests)
mailService = (MailActionExecuter) ((ApplicationContextFactory) this.applicationContext
.getBean("OutboundSMTP")).getApplicationContext().getBean("mail");
mailService.setTestMode(true);
createPerson(USER_MANAGER, USER_MANAGER + "@alfrescotesting.com", PERSON_FIRSTNAME, PERSON_LASTNAME);
createPerson(USER_ONE, USER_ONE_EMAIL, USER_ONE_FIRSTNAME, USER_ONE_LASTNAME);
createPerson(USER_TWO, USER_TWO + "@alfrescotesting.com", PERSON_FIRSTNAME, PERSON_LASTNAME);
createPerson(USER_EVE, USER_EVE + "@alfrescotesting.com", PERSON_FIRSTNAME, PERSON_LASTNAME);
createPerson(USER_NOEMAIL, null, USER_NOEMAIL, USER_NOEMAIL);
this.authenticationComponent.setCurrentUser(USER_MANAGER);
SiteInfo siteInfo = siteService.getSite(SITE_SHORT_NAME_INVITE);
if (siteInfo == null)
{
siteInfo = siteService.createSite("InviteSitePreset", SITE_SHORT_NAME_INVITE, "InviteSiteTitle",
"InviteSiteDescription", SiteVisibility.MODERATED);
siteService.setMembership(SITE_SHORT_NAME_INVITE, USER_NOEMAIL, SiteModel.SITE_MANAGER);
}
SiteInfo siteInfoRed = siteService.getSite(SITE_SHORT_NAME_RED);
if (siteInfoRed == null)
{
siteService.createSite("InviteSiteRed", SITE_SHORT_NAME_RED, "InviteSiteTitle", "InviteSiteDescription",
SiteVisibility.MODERATED);
}
SiteInfo siteInfoBlue = siteService.getSite(SITE_SHORT_NAME_BLUE);
if (siteInfoBlue == null)
{
siteService.createSite("InviteSiteBlue", SITE_SHORT_NAME_BLUE, "InviteSiteTitle", "InviteSiteDescription",
SiteVisibility.MODERATED);
}
}
示例12: setInvitationService
import org.alfresco.service.cmr.invitation.InvitationService; //导入依赖的package包/类
public void setInvitationService(InvitationService invitationService)
{
this.invitationService = invitationService;
}
示例13: setInvitationService
import org.alfresco.service.cmr.invitation.InvitationService; //导入依赖的package包/类
public void setInvitationService(InvitationService invitationService)
{
this.invitationService = invitationService;
}
示例14: getInvitationService
import org.alfresco.service.cmr.invitation.InvitationService; //导入依赖的package包/类
public InvitationService getInvitationService()
{
return invitationService;
}
示例15: setInvitationService
import org.alfresco.service.cmr.invitation.InvitationService; //导入依赖的package包/类
public void setInvitationService(InvitationService invitationService)
{
this.invitationService = invitationService;
}