Ignore:
Timestamp:
04/03/12 12:09:23 (12 years ago)
Author:
vmipsl
Message:

clean + dowload file

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  
    11package com.ether; 
     2 
     3import com.ether.annotation.ControllerMethod; 
     4import org.jetbrains.annotations.NotNull; 
     5import org.jetbrains.annotations.Nullable; 
    26 
    37import java.lang.reflect.Method; 
    48import java.util.ArrayList; 
    59import java.util.List; 
    6  
    7 import org.jetbrains.annotations.NotNull; 
    8 import org.jetbrains.annotations.Nullable; 
    9  
    10 import com.ether.annotation.ControllerMethod; 
    1110 
    1211public class MethodDescription 
     
    1615        _method = method; 
    1716        _view = annotation.view(); 
     17        _defaultView = annotation.defaultView(); 
    1818        _isJsonResult = annotation.jsonResult(); 
     19        _isLoginMandatory = annotation.loginMandatory(); 
     20        _isRequestMandatory = annotation.requestMandatory(); 
     21        _isUserMandatory = annotation.userMandatory(); 
     22        _isBackofficeMethod = annotation.backofficeMethod(); 
    1923        _params = new ArrayList<ParamDescription>(); 
     24        _downloadFile = annotation.downloadFile(); 
    2025    } 
    2126 
     
    3439    { 
    3540        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; 
    3657    } 
    3758 
     
    6485    } 
    6586 
     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 
    66139    @NotNull 
    67140    private Method _method; 
    68141    @NotNull 
    69142    private String _view; 
     143    @Nullable 
     144    private String _defaultView; 
    70145    private Boolean _isJsonResult; 
    71146    @Nullable 
    72147    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; 
    73154} 
  • geisa/common/implementation/com/ether/annotation/ControllerMethod.java

    r390 r453  
    11package com.ether.annotation; 
     2 
     3import org.jetbrains.annotations.NotNull; 
     4import org.jetbrains.annotations.Nullable; 
    25 
    36import java.lang.annotation.ElementType; 
     
    69import java.lang.annotation.Target; 
    710 
    8 import org.jetbrains.annotations.NotNull; 
    9  
    1011@Retention(RetentionPolicy.RUNTIME) 
    1112@Target(ElementType.METHOD) 
    1213public @interface ControllerMethod 
    1314{ 
    14         @NotNull 
    15     String view() default ""; 
     15    @NotNull String view() default ""; 
    1616 
    17         @NotNull 
    1817    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 ""; 
    1930} 
Note: See TracChangeset for help on using the changeset viewer.