Ejemplo n.º 1
0
 public SCIMRepresentationAttribute(string id, string attributeId, SCIMSchemaAttribute schemaAttribute,
                                    string namespaceStr,
                                    int?valueInteger       = null,
                                    bool?valueBoolean      = null,
                                    string valueString     = null,
                                    DateTime?valueDateTime = null,
                                    decimal?valueDecimal   = null,
                                    string valueBinary     = null,
                                    string valueReference  = null) : this(id, attributeId)
 {
     SchemaAttribute = schemaAttribute;
     Namespace       = namespaceStr;
     ValueInteger    = valueInteger;
     ValueBoolean    = valueBoolean;
     ValueString     = valueString;
     ValueDateTime   = valueDateTime;
     ValueDecimal    = valueDecimal;
     ValueBinary     = valueBinary;
     ValueReference  = valueReference;
     if (schemaAttribute != null)
     {
         FullPath          = schemaAttribute.FullPath;
         SchemaAttributeId = schemaAttribute.Id;
     }
 }
 public SCIMSchema GetSchema(SCIMSchemaAttribute attribute)
 {
     return(Schemas.FirstOrDefault(s => s.HasAttribute(attribute)));
 }
Ejemplo n.º 3
0
 public bool HasAttribute(SCIMSchemaAttribute attribute)
 {
     return(Attributes.Any(attr => attr.Id == attribute.Id));
 }
Ejemplo n.º 4
0
 public void AddAttribute(SCIMSchemaAttribute parentAttr, SCIMSchemaAttribute childAttr)
 {
     childAttr.ParentId = parentAttr.Id;
     childAttr.FullPath = $"{parentAttr.FullPath}.{childAttr.Name}";
     Attributes.Add(childAttr);
 }
Ejemplo n.º 5
0
 public void AddAttribute(SCIMSchemaAttribute attr)
 {
     Attributes.Add(attr);
 }
Ejemplo n.º 6
0
 public IEnumerable <SCIMSchemaAttribute> GetChildren(SCIMSchemaAttribute schemaAttribute)
 {
     return(GetChildren(schemaAttribute.Id));
 }