Here are the examples of the java api @com.vaadin.connect.auth.AnonymousAllowed taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
8 Examples
19
Source : JsonTestService.java
with Apache License 2.0
from vaadin
with Apache License 2.0
from vaadin
/**
* Get array int
*
* @param input
* input string array
* @return array of int
*/
@AnonymousAllowed
@PermitAll
public int[] getArrayInt(String[] input) {
return new int[] { 1, 2 };
}
19
Source : JsonTestService.java
with Apache License 2.0
from vaadin
with Apache License 2.0
from vaadin
/**
* The method won't be generated because {@link DenyAll} annotation is present
* on it.
*
* @param input
* input map
* @return boolean value
*/
@AnonymousAllowed
@DenyAll
public boolean restrictedGetBooleanValue(Map<String, User> input) {
return false;
}
19
Source : JsonTestService.java
with Apache License 2.0
from vaadin
with Apache License 2.0
from vaadin
/**
* Get user by id
*
* @param id
* id of user
* @return user with given id
*/
@AnonymousAllowed
@RolesAllowed("overridden_by_anonymous")
public User getUserById(int id) {
return null;
}
19
Source : JsonTestService.java
with Apache License 2.0
from vaadin
with Apache License 2.0
from vaadin
/**
* Two parameters input method
*
* @param input
* first input description
* @param secondInput
* second input description
* @return boolean value
*/
@AnonymousAllowed
public boolean getTwoParameters(String input, int secondInput) {
return false;
}
19
Source : DenyAllService.java
with Apache License 2.0
from vaadin
with Apache License 2.0
from vaadin
@AnonymousAllowed
public void shouldBeDisplayed3() {
}
19
Source : DemoVaadinService.java
with Apache License 2.0
from vaadin
with Apache License 2.0
from vaadin
@AnonymousAllowed
public ComplexResponse complexEnreplacediesTest(ComplexRequest request) {
Map<Integer, List<String>> results = new HashMap<>();
for (int i = 0; i < request.count; i++) {
List<String> subresults = new ArrayList<>(i);
for (int j = 0; j < i; j++) {
subresults.add(Integer.toString(j));
}
results.put(i, subresults);
}
return new ComplexResponse(request.name, results);
}
19
Source : DemoVaadinService.java
with Apache License 2.0
from vaadin
with Apache License 2.0
from vaadin
@AnonymousAllowed
public boolean isOk() {
return true;
}
19
Source : DemoVaadinService.java
with Apache License 2.0
from vaadin
with Apache License 2.0
from vaadin
@AnonymousAllowed
public String hasAnonymousAccess() {
return "anonymous success";
}