/// <summary> /// An action defined on a service (registered as such in the Run class) and that takes one or more /// parameters of domain types will be 'contributed' to domain objects of those type(s). /// </summary> /// <param name="domainObject"></param> /// <param name="otherParam"></param> public void AContibutedAction(ADomainType domainObject, string otherParam) { throw new NotImplementedException(); }
/// <summary> /// Validates all the values for one or more of the parameters being entered by the user for a given action. /// Use the 'val' code snippet to create this method. /// </summary> /// <param name="value">Should be of the same type as the corresponding action parameter. The parameter names must also match.</param> /// <returns>If the method returns null, the value is deemed to be valid; if a string is returned, the value(s) is/are deemed invalid, and the /// string is returned to the user as a validation error message. /// </returns> public string ValidateAnAction(string param0, int param1, ADomainType value) { throw new NotImplementedException(); }
/// <summary> /// Validates the value being entered by the user into a single specified parameter on an action - in this case parameter 2. /// Use the 'val' code snippet to create this method. /// </summary> /// <param name="value">Should be of the same type as the corresponding action parameter.</param> /// <returns>If the method returns null, the value is deemed to be valid; if a string is returned, the value is deemed invalid, and the /// string is returned to the user as a validation error message. /// </returns> public string Validate2AnAction(ADomainType value) { throw new NotImplementedException(); }
/// <summary> /// To be recognised by Naked Objects an action should be public and its type should either be /// a domain object, a recognised .NET value type such as string, int, DateTime or an enum, or an IEnumerable of a domain type. /// </summary> /// <param name="param0">Parameters should be other domain types, recognised .NET value types, or, for multi-selection an IEnumerable of any recognised type.</param> /// <param name="param1"></param> /// <param name="param2"></param> /// <returns></returns> public string AnAction(string param0, int param1, ADomainType param2) { throw new NotImplementedException(); }