Changeset 453 for geisa/common/implementation
- Timestamp:
- 04/03/12 12:09:23 (12 years ago)
- Location:
- geisa/common/implementation/com/ether
- Files:
-
- 2 deleted
- 2 edited
- 5 copied
Legend:
- Unmodified
- Added
- Removed
-
geisa/common/implementation/com/ether/MethodDescription.java
r390 r453 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 _isUserMandatory = annotation.userMandatory(); 22 _isBackofficeMethod = annotation.backofficeMethod(); 19 23 _params = new ArrayList<ParamDescription>(); 24 _downloadFile = annotation.downloadFile(); 20 25 } 21 26 … … 34 39 { 35 40 return _view; 41 } 42 43 public void setView( @NotNull final String view ) 44 { 45 _view = view; 46 } 47 48 @Nullable 49 public String getDefaultView() 50 { 51 return _defaultView; 52 } 53 54 public void setDefaultView( @Nullable final String defaultView ) 55 { 56 _defaultView = defaultView; 36 57 } 37 58 … … 64 85 } 65 86 87 public Boolean isLoginMandatory() 88 { 89 return _isLoginMandatory; 90 } 91 92 public void setLoginMandatory( final Boolean loginMandatory ) 93 { 94 _isLoginMandatory = loginMandatory; 95 } 96 97 public Boolean isRequestMandatory() 98 { 99 return _isRequestMandatory; 100 } 101 102 103 public void setRequestMandatory( final Boolean requestMandatory ) 104 { 105 _isRequestMandatory = requestMandatory; 106 } 107 108 public Boolean isUserMandatory() 109 { 110 return _isUserMandatory; 111 } 112 113 public void setUserMandatory( final Boolean userMandatory ) 114 { 115 _isUserMandatory = userMandatory; 116 } 117 118 public Boolean isBackofficeMethod() 119 { 120 return _isBackofficeMethod; 121 } 122 123 public void setBackofficeMethod( final Boolean backofficeMethod ) 124 { 125 _isBackofficeMethod = backofficeMethod; 126 } 127 128 @Nullable 129 public String getDownloadFile() 130 { 131 return _downloadFile; 132 } 133 134 public void setDownloadFile( @Nullable final String downloadFile ) 135 { 136 _downloadFile = downloadFile; 137 } 138 66 139 @NotNull 67 140 private Method _method; 68 141 @NotNull 69 142 private String _view; 143 @Nullable 144 private String _defaultView; 70 145 private Boolean _isJsonResult; 71 146 @Nullable 72 147 private List<ParamDescription> _params; 148 private Boolean _isLoginMandatory; 149 private Boolean _isRequestMandatory; 150 private Boolean _isUserMandatory; 151 private Boolean _isBackofficeMethod; 152 @Nullable 153 private String _downloadFile; 73 154 } -
geisa/common/implementation/com/ether/annotation/ControllerMethod.java
r390 r453 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 userMandatory() default false; 24 25 boolean backofficeMethod() default false; 26 27 @Nullable String defaultView() default ""; 28 29 @Nullable String downloadFile() default ""; 19 30 }
Note: See TracChangeset
for help on using the changeset viewer.