protected override List <string> GetDescriptionValues(Entity entityInput, string behavior, bool withManaged, bool withSolutionInfo, bool withUrls, Action <List <string>, Entity, bool, bool, bool> action) { var entity = entityInput.ToEntity <SdkMessageProcessingStepImage>(); List <string> values = new List <string>(); int stage = entity.Contains("sdkmessageprocessingstep.stage") ? (entity.GetAttributeValue <AliasedValue>("sdkmessageprocessingstep.stage").Value as OptionSetValue).Value : 0; int mode = entity.Contains("sdkmessageprocessingstep.mode") ? (entity.GetAttributeValue <AliasedValue>("sdkmessageprocessingstep.mode").Value as OptionSetValue).Value : 0; values.AddRange(new[] { EntityDescriptionHandler.GetAttributeString(entity, "sdkmessageprocessingstep.eventhandler") , entity.PrimaryObjectTypeCodeName , entity.SecondaryObjectTypeCodeName , EntityDescriptionHandler.GetAttributeString(entity, "sdkmessageprocessingstep.sdkmessageid") , SdkMessageProcessingStepRepository.GetStageName(stage, mode) , EntityDescriptionHandler.GetAttributeString(entity, "sdkmessageprocessingstep.rank") , EntityDescriptionHandler.GetAttributeString(entity, "sdkmessageprocessingstep.statuscode") , entity.FormattedValues[SdkMessageProcessingStepImage.Schema.Attributes.imagetype] , entity.Name , entity.EntityAlias , entity.IsManaged.ToString() , entity.IsCustomizable?.Value.ToString() , behavior }); AppendIntoValues(values, entity, false, withManaged, withSolutionInfo); values.Add(entity.Attributes1StringsSorted); return(values); }
protected override List <string> GetDescriptionValues(Entity entityInput, string behavior, bool withManaged, bool withSolutionInfo, bool withUrls, Action <List <string>, Entity, bool, bool, bool> action) { var entity = entityInput.ToEntity <RolePrivileges>(); List <string> values = new List <string>(); var businessUnit = EntityDescriptionHandler.GetAttributeString(entity, "role.businessunitid"); if (!entity.Attributes.Contains("businessunit.parentbusinessunitid")) { businessUnit = "Root Organization"; } values.AddRange(new[] { EntityDescriptionHandler.GetAttributeString(entity, "role.name") , businessUnit , EntityDescriptionHandler.GetAttributeString(entity, "privilege.name") , RolePrivilegesRepository.GetPrivilegeDepthMaskName(entity.PrivilegeDepthMask.Value) , behavior }); action(values, entity, withUrls, withManaged, withSolutionInfo); return(values); }
protected void AppendIntoValues(List <string> values, Entity entity, bool withUrls, bool withManaged, bool withSolutionInfo) { if (withManaged) { values.Add(EntityDescriptionHandler.GetAttributeString(entity, "ismanaged")); } if (withSolutionInfo) { values.Add(EntityDescriptionHandler.GetAttributeString(entity, "solution.uniquename")); if (withManaged) { values.Add(EntityDescriptionHandler.GetAttributeString(entity, "solution.ismanaged")); } values.Add(EntityDescriptionHandler.GetAttributeString(entity, "suppsolution.uniquename")); if (withManaged) { values.Add(EntityDescriptionHandler.GetAttributeString(entity, "suppsolution.ismanaged")); } } if (withUrls && this.ComponentTypeEnum.HasValue) { values.Add(_service.UrlGenerator?.GetSolutionComponentUrl(this.ComponentTypeEnum.Value, entity.Id)); } }
public override string GetName(SolutionComponent component) { var entity = GetEntity <AppModuleRoles>(component.ObjectId.Value); if (entity != null) { return(string.Format("{0} - {1}" , EntityDescriptionHandler.GetAttributeString(entity, AppModuleRoles.Schema.Attributes.appmoduleid + "." + AppModule.Schema.Attributes.name) , EntityDescriptionHandler.GetAttributeString(entity, AppModuleRoles.Schema.Attributes.roleid + "." + Role.Schema.Attributes.name) )); } return(base.GetName(component)); }
public override string GetName(SolutionComponent component) { var entity = GetEntity <PrivilegeObjectTypeCodes>(component.ObjectId.Value); if (entity != null) { return(string.Format("{0} - {1}" , entity.ObjectTypeCode , EntityDescriptionHandler.GetAttributeString(entity, PrivilegeObjectTypeCodes.Schema.Attributes.privilegeid + "." + Privilege.Schema.Attributes.name) )); } return(base.GetName(component)); }
public override string GetName(SolutionComponent solutionComponent) { var entity = GetEntity <DisplayStringMap>(solutionComponent.ObjectId.Value); if (entity != null) { return(string.Format("{0} - {1}" , EntityDescriptionHandler.GetAttributeString(entity, "displaystring.displaystringkey") , entity.ObjectTypeCode )); } return(base.GetName(solutionComponent)); }
protected override List <string> GetDescriptionValues(Entity entityInput, string behavior, bool withManaged, bool withSolutionInfo, bool withUrls, Action <List <string>, Entity, bool, bool, bool> action) { var entity = entityInput.ToEntity <PrivilegeObjectTypeCodes>(); List <string> values = new List <string>(); values.AddRange(new[] { EntityDescriptionHandler.GetAttributeString(entity, PrivilegeObjectTypeCodes.Schema.Attributes.privilegeid + "." + Privilege.Schema.Attributes.name) , entity.ObjectTypeCode , behavior }); return(values); }
public override string GetName(SolutionComponent component) { var entity = GetEntity <ChannelAccessProfileEntityAccessLevel>(component.ObjectId.Value); if (entity != null) { return(string.Format("{0} - {1} - {2}" , EntityDescriptionHandler.GetAttributeString(entity, ChannelAccessProfileEntityAccessLevel.Schema.Attributes.channelaccessprofileid + "." + ChannelAccessProfile.Schema.Attributes.name) , EntityDescriptionHandler.GetAttributeString(entity, ChannelAccessProfileEntityAccessLevel.Schema.Attributes.entityaccesslevelid + "." + Privilege.Schema.Attributes.name) , entity.EntityAccessLevelDepthMask )); } return(base.GetName(component)); }
public override string GetName(SolutionComponent component) { var entity = GetEntity <CustomControlResource>(component.ObjectId.Value); if (entity != null) { return(string.Format("{0} - {1} - {2} - {3}" , EntityDescriptionHandler.GetAttributeString(entity, CustomControlResource.Schema.Attributes.customcontrolid + "." + CustomControl.Schema.Attributes.name) , entity.Name , EntityDescriptionHandler.GetAttributeString(entity, CustomControlResource.Schema.Attributes.webresourceid + "." + WebResource.Schema.Attributes.name) , EntityDescriptionHandler.GetAttributeString(entity, CustomControlResource.Schema.Attributes.webresourceid + "." + WebResource.Schema.Attributes.webresourcetype) )); } return(base.GetName(component)); }
protected override List <string> GetDescriptionValues(Entity entityInput, string behavior, bool withManaged, bool withSolutionInfo, bool withUrls, Action <List <string>, Entity, bool, bool, bool> action) { var entity = entityInput.ToEntity <DisplayStringMap>(); List <string> values = new List <string>(); values.AddRange(new[] { EntityDescriptionHandler.GetAttributeString(entity, "displaystring.displaystringkey") , entity.ObjectTypeCode , behavior }); action(values, entity, withUrls, withManaged, withSolutionInfo); return(values); }
protected override List <string> GetDescriptionValues(Entity entityInput, string behavior, bool withManaged, bool withSolutionInfo, bool withUrls, Action <List <string>, Entity, bool, bool, bool> action) { var entity = entityInput.ToEntity <AppModuleRoles>(); List <string> values = new List <string>(); values.AddRange(new[] { EntityDescriptionHandler.GetAttributeString(entity, AppModuleRoles.Schema.Attributes.appmoduleid + "." + AppModule.Schema.Attributes.name) , EntityDescriptionHandler.GetAttributeString(entity, AppModuleRoles.Schema.Attributes.roleid + "." + Role.Schema.Attributes.name) , entity.Id.ToString() , behavior }); action(values, entity, withUrls, withManaged, withSolutionInfo); return(values); }
protected override List <string> GetDescriptionValues(Entity entityInput, string behavior, bool withManaged, bool withSolutionInfo, bool withUrls, Action <List <string>, Entity, bool, bool, bool> action) { var entity = entityInput.ToEntity <ChannelAccessProfileEntityAccessLevel>(); List <string> values = new List <string>(); values.AddRange(new[] { EntityDescriptionHandler.GetAttributeString(entity, ChannelAccessProfileEntityAccessLevel.Schema.Attributes.channelaccessprofileid + "." + ChannelAccessProfile.Schema.Attributes.name) , EntityDescriptionHandler.GetAttributeString(entity, ChannelAccessProfileEntityAccessLevel.Schema.Attributes.entityaccesslevelid + "." + Privilege.Schema.Attributes.name) , entity.EntityAccessLevelDepthMask.ToString() , behavior }); action(values, entity, withUrls, withManaged, withSolutionInfo); return(values); }
protected override List <string> GetDescriptionValues(Entity entityInput, string behavior, bool withManaged, bool withSolutionInfo, bool withUrls, Action <List <string>, Entity, bool, bool, bool> action) { var entity = entityInput.ToEntity <SdkMessageResponse>(); List <string> values = new List <string>(); values.AddRange(new[] { EntityDescriptionHandler.GetAttributeString(entity, SdkMessageResponse.Schema.Attributes.sdkmessagerequestid + "." + SdkMessageRequest.Schema.Attributes.sdkmessagepairid + "." + SdkMessagePair.Schema.Attributes.sdkmessageid + "." + SdkMessage.Schema.Attributes.name) , EntityDescriptionHandler.GetAttributeString(entity, SdkMessageResponse.Schema.Attributes.sdkmessagerequestid + "." + SdkMessageRequest.Schema.Attributes.sdkmessagepairid + "." + SdkMessagePair.Schema.Attributes.sdkmessageid + "." + SdkMessage.Schema.Attributes.categoryname) , EntityDescriptionHandler.GetAttributeString(entity, SdkMessageResponse.Schema.Attributes.sdkmessagerequestid + "." + SdkMessageRequest.Schema.Attributes.name) , EntityDescriptionHandler.GetAttributeString(entity, SdkMessageResponse.Schema.Attributes.sdkmessagerequestid + "." + SdkMessageRequest.Schema.Attributes.sdkmessagepairid + "." + SdkMessagePair.Schema.Attributes.@namespace) , EntityDescriptionHandler.GetAttributeString(entity, SdkMessageResponse.Schema.Attributes.sdkmessagerequestid + "." + SdkMessageRequest.Schema.Attributes.sdkmessagepairid + "." + SdkMessagePair.Schema.Attributes.endpoint) , entity.CustomizationLevel.ToString() , behavior }); return(values); }
protected override List <string> GetDescriptionValues(Entity entityInput, string behavior, bool withManaged, bool withSolutionInfo, bool withUrls, Action <List <string>, Entity, bool, bool, bool> action) { var entity = entityInput.ToEntity <FieldPermission>(); List <string> values = new List <string>(); string attr = string.Format("{0}.{1}", entity.EntityName, entity.AttributeLogicalName); values.AddRange(new[] { EntityDescriptionHandler.GetAttributeString(entity, "fieldsecurityprofile.name") , attr , behavior }); action(values, entity, withUrls, withManaged, withSolutionInfo); return(values); }
protected override List <string> GetDescriptionValues(Entity entityInput, string behavior, bool withManaged, bool withSolutionInfo, bool withUrls, Action <List <string>, Entity, bool, bool, bool> action) { var entity = entityInput.ToEntity <CustomControlResource>(); List <string> values = new List <string>(); values.AddRange(new[] { EntityDescriptionHandler.GetAttributeString(entity, CustomControlResource.Schema.Attributes.customcontrolid + "." + AppModule.Schema.Attributes.name) , entity.Name , EntityDescriptionHandler.GetAttributeString(entity, CustomControlResource.Schema.Attributes.webresourceid + "." + WebResource.Schema.Attributes.name) , EntityDescriptionHandler.GetAttributeString(entity, CustomControlResource.Schema.Attributes.webresourceid + "." + WebResource.Schema.Attributes.webresourcetype) , entity.Id.ToString() , behavior }); action(values, entity, withUrls, withManaged, withSolutionInfo); return(values); }
protected override List <string> GetDescriptionValues(Entity entityInput, string behavior, bool withManaged, bool withSolutionInfo, bool withUrls, Action <List <string>, Entity, bool, bool, bool> action) { var entity = entityInput.ToEntity <SdkMessageResponseField>(); List <string> values = new List <string>(); values.AddRange(new[] { EntityDescriptionHandler.GetAttributeString(entity, SdkMessagePair.Schema.Attributes.sdkmessageid + "." + SdkMessage.Schema.Attributes.name) , EntityDescriptionHandler.GetAttributeString(entity, SdkMessagePair.Schema.Attributes.sdkmessageid + "." + SdkMessage.Schema.Attributes.categoryname) , EntityDescriptionHandler.GetAttributeString(entity, SdkMessageResponse.Schema.Attributes.sdkmessagerequestid + "." + SdkMessageRequest.Schema.Attributes.name) , entity.Position.ToString() , entity.Name , entity.PublicName , entity.Value , entity.ClrFormatter , entity.Formatter , entity.ParameterBindingInformation , entity.CustomizationLevel.ToString() , behavior }); return(values); }