本文整理汇总了Java中org.identityconnectors.framework.common.objects.ObjectClassInfo类的典型用法代码示例。如果您正苦于以下问题:Java ObjectClassInfo类的具体用法?Java ObjectClassInfo怎么用?Java ObjectClassInfo使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ObjectClassInfo类属于org.identityconnectors.framework.common.objects包,在下文中一共展示了ObjectClassInfo类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getSchema
import org.identityconnectors.framework.common.objects.ObjectClassInfo; //导入依赖的package包/类
/**
* Return resource schema names.
*
* @param showall return __NAME__ and __PASSWORD__ attribute if true.
* @return a list of schema names.
*/
public Set<String> getSchema(final boolean showall) {
final Set<String> resourceSchemaNames = new HashSet<String>();
final Schema schema = connector.schema();
try {
for (ObjectClassInfo info : schema.getObjectClassInfo()) {
for (AttributeInfo attrInfo : info.getAttributeInfo()) {
if (showall || (!Name.NAME.equals(attrInfo.getName())
&& !OperationalAttributes.PASSWORD_NAME.equals(
attrInfo.getName())
&& !OperationalAttributes.ENABLE_NAME.equals(
attrInfo.getName()))) {
resourceSchemaNames.add(attrInfo.getName());
}
}
}
} catch (Throwable t) {
// catch throwable in order to manage unpredictable behaviors
LOG.debug("Unsupported operation {}", t);
}
return resourceSchemaNames;
}
开发者ID:ilgrosso,项目名称:oldSyncopeIdM,代码行数:32,代码来源:ConnectorFacadeProxy.java
示例2: schemaAccount
import org.identityconnectors.framework.common.objects.ObjectClassInfo; //导入依赖的package包/类
private ObjectClassInfo schemaAccount() {
ObjectClassInfoBuilder objClassBuilder = new ObjectClassInfoBuilder();
AttributeInfoBuilder attrBuilder = new AttributeInfoBuilder(ATTR_EMAIL);
attrBuilder.setRequired(true);
objClassBuilder.addAttributeInfo(attrBuilder.build());
objClassBuilder.addAttributeInfo(new AttributeInfoBuilder(ATTR_FULL_NAME).build());
objClassBuilder.addAttributeInfo(new AttributeInfoBuilder(ATTR_SKYPE_ID).build());
objClassBuilder.addAttributeInfo(new AttributeInfoBuilder(ATTR_LINKED_ID).build());
objClassBuilder.addAttributeInfo(new AttributeInfoBuilder(ATTR_TWITTER).build());
objClassBuilder.addAttributeInfo(new AttributeInfoBuilder(ATTR_WEBSITE_URL).build());
objClassBuilder.addAttributeInfo(new AttributeInfoBuilder(ATTR_PROJECTS_LIMIT, Integer.class).build());
objClassBuilder.addAttributeInfo(new AttributeInfoBuilder(ATTR_EXTERN_UID).build());
objClassBuilder.addAttributeInfo(new AttributeInfoBuilder(ATTR_EXTERN_PROVIDER_NAME).build());
objClassBuilder.addAttributeInfo(new AttributeInfoBuilder(ATTR_BIO).build());
objClassBuilder.addAttributeInfo(new AttributeInfoBuilder(ATTR_IS_ADMIN, Boolean.class).build());
objClassBuilder.addAttributeInfo(new AttributeInfoBuilder(ATTR_CAN_CREATE_GROUP, Boolean.class).build());
objClassBuilder.addAttributeInfo(new AttributeInfoBuilder(ATTR_CONFIRM, Boolean.class).build());
// __PASSWORD__ attribute
objClassBuilder.addAttributeInfo(OperationalAttributeInfos.PASSWORD);
return objClassBuilder.build();
}
开发者ID:Evolveum,项目名称:connector-gitlab,代码行数:25,代码来源:GitlabConnector.java
示例3: detectLegacySchema
import org.identityconnectors.framework.common.objects.ObjectClassInfo; //导入依赖的package包/类
private boolean detectLegacySchema(Schema icfSchema) {
Set<ObjectClassInfo> objectClassInfoSet = icfSchema.getObjectClassInfo();
for (ObjectClassInfo objectClassInfo : objectClassInfoSet) {
if (objectClassInfo.is(ObjectClass.ACCOUNT_NAME) || objectClassInfo.is(ObjectClass.GROUP_NAME)) {
LOGGER.trace("This is legacy schema");
return true;
}
}
return false;
}
开发者ID:Pardus-Engerek,项目名称:engerek,代码行数:11,代码来源:ConnectorInstanceConnIdImpl.java
示例4: toIcfObject
import org.identityconnectors.framework.common.objects.ObjectClassInfo; //导入依赖的package包/类
public ConnectorObject toIcfObject(LdapNetworkConnection connection, ObjectClass icfObjectClass, Entry entry, AttributeHandler attributeHandler) {
ObjectClassInfo icfObjectClassInfo = findObjectClassInfo(icfObjectClass);
if (icfObjectClassInfo == null) {
throw new InvalidAttributeValueException("No definition for object class "+icfObjectClass);
}
return toIcfObject(connection, icfObjectClassInfo, entry, null, attributeHandler);
}
开发者ID:Evolveum,项目名称:connector-ldap,代码行数:8,代码来源:AbstractSchemaTranslator.java
示例5: findAttributeInfo
import org.identityconnectors.framework.common.objects.ObjectClassInfo; //导入依赖的package包/类
public static AttributeInfo findAttributeInfo(ObjectClassInfo icfObjectClassInfo, Attribute attribute) {
for (AttributeInfo attributeInfo: icfObjectClassInfo.getAttributeInfo()) {
if (attributeInfo.is(attribute.getName())) {
return attributeInfo;
}
}
return null;
}
开发者ID:Evolveum,项目名称:polygon,代码行数:9,代码来源:SchemaUtil.java
示例6: schemaGroup
import org.identityconnectors.framework.common.objects.ObjectClassInfo; //导入依赖的package包/类
private ObjectClassInfo schemaGroup() {
ObjectClassInfoBuilder objClassBuilder = new ObjectClassInfoBuilder();
objClassBuilder.setType(ObjectClass.GROUP_NAME);
AttributeInfoBuilder pathAttrBuilder = new AttributeInfoBuilder(ATTR_PATH);
pathAttrBuilder.setRequired(true);
pathAttrBuilder.setUpdateable(false);
objClassBuilder.addAttributeInfo(pathAttrBuilder.build());
AttributeInfoBuilder memberAttrBuilder = new AttributeInfoBuilder(ATTR_MEMBER, Integer.class);
memberAttrBuilder.setMultiValued(true);
objClassBuilder.addAttributeInfo(memberAttrBuilder.build());
return objClassBuilder.build();
}
开发者ID:Evolveum,项目名称:connector-gitlab,代码行数:16,代码来源:GitlabConnector.java
示例7: schemaProject
import org.identityconnectors.framework.common.objects.ObjectClassInfo; //导入依赖的package包/类
private ObjectClassInfo schemaProject() {
ObjectClassInfoBuilder objClassBuilder = new ObjectClassInfoBuilder();
objClassBuilder.setType(OBJECT_CLASS_PROJECT_NAME);
AttributeInfoBuilder namespaceAttrBuilder = new AttributeInfoBuilder(ATTR_NAMESPACE, Integer.class);
namespaceAttrBuilder.setRequired(true);
namespaceAttrBuilder.setUpdateable(false);
objClassBuilder.addAttributeInfo(namespaceAttrBuilder.build());
objClassBuilder.addAttributeInfo(new AttributeInfoBuilder(ATTR_PATH).build());
objClassBuilder.addAttributeInfo(new AttributeInfoBuilder(ATTR_DEFAULT_BRANCH).build());
objClassBuilder.addAttributeInfo(new AttributeInfoBuilder(ATTR_DESCRIPTION).build());
objClassBuilder.addAttributeInfo(new AttributeInfoBuilder(ATTR_HTTP_URL).build());
objClassBuilder.addAttributeInfo(new AttributeInfoBuilder(ATTR_OWNER).build());
objClassBuilder.addAttributeInfo(new AttributeInfoBuilder(ATTR_SSH_URL).build());
objClassBuilder.addAttributeInfo(new AttributeInfoBuilder(ATTR_VISIBILITY_LEVEL, Integer.class).build());
objClassBuilder.addAttributeInfo(new AttributeInfoBuilder(ATTR_WEB_URL).build());
objClassBuilder.addAttributeInfo(new AttributeInfoBuilder(ATTR_ISSUES_ENABLED, Boolean.class).build());
objClassBuilder.addAttributeInfo(new AttributeInfoBuilder(ATTR_WALL_ENABLED, Boolean.class).build());
objClassBuilder.addAttributeInfo(new AttributeInfoBuilder(ATTR_MERGE_REQUESTS_ENABLED, Boolean.class).build());
objClassBuilder.addAttributeInfo(new AttributeInfoBuilder(ATTR_WIKI_ENABLED, Boolean.class).build());
objClassBuilder.addAttributeInfo(new AttributeInfoBuilder(ATTR_SNIPPETS_ENABLED, Boolean.class).build());
objClassBuilder.addAttributeInfo(new AttributeInfoBuilder(ATTR_PUBLIC, Boolean.class).build());
AttributeInfoBuilder memberAttrBuilder = new AttributeInfoBuilder(ATTR_MEMBER, Integer.class);
memberAttrBuilder.setMultiValued(true);
objClassBuilder.addAttributeInfo(memberAttrBuilder.build());
return objClassBuilder.build();
}
开发者ID:Evolveum,项目名称:connector-gitlab,代码行数:31,代码来源:GitlabConnector.java
示例8: buildObjectClassInfo
import org.identityconnectors.framework.common.objects.ObjectClassInfo; //导入依赖的package包/类
@PreAuthorize("hasRole('" + StandardEntitlement.CONNECTOR_READ + "')")
public List<ConnIdObjectClassTO> buildObjectClassInfo(
final ConnInstanceTO connInstanceTO, final boolean includeSpecial) {
ConnInstanceTO actual = connInstanceTO;
ConnInstance existing = connInstanceDAO.find(connInstanceTO.getKey());
if (existing != null) {
actual = binder.getConnInstanceTO(existing);
}
Set<ObjectClassInfo> objectClassInfo = connFactory.createConnector(
connFactory.buildConnInstanceOverride(actual, connInstanceTO.getConf(), null)).
getObjectClassInfo();
List<ConnIdObjectClassTO> result = new ArrayList<>(objectClassInfo.size());
objectClassInfo.stream().map(info -> {
ConnIdObjectClassTO connIdObjectClassTO = new ConnIdObjectClassTO();
connIdObjectClassTO.setType(info.getType());
connIdObjectClassTO.setAuxiliary(info.isAuxiliary());
connIdObjectClassTO.setContainer(info.isContainer());
info.getAttributeInfo().stream().
filter(attrInfo -> includeSpecial || !AttributeUtil.isSpecialName(attrInfo.getName())).
forEachOrdered(attrInfo -> {
connIdObjectClassTO.getAttributes().add(attrInfo.getName());
});
return connIdObjectClassTO;
}).forEachOrdered((connIdObjectClassTO) -> {
result.add(connIdObjectClassTO);
});
return result;
}
开发者ID:apache,项目名称:syncope,代码行数:33,代码来源:ConnectorLogic.java
示例9: getObjectClassInfo
import org.identityconnectors.framework.common.objects.ObjectClassInfo; //导入依赖的package包/类
@Async
public Future<Set<ObjectClassInfo>> getObjectClassInfo(final ConnectorFacade connector) {
Set<ObjectClassInfo> result = Collections.emptySet();
try {
result = connector.schema().getObjectClassInfo();
} catch (Exception e) {
// catch exception in order to manage unpredictable behaviors
LOG.debug("While reading schema on connector {}", connector, e);
}
return new AsyncResult<>(result);
}
开发者ID:apache,项目名称:syncope,代码行数:14,代码来源:AsyncConnectorFacade.java
示例10: findObjectClassInfo
import org.identityconnectors.framework.common.objects.ObjectClassInfo; //导入依赖的package包/类
public ObjectClassInfo findObjectClassInfo(ObjectClass icfObjectClass) {
return icfSchema.findObjectClassInfo(icfObjectClass.getObjectClassValue());
}
开发者ID:Evolveum,项目名称:connector-ldap,代码行数:4,代码来源:AbstractSchemaTranslator.java
示例11: getObjectClassInfo
import org.identityconnectors.framework.common.objects.ObjectClassInfo; //导入依赖的package包/类
/**
* Builds metadata description of ConnId {@link ObjectClass}.
*
* @return metadata description of ConnId ObjectClass
*/
Set<ObjectClassInfo> getObjectClassInfo();
开发者ID:apache,项目名称:syncope,代码行数:7,代码来源:Connector.java
注:本文中的org.identityconnectors.framework.common.objects.ObjectClassInfo类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论