public string GetParameterId(IActionFacade actionFacade, IActionParameterFacade parameterFacade) { IActionParameterSpec parameter = parameterFacade.WrappedSpec(); IActionSpec action = actionFacade.WrappedSpec(); return(action.OnSpec.ShortName + Sep + action.Id + Sep + NameUtils.CapitalizeName(parameter.Id)); }
public string GetFindMenuId(IObjectFacade objectFacade, IActionFacade actionFacade, string propertyName) { IActionSpec action = actionFacade == null ? null : actionFacade.WrappedSpec(); string contextActionName = action == null ? "" : Sep + action.Id; return(GetObjectId(objectFacade) + contextActionName + Sep + NameUtils.CapitalizeName(propertyName) + Sep + IdConstants.FindMenuName); }
public string GetActionId(string propertyName, IActionFacade actionContextActionFacade, IObjectFacade actionObjectFacade, IObjectFacade targetObjectFacade, IActionFacade targetActionFacade) { IActionSpec actionContextAction = actionContextActionFacade == null ? null : actionContextActionFacade.WrappedSpec(); INakedObjectAdapter actionContextTarget = actionObjectFacade == null ? null : actionObjectFacade.WrappedAdapter(); IActionSpec targetActionContextAction = targetActionFacade == null ? null : targetActionFacade.WrappedSpec(); INakedObjectAdapter targetActionContextTarget = targetObjectFacade == null ? null : targetObjectFacade.WrappedAdapter(); string contextActionName = actionContextAction == null ? "" : actionContextAction.Id + Sep; string contextNakedObjectId = actionContextTarget == null || actionContextTarget == targetActionContextTarget ? "" : GetObjectId(actionObjectFacade) + Sep; string propertyId = string.IsNullOrEmpty(propertyName) ? "" : NameUtils.CapitalizeName(propertyName) + Sep; return contextNakedObjectId + contextActionName + propertyId + GetObjectId(targetObjectFacade) + Sep + targetActionContextAction.Id; }
public string GetActionId(IObjectFacade owner, IActionFacade actionFacade) { IActionSpec action = actionFacade.WrappedSpec(); return GetObjectId(owner) + Sep + action.Id; }
public string GetParameterContainerId(IActionFacade actionFacade) { IActionSpec action = actionFacade.WrappedSpec(); return action.Id + Sep + IdConstants.ParamListName; }
public string GetParameterId(IActionFacade actionFacade, IActionParameterFacade parameterFacade) { IActionParameterSpec parameter = parameterFacade.WrappedSpec(); IActionSpec action = actionFacade.WrappedSpec(); return action.OnSpec.ShortName + Sep + action.Id + Sep + NameUtils.CapitalizeName(parameter.Id); }
public string GetFindMenuId(IObjectFacade objectFacade, IActionFacade actionFacade, string propertyName) { IActionSpec action = actionFacade == null ? null : actionFacade.WrappedSpec(); string contextActionName = action == null ? "" : Sep + action.Id; return GetObjectId(objectFacade) + contextActionName + Sep + NameUtils.CapitalizeName(propertyName) + Sep + IdConstants.FindMenuName; }
public string GetSubMenuId(IObjectFacade owner, IActionFacade actionFacade) { IActionSpec action = actionFacade.WrappedSpec(); return EnsureEndsWithColon(GetObjectId(owner) + Sep + action.Id.Split('.').Last()); }
public string GetActionDialogId(IObjectFacade owner, IActionFacade actionFacade) { IActionSpec action = actionFacade.WrappedSpec(); return GetObjectId(owner) + Sep + action.Id + Sep + IdConstants.DialogName; }
public string GetParameterContainerId(IActionFacade actionFacade) { IActionSpec action = actionFacade.WrappedSpec(); return(action.Id + Sep + IdConstants.ParamListName); }
public string GetSubMenuId(IObjectFacade owner, IActionFacade actionFacade) { IActionSpec action = actionFacade.WrappedSpec(); return(EnsureEndsWithColon(GetObjectId(owner) + Sep + action.Id.Split('.').Last())); }
public string GetActionDialogId(IObjectFacade owner, IActionFacade actionFacade) { IActionSpec action = actionFacade.WrappedSpec(); return(GetObjectId(owner) + Sep + action.Id + Sep + IdConstants.DialogName); }
public string GetActionId(string propertyName, IActionFacade actionContextActionFacade, IObjectFacade actionObjectFacade, IObjectFacade targetObjectFacade, IActionFacade targetActionFacade) { IActionSpec actionContextAction = actionContextActionFacade == null ? null : actionContextActionFacade.WrappedSpec(); INakedObjectAdapter actionContextTarget = actionObjectFacade == null ? null : actionObjectFacade.WrappedAdapter(); IActionSpec targetActionContextAction = targetActionFacade == null ? null : targetActionFacade.WrappedSpec(); INakedObjectAdapter targetActionContextTarget = targetObjectFacade == null ? null : targetObjectFacade.WrappedAdapter(); string contextActionName = actionContextAction == null ? "" : actionContextAction.Id + Sep; string contextNakedObjectId = actionContextTarget == null || actionContextTarget == targetActionContextTarget ? "" : GetObjectId(actionObjectFacade) + Sep; string propertyId = string.IsNullOrEmpty(propertyName) ? "" : NameUtils.CapitalizeName(propertyName) + Sep; return(contextNakedObjectId + contextActionName + propertyId + GetObjectId(targetObjectFacade) + Sep + targetActionContextAction.Id); }
public string GetActionId(IObjectFacade owner, IActionFacade actionFacade) { IActionSpec action = actionFacade.WrappedSpec(); return(GetObjectId(owner) + Sep + action.Id); }