Changeset 406 for tapas/common
- Timestamp:
- 03/09/12 16:31:28 (12 years ago)
- Location:
- tapas/common/implementation/com/ether
- Files:
-
- 1 deleted
- 2 edited
- 3 copied
Legend:
- Unmodified
- Added
- Removed
-
tapas/common/implementation/com/ether/MethodDescription.java
r376 r406 1 1 package com.ether; 2 3 import com.ether.annotation.ControllerMethod; 4 import org.jetbrains.annotations.NotNull; 5 import org.jetbrains.annotations.Nullable; 2 6 3 7 import java.lang.reflect.Method; 4 8 import java.util.ArrayList; 5 9 import java.util.List; 6 7 import org.jetbrains.annotations.NotNull;8 import org.jetbrains.annotations.Nullable;9 10 import com.ether.annotation.ControllerMethod;11 10 12 11 public class MethodDescription … … 16 15 _method = method; 17 16 _view = annotation.view(); 17 _defaultView = annotation.defaultView(); 18 18 _isJsonResult = annotation.jsonResult(); 19 _isLoginMandatory = annotation.loginMandatory(); 20 _isRequestMandatory = annotation.requestMandatory(); 21 _isBackofficeMethod = annotation.backofficeMethod(); 19 22 _params = new ArrayList<ParamDescription>(); 20 23 } … … 34 37 { 35 38 return _view; 39 } 40 41 public void setView( @NotNull final String view ) 42 { 43 _view = view; 44 } 45 46 @Nullable 47 public String getDefaultView() 48 { 49 return _defaultView; 50 } 51 52 public void setDefaultView( @Nullable final String defaultView ) 53 { 54 _defaultView = defaultView; 36 55 } 37 56 … … 64 83 } 65 84 85 public Boolean isLoginMandatory() 86 { 87 return _isLoginMandatory; 88 } 89 90 public void setLoginMandatory( final Boolean loginMandatory ) 91 { 92 _isLoginMandatory = loginMandatory; 93 } 94 95 public Boolean isRequestMandatory() 96 { 97 return _isRequestMandatory; 98 } 99 100 public void setRequestMandatory( final Boolean requestMandatory ) 101 { 102 _isRequestMandatory = requestMandatory; 103 } 104 105 public Boolean isBackofficeMethod() 106 { 107 return _isBackofficeMethod; 108 } 109 110 public void setBackofficeMethod( final Boolean backofficeMethod ) 111 { 112 _isBackofficeMethod = backofficeMethod; 113 } 114 66 115 @NotNull 67 116 private Method _method; 68 117 @NotNull 69 118 private String _view; 119 @Nullable 120 private String _defaultView; 70 121 private Boolean _isJsonResult; 71 122 @Nullable 72 123 private List<ParamDescription> _params; 124 private Boolean _isLoginMandatory; 125 private Boolean _isRequestMandatory; 126 private Boolean _isBackofficeMethod; 73 127 } -
tapas/common/implementation/com/ether/annotation/ControllerMethod.java
r376 r406 1 1 package com.ether.annotation; 2 3 import org.jetbrains.annotations.NotNull; 4 import org.jetbrains.annotations.Nullable; 2 5 3 6 import java.lang.annotation.ElementType; … … 6 9 import java.lang.annotation.Target; 7 10 8 import org.jetbrains.annotations.NotNull;9 10 11 @Retention(RetentionPolicy.RUNTIME) 11 12 @Target(ElementType.METHOD) 12 13 public @interface ControllerMethod 13 14 { 14 @NotNull 15 String view() default ""; 15 @NotNull String view() default ""; 16 16 17 @NotNull18 17 boolean jsonResult() default false; 18 19 boolean loginMandatory() default false; 20 21 boolean requestMandatory() default false; 22 23 boolean backofficeMethod() default false; 24 25 @Nullable String defaultView() default ""; 19 26 }
Note: See TracChangeset
for help on using the changeset viewer.