DeclaredMethodAnnotationDetails prefilterAnnotationInGetterMethod = new DeclaredMethodAnnotationDetails(entry.getKey(), prefilterAnnotation.build()); builder.addMethodAnnotation(prefilterAnnotationInGetterMethod); DeclaredMethodAnnotationDetails prefilterAnnotationInGetterMethod = new DeclaredMethodAnnotationDetails(entry.getKey(), prefilterAnnotation.build()); builder.addMethodAnnotation(prefilterAnnotationInGetterMethod);
DeclaredMethodAnnotationDetails preauthorizeAnnotationInGetterMethod = new DeclaredMethodAnnotationDetails(entry.getKey(), preauthorizeAnnotation.build()); builder.addMethodAnnotation(preauthorizeAnnotationInGetterMethod);
new DeclaredMethodAnnotationDetails(getter, xmlElementWrapperAnnotation.build()); builder.addMethodAnnotation(xmlIdRefAnnotationInGetterMethod); builder.addMethodAnnotation(xmlElementAnnotationInGetterMethod); builder.addMethodAnnotation(xmlElementWrapperAnnotationInGetterMethod); new DeclaredMethodAnnotationDetails(getter, xmlElementAnnotation.build()); builder.addMethodAnnotation(xmlIdRefAnnotationInGetterMethod); builder.addMethodAnnotation(xmlElementAnnotationInGetterMethod); JavaType.XML_TRANSIENT).build()); builder.addMethodAnnotation(xmlTransientAnnotationInGetterMethod);
/** * Update methods without @GvNIXWebMethod annotation with @WebMethod(exclude * = true). * * @param methodMetadataListToExclude methods to exclude from Web Service. * @param id Destination type identifier */ public void updateMethodWithoutGvNIXAnnotation( List<MethodMetadata> methodMetadataListToExclude, String id, JavaParserService javaParserService) { List<AnnotationAttributeValue<?>> attributes = new ArrayList<AnnotationAttributeValue<?>>(); attributes.add(new BooleanAttributeValue(new JavaSymbolName("exclude"), true)); AnnotationMetadata methodAnnotation = new AnnotationMetadataBuilder( new JavaType("javax.jws.WebMethod"), attributes).build(); for (MethodMetadata md : methodMetadataListToExclude) { AnnotationMetadata gvNIXWebMethodMethodAnnotation = MemberFindingUtils .getAnnotationOfType(md.getAnnotations(), new JavaType( GvNIXWebMethod.class.getName())); // Only export methods in this entity: no parent class methods check if (gvNIXWebMethodMethodAnnotation == null && javaParserService.isMetadataId(id, md)) { builder.addMethodAnnotation(new DeclaredMethodAnnotationDetails( new MethodMetadataBuilder(id, md).build(), methodAnnotation)); } } }
builder.addMethodAnnotation(new DeclaredMethodAnnotationDetails( methodMetadata, webMethod)); builder.addMethodAnnotation(new DeclaredMethodAnnotationDetails( methodMetadata, requestWrapper)); builder.addMethodAnnotation(new DeclaredMethodAnnotationDetails( methodMetadata, webResult)); builder.addMethodAnnotation(new DeclaredMethodAnnotationDetails( methodMetadata, responseWrapper)); builder.addMethodAnnotation(new DeclaredMethodAnnotationDetails( methodMetadata, oneway));
builder.addMethodAnnotation(new DeclaredMethodAnnotationDetails( methodMetadata, webMethod)); builder.addMethodAnnotation(new DeclaredMethodAnnotationDetails( methodMetadata, requestWrapper)); builder.addMethodAnnotation(new DeclaredMethodAnnotationDetails( methodMetadata, webResult)); builder.addMethodAnnotation(new DeclaredMethodAnnotationDetails( methodMetadata, responseWrapper)); builder.addMethodAnnotation(new DeclaredMethodAnnotationDetails( methodMetadata, oneway));