Changeset 406 for tapas/common


Ignore:
Timestamp:
03/09/12 16:31:28 (12 years ago)
Author:
vmipsl
Message:

gestion langues fr/en

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  
    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        _isBackofficeMethod = annotation.backofficeMethod(); 
    1922        _params = new ArrayList<ParamDescription>(); 
    2023    } 
     
    3437    { 
    3538        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; 
    3655    } 
    3756 
     
    6483    } 
    6584 
     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 
    66115    @NotNull 
    67116    private Method _method; 
    68117    @NotNull 
    69118    private String _view; 
     119    @Nullable 
     120    private String _defaultView; 
    70121    private Boolean _isJsonResult; 
    71122    @Nullable 
    72123    private List<ParamDescription> _params; 
     124    private Boolean _isLoginMandatory; 
     125    private Boolean _isRequestMandatory; 
     126    private Boolean _isBackofficeMethod; 
    73127} 
  • tapas/common/implementation/com/ether/annotation/ControllerMethod.java

    r376 r406  
    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 backofficeMethod() default false; 
     24 
     25    @Nullable String defaultView() default ""; 
    1926} 
Note: See TracChangeset for help on using the changeset viewer.