示例#1
0
 /**
  * Retrieve
  *
  * @param gameModelId
  * @return static "Finished" string...
  */
 @GET
 @Path("Encode/{gameModelId : ([1-9][0-9]*)}")
 public String encode(@PathParam("gameModelId") Long gameModelId) {
   List<VariableDescriptor> findAll = descriptorFacade.findByGameModelId(gameModelId);
   for (VariableDescriptor vd : findAll) {
     List<String> findDistinctNames = descriptorFacade.findDistinctNames(vd.getGameModel());
     List<String> findDistinctLabels = descriptorFacade.findDistinctLabels(vd.getGameModel());
     findDistinctNames.remove(vd.getName());
     findDistinctLabels.remove(vd.getLabel());
     Helper.setUniqueName(vd, findDistinctNames);
     Helper.setUniqueLabel(vd, findDistinctLabels);
     descriptorFacade.flush();
   }
   return "Finished";
 }
示例#2
0
 public RoleFacade roleFacade() throws NamingException {
   return Helper.lookupBy(RoleFacade.class);
 }
示例#3
0
 /** @return @throws NamingException */
 public AccountFacade accountFacade() throws NamingException {
   return Helper.lookupBy(AccountFacade.class);
 }