private String createOperationName(OperationMethodBinding theMethodBinding) { return theMethodBinding.getName().substring(1); }
private String createOperationName(OperationMethodBinding theMethodBinding) { StringBuilder retVal = new StringBuilder(); if (theMethodBinding.getResourceName() != null) { retVal.append(theMethodBinding.getResourceName()); } retVal.append('-'); if (theMethodBinding.isCanOperateAtInstanceLevel()) { retVal.append('i'); } if (theMethodBinding.isCanOperateAtServerLevel()) { retVal.append('s'); } retVal.append('-'); // Exclude the leading $ retVal.append(theMethodBinding.getName(), 1, theMethodBinding.getName().length()); return retVal.toString(); }
private String createOperationName(OperationMethodBinding theMethodBinding) { StringBuilder retVal = new StringBuilder(); if (theMethodBinding.getResourceName() != null) { retVal.append(theMethodBinding.getResourceName()); } retVal.append('-'); if (theMethodBinding.isCanOperateAtInstanceLevel()) { retVal.append('i'); } if (theMethodBinding.isCanOperateAtServerLevel()) { retVal.append('s'); } retVal.append('-'); // Exclude the leading $ retVal.append(theMethodBinding.getName(), 1, theMethodBinding.getName().length()); return retVal.toString(); }
/** * Get the key for the baseMethodBinding. This is: * <ul> * <li>the compartName for SearchMethodBindings * <li>the methodName for OperationMethodBindings * <li> {@link #DEFAULT_METHOD_KEY} for all other MethodBindings * </ul> * @param theBinding the methodbinding * @return the key for the methodbinding. */ private String getBindingKey(final BaseMethodBinding<?> theBinding) { if (theBinding instanceof OperationMethodBinding) { return ((OperationMethodBinding) theBinding).getName(); } else if (theBinding instanceof SearchMethodBinding) { Search search = theBinding.getMethod().getAnnotation(Search.class); return search.compartmentName(); } else { return DEFAULT_METHOD_KEY; } }
if (operationNames.add(opName)) { rest.addOperation().setName(methodBinding.getName().substring(1)).setDefinition(("OperationDefinition/" + opName)); if (operationNames.add(opName)) { ourLog.debug("Found bound operation: {}", opName); rest.addOperation().setName(methodBinding.getName().substring(1)).setDefinition(("OperationDefinition/" + opName));
if (operationNames.add(opName)) { rest.addOperation().setName(methodBinding.getName().substring(1)).setDefinition(new Reference("OperationDefinition/" + opName)); if (operationNames.add(opName)) { ourLog.debug("Found bound operation: {}", opName); rest.addOperation().setName(methodBinding.getName().substring(1)).setDefinition(new Reference("OperationDefinition/" + opName));
if (operationNames.add(opName)) { rest.addOperation().setName(methodBinding.getName()).getDefinition() .setReference("OperationDefinition/" + opName); String opName = myOperationBindingToName.get(methodBinding); if (operationNames.add(opName)) { rest.addOperation().setName(methodBinding.getName()).getDefinition() .setReference("OperationDefinition/" + opName);
private String createOperationName(OperationMethodBinding theMethodBinding) { return theMethodBinding.getName().substring(1); }
op.setIdempotent(sharedDescription.isIdempotent()); op.setCode(sharedDescription.getName()); if (sharedDescription.isCanOperateAtInstanceLevel()) { op.setInstance(sharedDescription.isCanOperateAtInstanceLevel());
op.setIdempotent(sharedDescription.isIdempotent()); op.setCode(sharedDescription.getName().substring(1)); if (sharedDescription.isCanOperateAtInstanceLevel()) { op.setInstance(sharedDescription.isCanOperateAtInstanceLevel());
op.setAffectsState(!sharedDescription.isIdempotent()); op.setCode(sharedDescription.getName().substring(1)); if (sharedDescription.isCanOperateAtInstanceLevel()) { op.setInstance(sharedDescription.isCanOperateAtInstanceLevel());
private String createOperationName(OperationMethodBinding theMethodBinding) { StringBuilder retVal = new StringBuilder(); if (theMethodBinding.getResourceName() != null) { retVal.append(theMethodBinding.getResourceName()); } retVal.append('-'); if (theMethodBinding.isCanOperateAtInstanceLevel()) { retVal.append('i'); } if (theMethodBinding.isCanOperateAtServerLevel()) { retVal.append('s'); } retVal.append('-'); // Exclude the leading $ retVal.append(theMethodBinding.getName(), 1, theMethodBinding.getName().length()); return retVal.toString(); }
private String createOperationName(OperationMethodBinding theMethodBinding) { StringBuilder retVal = new StringBuilder(); if (theMethodBinding.getResourceName() != null) { retVal.append(theMethodBinding.getResourceName()); } retVal.append('-'); if (theMethodBinding.isCanOperateAtInstanceLevel()) { retVal.append('i'); } if (theMethodBinding.isCanOperateAtServerLevel()) { retVal.append('s'); } retVal.append('-'); // Exclude the leading $ retVal.append(theMethodBinding.getName(), 1, theMethodBinding.getName().length()); return retVal.toString(); }
private String createOperationName(OperationMethodBinding theMethodBinding) { StringBuilder retVal = new StringBuilder(); if (theMethodBinding.getResourceName() != null) { retVal.append(theMethodBinding.getResourceName()); } retVal.append('-'); if (theMethodBinding.isCanOperateAtInstanceLevel()) { retVal.append('i'); } if (theMethodBinding.isCanOperateAtServerLevel()) { retVal.append('s'); } retVal.append('-'); // Exclude the leading $ retVal.append(theMethodBinding.getName(), 1, theMethodBinding.getName().length()); return retVal.toString(); }
private String createOperationName(OperationMethodBinding theMethodBinding) { StringBuilder retVal = new StringBuilder(); if (theMethodBinding.getResourceName() != null) { retVal.append(theMethodBinding.getResourceName()); } retVal.append('-'); if (theMethodBinding.isCanOperateAtInstanceLevel()) { retVal.append('i'); } if (theMethodBinding.isCanOperateAtServerLevel()) { retVal.append('s'); } retVal.append('-'); // Exclude the leading $ retVal.append(theMethodBinding.getName(), 1, theMethodBinding.getName().length()); return retVal.toString(); }
op.setIdempotent(sharedDescription.isIdempotent()); op.setCode(sharedDescription.getName().substring(1)); if (sharedDescription.isCanOperateAtInstanceLevel()) { op.setInstance(sharedDescription.isCanOperateAtInstanceLevel());
op.setIdempotent(sharedDescription.isIdempotent()); op.setCode(sharedDescription.getName()); if (sharedDescription.isCanOperateAtInstanceLevel()) { op.setInstance(sharedDescription.isCanOperateAtInstanceLevel());
op.setIdempotent(sharedDescription.isIdempotent()); op.setCode(sharedDescription.getName().substring(1)); if (sharedDescription.isCanOperateAtInstanceLevel()) { op.setInstance(sharedDescription.isCanOperateAtInstanceLevel());
op.setIdempotent(sharedDescription.isIdempotent()); op.setCode(sharedDescription.getName().substring(1)); if (sharedDescription.isCanOperateAtInstanceLevel()) { op.setInstance(sharedDescription.isCanOperateAtInstanceLevel());
op.setAffectsState(!sharedDescription.isIdempotent()); op.setCode(sharedDescription.getName().substring(1)); if (sharedDescription.isCanOperateAtInstanceLevel()) { op.setInstance(sharedDescription.isCanOperateAtInstanceLevel());