예제 #1
0
        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));
        }
예제 #2
0
        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);
        }
예제 #3
0
        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;
        }
예제 #4
0
 public string GetActionId(IObjectFacade owner, IActionFacade actionFacade) {
     IActionSpec action = actionFacade.WrappedSpec();
     return GetObjectId(owner) + Sep + action.Id;
 }
예제 #5
0
        public string GetParameterContainerId(IActionFacade actionFacade) {
            IActionSpec action =  actionFacade.WrappedSpec();

            return action.Id + Sep + IdConstants.ParamListName;
        }
예제 #6
0
 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);
 }
예제 #7
0
 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;
 }
예제 #8
0
        public string GetSubMenuId(IObjectFacade owner, IActionFacade actionFacade) {
            IActionSpec action =  actionFacade.WrappedSpec();

            return EnsureEndsWithColon(GetObjectId(owner) + Sep + action.Id.Split('.').Last());
        }
예제 #9
0
        public string GetActionDialogId(IObjectFacade owner, IActionFacade actionFacade) {
            IActionSpec action = actionFacade.WrappedSpec();

            return GetObjectId(owner) + Sep + action.Id + Sep + IdConstants.DialogName;
        }
예제 #10
0
        public string GetParameterContainerId(IActionFacade actionFacade)
        {
            IActionSpec action = actionFacade.WrappedSpec();

            return(action.Id + Sep + IdConstants.ParamListName);
        }
예제 #11
0
        public string GetSubMenuId(IObjectFacade owner, IActionFacade actionFacade)
        {
            IActionSpec action = actionFacade.WrappedSpec();

            return(EnsureEndsWithColon(GetObjectId(owner) + Sep + action.Id.Split('.').Last()));
        }
예제 #12
0
        public string GetActionDialogId(IObjectFacade owner, IActionFacade actionFacade)
        {
            IActionSpec action = actionFacade.WrappedSpec();

            return(GetObjectId(owner) + Sep + action.Id + Sep + IdConstants.DialogName);
        }
예제 #13
0
        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);
        }
예제 #14
0
        public string GetActionId(IObjectFacade owner, IActionFacade actionFacade)
        {
            IActionSpec action = actionFacade.WrappedSpec();

            return(GetObjectId(owner) + Sep + action.Id);
        }