本文整理汇总了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();
}
示例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;
}
示例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;
}
示例4: asZoneId
protected static String asZoneId(final String id)
{
return AuthorityService.ZONE_AUTH_EXT_PREFIX + id;
}