Fixed code formatting.

This commit is contained in:
Sipke Schoorstra
2015-07-17 13:30:07 +01:00
parent 2507ef17d3
commit 65509b5eea
5 changed files with 11 additions and 19 deletions

View File

@@ -21,11 +21,10 @@ namespace Orchard.AuditTrail.Recipes.Executors {
_wca = wca; _wca = wca;
} }
public override string Name public override string Name {
{
get { return "AuditTrail"; } get { return "AuditTrail"; }
} }
public override void Execute(RecipeExecutionContext context) { public override void Execute(RecipeExecutionContext context) {
if (!_authorizer.Authorize(Permissions.ImportAuditTrail)) { if (!_authorizer.Authorize(Permissions.ImportAuditTrail)) {
Logger.Warning("Blocked {0} from importing an audit trail because this user does not have the ImportauditTrail permission.", _wca.GetContext().CurrentUser.UserName); Logger.Warning("Blocked {0} from importing an audit trail because this user does not have the ImportauditTrail permission.", _wca.GetContext().CurrentUser.UserName);

View File

@@ -13,18 +13,15 @@ namespace Orchard.DynamicForms.Recipes.Builders {
_formService = formService; _formService = formService;
} }
public override string Name public override string Name {
{
get { return "FormSubmissions"; } get { return "FormSubmissions"; }
} }
public override LocalizedString DisplayName public override LocalizedString DisplayName {
{
get { return T("Form Submissions"); } get { return T("Form Submissions"); }
} }
public override LocalizedString Description public override LocalizedString Description {
{
get { return T("Exports submitted forms."); } get { return T("Exports submitted forms."); }
} }

View File

@@ -14,8 +14,7 @@ namespace Orchard.DynamicForms.Recipes.Executors {
_formService = formService; _formService = formService;
} }
public override string Name public override string Name {
{
get { return "Forms"; } get { return "Forms"; }
} }
public override void Execute(RecipeExecutionContext context) { public override void Execute(RecipeExecutionContext context) {

View File

@@ -6,7 +6,7 @@ using Orchard.Localization;
using Orchard.Recipes.Services; using Orchard.Recipes.Services;
namespace Orchard.Layouts.Recipes.Builders { namespace Orchard.Layouts.Recipes.Builders {
public class CustomElementsStep : RecipeBuilderStep { public class CustomElementsStep : RecipeBuilderStep {
private readonly IRepository<ElementBlueprint> _repository; private readonly IRepository<ElementBlueprint> _repository;
@@ -14,18 +14,15 @@ namespace Orchard.Layouts.Recipes.Builders {
_repository = repository; _repository = repository;
} }
public override string Name public override string Name {
{
get { return "CustomElements"; } get { return "CustomElements"; }
} }
public override LocalizedString DisplayName public override LocalizedString DisplayName {
{
get { return T("Custom Elements"); } get { return T("Custom Elements"); }
} }
public override LocalizedString Description public override LocalizedString Description {
{
get { return T("Exports custom defined elements."); } get { return T("Exports custom defined elements."); }
} }

View File

@@ -32,7 +32,7 @@ namespace Orchard.Layouts.Recipes.Executors {
element.BaseElementState = elementElement.Element("BaseElementState").Value; element.BaseElementState = elementElement.Element("BaseElementState").Value;
} }
} }
private ElementBlueprint GetOrCreateElement(string typeName) { private ElementBlueprint GetOrCreateElement(string typeName) {
var element = _repository.Get(x => x.ElementTypeName == typeName); var element = _repository.Get(x => x.ElementTypeName == typeName);