1 27 28 package org.objectweb.speedo.metadata; 29 30 35 public abstract class SpeedoIdentity { 36 public final static byte USER_ID = 2; 37 public final static byte CONTAINER_ID = 1; 38 public final static byte NO_ID = 0; 39 40 46 public static byte toByte(String s) { 47 if (s.equalsIgnoreCase("application")) 48 return USER_ID; 49 else if (s.equalsIgnoreCase("datastore")) 50 return CONTAINER_ID; 51 else 52 return CONTAINER_ID; 53 } } | Popular Tags |