当前位置: 首页>>代码示例>>Java>>正文


Java SysAdminParams类代码示例

本文整理汇总了Java中org.alfresco.repo.admin.SysAdminParams的典型用法代码示例。如果您正苦于以下问题:Java SysAdminParams类的具体用法?Java SysAdminParams怎么用?Java SysAdminParams使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


SysAdminParams类属于org.alfresco.repo.admin包,在下文中一共展示了SysAdminParams类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: mockServices

import org.alfresco.repo.admin.SysAdminParams; //导入依赖的package包/类
/**
 * @return ServiceRegistry
 */
private ServiceRegistry mockServices()
{
    ActionService mockActionService = mockActionService();
    NodeService mockNodeService = mockNodeService();
    PersonService mockPersonService = mockPersonService();
    SearchService mockSearchService = mockSearchService();
    SiteService mockSiteService = mockSiteService();
    FileFolderService mockFileFolderService = mockFileFolderService();
    RepoAdminService mockRepoAdminService = mockRepoAdminService();
    SysAdminParams sysAdminParams = new SysAdminParamsImpl();

    ServiceRegistry services = mock(ServiceRegistry.class);
    when(services.getActionService()).thenReturn(mockActionService);
    when(services.getNodeService()).thenReturn(mockNodeService);
    when(services.getPersonService()).thenReturn(mockPersonService);
    when(services.getSearchService()).thenReturn(mockSearchService);
    when(services.getSiteService()).thenReturn(mockSiteService);
    when(services.getFileFolderService()).thenReturn(mockFileFolderService);
    when(services.getSysAdminParams()).thenReturn(sysAdminParams);
    when(services.getRepoAdminService()).thenReturn(mockRepoAdminService);
    return services;
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:26,代码来源:InviteSenderTest.java

示例2: getAlfrescoUrl

import org.alfresco.repo.admin.SysAdminParams; //导入依赖的package包/类
/**
 * Builds up the Url to Alfresco based on the settings in the 
 *  {@link SysAdminParams}. 
 * @return Alfresco Url such as https://col.ab.or.ate/alfresco/
 *  or http://localhost:8080/alfresco/
 */
public static String getAlfrescoUrl(SysAdminParams sysAdminParams)
{
    return buildUrl(
            sysAdminParams.getAlfrescoProtocol(),
            sysAdminParams.getAlfrescoHost(),
            sysAdminParams.getAlfrescoPort(),
            sysAdminParams.getAlfrescoContext());
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:15,代码来源:UrlUtil.java

示例3: getShareUrl

import org.alfresco.repo.admin.SysAdminParams; //导入依赖的package包/类
/**
 * Builds up the Url to Share based on the settings in the 
 *  {@link SysAdminParams}. 
 * @return Alfresco Url such as https://col.ab.or.ate/share/
 *  or http://localhost:8081/share/
 */
public static String getShareUrl(SysAdminParams sysAdminParams)
{
    return buildUrl(
            sysAdminParams.getShareProtocol(),
            sysAdminParams.getShareHost(),
            sysAdminParams.getSharePort(),
            sysAdminParams.getShareContext());
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:15,代码来源:UrlUtil.java

示例4: replaceShareUrlPlaceholder

import org.alfresco.repo.admin.SysAdminParams; //导入依赖的package包/类
/**
 * Replaces the share url placeholder, namely {@literal ${shareUrl}}, with <b>share</b> url.
 *
 * @param value          the string value which contains the share url placeholder
 * @param sysAdminParams the {@code SysAdminParams} object
 * @return if the given {@code value} contains share url placeholder,
 * the placeholder is replaced with share url; otherwise, the given {@code value} is simply returned
 */
public static String replaceShareUrlPlaceholder(String value, SysAdminParams sysAdminParams)
{
    if (value != null)
    {
        return PATTERN.matcher(value).replaceAll(
                    getShareUrl(sysAdminParams));
    }
    return value;
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:18,代码来源:UrlUtil.java

示例5: setSysAdminParams

import org.alfresco.repo.admin.SysAdminParams; //导入依赖的package包/类
public void setSysAdminParams(SysAdminParams sysAdminParams)
{
    this.sysAdminParams = sysAdminParams;
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:5,代码来源:PseudoFileOverlayImpl.java

示例6: getSysAdminParams

import org.alfresco.repo.admin.SysAdminParams; //导入依赖的package包/类
public SysAdminParams getSysAdminParams()
{
    return sysAdminParams;
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:5,代码来源:PseudoFileOverlayImpl.java

示例7: RepoCtx

import org.alfresco.repo.admin.SysAdminParams; //导入依赖的package包/类
public RepoCtx(SysAdminParams sysAdminParams, String repoEndPoint)
{
    this.sysAdminParams = sysAdminParams;
 this.repoEndPoint = repoEndPoint.endsWith("/") ? repoEndPoint.substring(0, repoEndPoint.length()-1) : repoEndPoint;
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:6,代码来源:RepoCtx.java

示例8: getSysAdminParams

import org.alfresco.repo.admin.SysAdminParams; //导入依赖的package包/类
@Override
public SysAdminParams getSysAdminParams()
{
    final String beanName = "sysAdminParams";
    return (SysAdminParams) beanFactory.getBean(beanName);
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:7,代码来源:ServiceDescriptorRegistry.java

示例9: ScriptUrls

import org.alfresco.repo.admin.SysAdminParams; //导入依赖的package包/类
public ScriptUrls(SysAdminParams sysAdminParams)
{
    this.sysAdminParams = sysAdminParams;
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:5,代码来源:ScriptUrls.java

示例10: URLHelper

import org.alfresco.repo.admin.SysAdminParams; //导入依赖的package包/类
public URLHelper(SysAdminParams sysAdminParams)
{
    this.sysAdminParams = sysAdminParams;
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:5,代码来源:MailActionExecuter.java

示例11: setSysAdminParams

import org.alfresco.repo.admin.SysAdminParams; //导入依赖的package包/类
/**
 * @param sysAdminParams The sysAdminParams to set.
 */
public void setSysAdminParams(SysAdminParams sysAdminParams)
{
    this.sysAdminParams = sysAdminParams;
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:8,代码来源:ScriptActionExecuter.java

示例12: getSysAdminParams

import org.alfresco.repo.admin.SysAdminParams; //导入依赖的package包/类
@Override
public SysAdminParams getSysAdminParams()
{
    // A mock response
    return null;
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:7,代码来源:MockedTestServiceRegistry.java

示例13: setSysAdminParams

import org.alfresco.repo.admin.SysAdminParams; //导入依赖的package包/类
/**
 * @param sysAdminParams
 *            the sysAdminParams to set
 */
public void setSysAdminParams(final SysAdminParams sysAdminParams)
{
    this.sysAdminParams = sysAdminParams;
}
 
开发者ID:Acosix,项目名称:alfresco-mt-support,代码行数:9,代码来源:TenantAwareChainingUserRegistrySynchronizer.java

示例14: setSysAdminParams

import org.alfresco.repo.admin.SysAdminParams; //导入依赖的package包/类
public void setSysAdminParams(SysAdminParams sysAdminParams)
{
   this.sysAdminParams = sysAdminParams;
}
 
开发者ID:Alfresco,项目名称:community-edition-old,代码行数:5,代码来源:VtiWelcomeInfoAction.java


注:本文中的org.alfresco.repo.admin.SysAdminParams类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。