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


Java AuthorityService.ZONE_AUTH_EXT_PREFIX属性代码示例

本文整理汇总了Java中org.alfresco.service.cmr.security.AuthorityService.ZONE_AUTH_EXT_PREFIX属性的典型用法代码示例。如果您正苦于以下问题:Java AuthorityService.ZONE_AUTH_EXT_PREFIX属性的具体用法?Java AuthorityService.ZONE_AUTH_EXT_PREFIX怎么用?Java AuthorityService.ZONE_AUTH_EXT_PREFIX使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.alfresco.service.cmr.security.AuthorityService的用法示例。


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

示例1: getPersonMappedProperties

public Set<QName> getPersonMappedProperties(String username)
{
    Set<String> authorityZones = this.authorityService.getAuthorityZones(username);
    if (authorityZones == null)
    {
        return Collections.emptySet();
    }
    Collection<String> instanceIds = this.applicationContextManager.getInstanceIds();

    // Visit the user registries in priority order and return the person mapping of the first registry that matches
    // one of the person's zones
    for (String id : instanceIds)
    {
        String zoneId = AuthorityService.ZONE_AUTH_EXT_PREFIX + id;
        if (!authorityZones.contains(zoneId))
        {
            continue;
        }
        try
        {
            ApplicationContext context = this.applicationContextManager.getApplicationContext(id);
            UserRegistry plugin = (UserRegistry) context.getBean(this.sourceBeanName);
            if (!(plugin instanceof ActivateableBean) || ((ActivateableBean) plugin).isActive())
            {
                return plugin.getPersonMappedProperties();
            }
        }
        catch (RuntimeException e)
        {
            // The bean doesn't exist or this subsystem won't start. The reason would have been logged. Ignore and continue.
        }
    }

    return Collections.emptySet();
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:35,代码来源:ChainingUserRegistrySynchronizer.java

示例2: getSynchronizationLastUserUpdateTime

@Override
public Date getSynchronizationLastUserUpdateTime(String id)
{
    String zoneId = AuthorityService.ZONE_AUTH_EXT_PREFIX + id;
    long time = getMostRecentUpdateTime(ChainingUserRegistrySynchronizer.PERSON_LAST_MODIFIED_ATTRIBUTE, zoneId, false);
    Date lastUserUpdate = time == -1 ? null : new Date(time);
    return lastUserUpdate;
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:8,代码来源:ChainingUserRegistrySynchronizer.java

示例3: getSynchronizationLastGroupUpdateTime

@Override
public Date getSynchronizationLastGroupUpdateTime(String id)
{
    String zoneId = AuthorityService.ZONE_AUTH_EXT_PREFIX + id;
    long time = getMostRecentUpdateTime(ChainingUserRegistrySynchronizer.GROUP_LAST_MODIFIED_ATTRIBUTE, zoneId, false);
    Date lastGroupUpdate = time == -1 ? null : new Date(time);
    return lastGroupUpdate;
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:8,代码来源:ChainingUserRegistrySynchronizer.java

示例4: asZoneId

protected static String asZoneId(final String id)
{
    return AuthorityService.ZONE_AUTH_EXT_PREFIX + id;
}
 
开发者ID:Acosix,项目名称:alfresco-mt-support,代码行数:4,代码来源:TenantAwareChainingUserRegistrySynchronizer.java


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