rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
public static List listOfDataClasses(){ | public static Collection listOfDataClasses(){ | public static List listOfDataClasses(){ try { return EntityFinder.findAllByColumn(((com.idega.core.component.data.ICObjectHome)com.idega.data.IDOLookup.getHomeLegacy(ICObject.class)).createLegacy(),com.idega.core.component.data.ICObjectBMPBean.getObjectTypeColumnName(),com.idega.core.component.data.ICObjectBM... |
return EntityFinder.findAllByColumn(((com.idega.core.component.data.ICObjectHome)com.idega.data.IDOLookup.getHomeLegacy(ICObject.class)).createLegacy(),com.idega.core.component.data.ICObjectBMPBean.getObjectTypeColumnName(),com.idega.core.component.data.ICObjectBMPBean.COMPONENT_TYPE_DATA); | com.idega.core.component.data.ICObjectHome home = (com.idega.core.component.data.ICObjectHome) com.idega.data.IDOLookup.getHomeLegacy(ICObject.class); return home.findAllByObjectType(com.idega.core.component.data.ICObjectBMPBean.COMPONENT_TYPE_DATA); | public static List listOfDataClasses(){ try { return EntityFinder.findAllByColumn(((com.idega.core.component.data.ICObjectHome)com.idega.data.IDOLookup.getHomeLegacy(ICObject.class)).createLegacy(),com.idega.core.component.data.ICObjectBMPBean.getObjectTypeColumnName(),com.idega.core.component.data.ICObjectBM... |
catch (SQLException ex) { | catch (FinderException ex) { | public static List listOfDataClasses(){ try { return EntityFinder.findAllByColumn(((com.idega.core.component.data.ICObjectHome)com.idega.data.IDOLookup.getHomeLegacy(ICObject.class)).createLegacy(),com.idega.core.component.data.ICObjectBMPBean.getObjectTypeColumnName(),com.idega.core.component.data.ICObjectBM... |
gbc.fill = gbc.HORIZONTAL; | gbc.fill = GridBagConstraints.HORIZONTAL; | protected void createComponents() { //Initialize drawing colors, border, opacity. subPane.setLayout(new GridBagLayout()); gbc = new GridBagConstraints(); gbc.fill = gbc.HORIZONTAL; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.gridx = upperLeftX=0; gbc.gridy = upp... |
yearBox.setSelectedIndex(0); | if(yearBox != null) yearBox.setSelectedIndex(0); | private void dateChanged(){ updateToday(); int todaysYear = todayCalendar.get(Calendar.YEAR); int calJulianDay = calendar.get(Calendar.DAY_OF_YEAR); int todaysJulianDay = todayCalendar.get(Calendar.DAY_OF_YEAR); int calYear = calendar.get(Calendar.YEAR); otherButton.setSe... |
throw new XReflectionFailure("Java method "+Reflection.downSelector(javaMethod.getName()) + " is not accessible.", e); | Method interfaceMethod = toInterfaceMethod(javaMethod); if (interfaceMethod == null) { throw new XReflectionFailure("Java method "+Reflection.downSelector(javaMethod.getName()) + " is not accessible.", e); } else { return invokeUniqueSymbioticMethod(symbiont, interfaceMethod, jArgs); } | private static ATObject invokeUniqueSymbioticMethod(Object symbiont, Method javaMethod, Object[] jArgs) throws InterpreterException { try { return Symbiosis.javaToAmbientTalk(javaMethod.invoke(symbiont, jArgs)); } catch (IllegalAccessException e) { // the invoked method is not publicly accessible throw new XRe... |
calTerm.empty = false; | private void appendCalendarClause(StringBuffer sb, String qevName, BwCalendar calendar, CalTerm calTerm, boolean allCalendars) throws CalFacadeException { if (calendar.getCalendarCollection()) { if (allCalendars || (calendar.getCalType() ==... | |
appendCalendarClause(sb, qevName, calendar, new CalTerm(), allCalendars); | appendCalendarClause(sb, qevName, calendar, calTerm, allCalendars); | private boolean doCalendarClause(StringBuffer sb, String qevName, BwCalendar calendar, int currentMode, boolean ignoreCreator, boolean allCalendars) throws CalFacadeException { /* if no calendar set if public SEG: publicf=true ... |
allCalendars); | calTerm, allCalendars); if (calTerm.empty) { return new TreeSet(); } | public Collection getEvents(BwCalendar calendar, BwFilter filter, BwDateTime startDate, BwDateTime endDate, int recurRetrieval, boolean freeBusy, boolean allCalendars) throws CalFacadeException { Hib... |
allCalendars); | calTerm, allCalendars); if (calTerm.empty) { throw new CalFacadeException("No valid calendars."); } | private Collection getLimitedRecurrences(BwCalendar calendar, BwFilter filter, BwDateTime startDate, BwDateTime endDate, int currentMode, boolean ignoreCreator, int recurRetrieval, ... |
form.getMsg().emit("org.bedework.pubevents.message.authuser.removed"); | form.getMsg().emit("org.bedework.client.message.authuser.removed"); | public String doAction(HttpServletRequest request, BwSession sess, PEActionForm form) throws Throwable { /** Check access */ if (!form.getUserAuth().isSuperUser()) { return "noAccess"; } CalSvcI svci = form.getCalSvcI(); svci.getUserAuth().remove... |
org.eclipse.uml2.uml.Package container = (org.eclipse.uml2.uml.Package) getRelationshipContainer(source, UMLPackage.eINSTANCE.getPackage(), req.getElementType()); | Package container = (Package) getRelationshipContainer(source, UMLPackage.eINSTANCE.getPackage(), req.getElementType()); | protected Command getCreateStartOutgoingExtension4002Command(CreateRelationshipRequest req) { EObject sourceEObject = req.getSource(); EObject targetEObject = req.getTarget(); if (false == sourceEObject instanceof Stereotype || (targetEObject != null && false == targetEObject instanceof ElementImport)) { return U... |
form.getErr().emit("org.bedework.pubevents.error.missingfield", | form.getErr().emit("org.bedework.client.error.missingfield", | private boolean validateAdminGroup(PEActionForm form) throws Throwable { boolean ok = true; CalSvcI svci = form.getCalSvcI(); BwAdminGroup updAdminGroup = form.getUpdAdminGroup(); if (updAdminGroup == null) { // bogus call. return false; } /* We should see if somebody tried to change the n... |
form.getErr().emit("org.bedework.pubevents.error.notfound", | form.getErr().emit("org.bedework.client.error.usernotfound", | private boolean validateAdminGroup(PEActionForm form) throws Throwable { boolean ok = true; CalSvcI svci = form.getCalSvcI(); BwAdminGroup updAdminGroup = form.getUpdAdminGroup(); if (updAdminGroup == null) { // bogus call. return false; } /* We should see if somebody tried to change the n... |
form.getErr().emit("org.bedework.pubevents.error.missingfield", "Name"); | form.getErr().emit("org.bedework.client.error.missingfield", "Name"); | private boolean validateNewAdminGroup(PEActionForm form) throws Throwable { boolean ok = true; CalSvcI svci = form.getCalSvcI(); BwAdminGroup updAdminGroup = form.getUpdAdminGroup(); if (updAdminGroup == null) { // bogus call. return false; } updAdminGroup.setAccount(Util.checkNull(updAdmi... |
form.getErr().emit("org.bedework.pubevents.error.missingfield", | form.getErr().emit("org.bedework.client.error.missingfield", | private boolean validateNewAdminGroup(PEActionForm form) throws Throwable { boolean ok = true; CalSvcI svci = form.getCalSvcI(); BwAdminGroup updAdminGroup = form.getUpdAdminGroup(); if (updAdminGroup == null) { // bogus call. return false; } updAdminGroup.setAccount(Util.checkNull(updAdmi... |
if (("xmlns".equals(qname) && "".equals(value)) == false) | if (uri == null && qname.startsWith("xmlns")) { log.trace("Ignore attribute: [uri=" + uri + ",qname=" + qname + ",value=" + value + "]"); } else { | public static void copyAttributes(Element destElement, Element srcElement) { NamedNodeMap attribs = srcElement.getAttributes(); for (int i = 0; i < attribs.getLength(); i++) { Attr attr = (Attr)attribs.item(i); String uri = attr.getNamespaceURI(); String qnam... |
} | public static void copyAttributes(Element destElement, Element srcElement) { NamedNodeMap attribs = srcElement.getAttributes(); for (int i = 0; i < attribs.getLength(); i++) { Attr attr = (Attr)attribs.item(i); String uri = attr.getNamespaceURI(); String qnam... | |
for (Iterator iter = toConsider.keySet().iterator(); iter.hasNext();){ String key = (String) iter.next(); if (! toModify.containsKey(key)) toModify.put(key, toConsider.get(key)); | for (final Iterator iter = toConsider.entrySet().iterator(); iter.hasNext();){ final Map.Entry entry = (Map.Entry)iter.next(); final String key = (String) entry.getKey(); if (! toModify.containsKey(key)) { toModify.put(key, entry.getValue()); } | public Map mergeAttributes(Map toModify, Map toConsider) { if (toModify == null) throw new IllegalArgumentException("toModify argument illegally null."); if (toConsider == null) throw new IllegalArgumentException("toConsider argument illegally null."); for (Iterato... |
public Events(Calintf cal, AccessUtil access, BwUser user, | public Events(Calintf cal, AccessUtil access, | public Events(Calintf cal, AccessUtil access, BwUser user, int currentMode, boolean ignoreCreator, boolean debug) { super(cal, access, user, currentMode, ignoreCreator, debug); } |
super(cal, access, user, currentMode, ignoreCreator, debug); | super(cal, access, currentMode, ignoreCreator, debug); | public Events(Calintf cal, AccessUtil access, BwUser user, int currentMode, boolean ignoreCreator, boolean debug) { super(cal, access, user, currentMode, ignoreCreator, debug); } |
override.setOwner(user); | override.setOwner(getUser()); | private void addOverride(BwEventProxy proxy, BwRecurrenceInstance inst) throws CalFacadeException { BwEventAnnotation override = proxy.getRef(); override.setOwner(user); getSess().saveOrUpdate(override); inst.setOverride(override); } |
sess.setEntity("user", user); | sess.setEntity("user", getUser()); | private void doCalendarEntities(boolean setUser, BwCalendar calendar) throws CalFacadeException { HibSession sess = getSess(); if (setUser) { sess.setEntity("user", user); } if (calendar != null) { if (calendar.getCalendarCollection()) { // Single leaf calendar sess.setEnt... |
return user.equals(val.getCreator()); | return getUser().equals(val.getCreator()); | public boolean editable(BwEvent val) throws CalFacadeException { if (currentMode == CalintfUtil.guestMode) { return false; } if (val.getPublick() != (currentMode == CalintfUtil.publicAdminMode)) { return false; } return user.equals(val.getCreator()); } |
override.setOwner(user); | override.setOwner(getUser()); | private BwEventProxy makeProxy(BwRecurrenceInstance inst, BwEventAnnotation override, CheckMap checked, int recurRetrieval) throws CalFacadeException { BwEvent mstr; if (inst != null) { mstr = inst.getMaster(); ... |
if (instOverride.getOwner().equals(user)) { | if (instOverride.getOwner().equals(getUser())) { | private BwEventProxy makeProxy(BwRecurrenceInstance inst, BwEventAnnotation override, CheckMap checked, int recurRetrieval) throws CalFacadeException { BwEvent mstr; if (inst != null) { mstr = inst.getMaster(); ... |
if (mstr.getOwner().equals(user) && mstr.getRecurring()) { | if (mstr.getOwner().equals(getUser()) && mstr.getRecurring()) { | public void updateEvent(BwEvent val) throws CalFacadeException { HibSession sess = getSess(); if (!(val instanceof BwEventProxy)) { sess.saveOrUpdate(val); if (val.getRecurring()) { /* Check the instances and see if any changes need to be made. */ updateRecurrences(val); } ... |
System.out.println("-------- "+StdDataSetParamNames.CHANNEL+ChannelIdUtil.toString(channelId)); | public edu.iris.Fissures.IfNetwork.Channel getChannel(ChannelId channelId) { System.out.println("-------- "+StdDataSetParamNames.CHANNEL+ChannelIdUtil.toString(channelId)); channelId.station_code = channelId.station_code.toLowerCase(); System.out.println("******* after "+StdDataSetParamNames.CHANNEL+ChannelIdUtil.t... | |
System.out.println("******* after "+StdDataSetParamNames.CHANNEL+ChannelIdUtil.toString(channelId)); | public edu.iris.Fissures.IfNetwork.Channel getChannel(ChannelId channelId) { System.out.println("-------- "+StdDataSetParamNames.CHANNEL+ChannelIdUtil.toString(channelId)); channelId.station_code = channelId.station_code.toLowerCase(); System.out.println("******* after "+StdDataSetParamNames.CHANNEL+ChannelIdUtil.t... | |
dquote+name+dquote+"]/../"); | dquote+name+dquote+"]"); | public Object getParameter(String name) { //ChannelProxy channelProxy = new ChannelProxy(); //ChannelId[] channelIds = getChannelIds(); //channelProxy.retrieve_grouping(channelIds, channelIds[0]); ///************************************************ if (parameterCache.containsKey(name)) { return ... |
TreeMap tm = new TreeMap(listCollator); | TreeMap tm = new TreeMap(getListCollator()); | public Collection getAddContentCalendarCollections() { try { TreeMap tm = new TreeMap(listCollator); Iterator it = fetchSvci().getAddContentCalendarCollections().iterator(); while (it.hasNext()) { BwCalendar cal = (BwCalendar)it.next(); tm.put(cal.getName(), cal); } ... |
if ((bool != null) && !form.getUserAuth().isSuperUser()) { return "noAccess"; | if (bool != null) { if (!form.getUserAuth().isSuperUser()) { return "noAccess"; } sub.setUnremoveable(bool.booleanValue()); | public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (form.getGuest()) { return "noAccess"; // First line of defence } BwSubscription sub = for... |
sub.setUnremoveable(bool.booleanValue()); | public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (form.getGuest()) { return "noAccess"; // First line of defence } BwSubscription sub = for... | |
scope.meta_defineField(pars[i].asSymbol(), args[i]); | if (isDefinition) scope.meta_defineField(pars[i].asSymbol(), args[i]); else scope.meta_assignField(pars[i].asSymbol(), args[i]); | public static final void bindArguments(String funnam, ATObject scope, ATTable parameters, ATTable arguments, boolean isDefinition) throws NATException { ATObject[] pars = parameters.asNativeTable().elements_; ATObject[] args = arguments.asNativeTable().elements_; // check to see whether the last argument is a spl... |
Acl acl = new Acl(debug); | public void testBasics() { try { // Make sonme test objects BwUser unauth = new BwUser(); BwUser owner = new BwUser("anowner"); BwUser auser = new BwUser("auser"); BwUser auserInGroup = new BwUser("auseringroup"); BwGroup agroup = new BwGroup("agroup"); BwGroup bgroup = new BwGro... | |
boolean allowed = acl.evaluateAccess(who, owner.getAccount(), how, encoded); | CurrentAccess ca = new Acl().evaluateAccess(who, owner.getAccount(), how, encoded); | private void tryEvaluateAccess(BwPrincipal who, BwPrincipal owner, Privilege[] how,char[] encoded, boolean expected, String title) throws Throwable { boolean allowed = acl.evaluateAccess(who, owner.getAccount(), how, encoded); if (debug) { log... |
log(title + " got " + allowed + " and expected " + expected); | log(title + " got " + ca.accessAllowed + " and expected " + expected); | private void tryEvaluateAccess(BwPrincipal who, BwPrincipal owner, Privilege[] how,char[] encoded, boolean expected, String title) throws Throwable { boolean allowed = acl.evaluateAccess(who, owner.getAccount(), how, encoded); if (debug) { log... |
assertEquals(title, expected, allowed); | assertEquals(title, expected, ca.accessAllowed); | private void tryEvaluateAccess(BwPrincipal who, BwPrincipal owner, Privilege[] how,char[] encoded, boolean expected, String title) throws Throwable { boolean allowed = acl.evaluateAccess(who, owner.getAccount(), how, encoded); if (debug) { log... |
semanticHint = UMLVisualIDRegistry.getType(org.eclipse.uml2.diagram.profile.edit.parts.ExtensionEditPart.VISUAL_ID); | semanticHint = UMLVisualIDRegistry.getType(ExtensionEditPart.VISUAL_ID); | protected void decorateView(View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) { if (semanticHint == null) { semanticHint = UMLVisualIDRegistry.getType(org.eclipse.uml2.diagram.profile.edit.parts.ExtensionEditPart.VISUAL_ID); view.setType(semanticHint); ... |
form.getMsg().emit("org.bedework.pubevents.message.event.added"); | form.getMsg().emit("org.bedework.client.message.event.added"); | public String doAction(HttpServletRequest request, BwSession sess, PEActionForm form) throws Throwable { boolean alerts = form.getAlertEvent(); /** Check access and set request parameters */ if (alerts) { if (!form.getUserAuth().isAlertUser()) { ... |
form.getMsg().emit("org.bedework.pubevents.message.event.updated"); | form.getMsg().emit("org.bedework.client.message.event.updated"); | public String doAction(HttpServletRequest request, BwSession sess, PEActionForm form) throws Throwable { boolean alerts = form.getAlertEvent(); /** Check access and set request parameters */ if (alerts) { if (!form.getUserAuth().isAlertUser()) { ... |
if (getOrganizer() != null) { getOrganizer().setOwner(val); } | public void setOwner(BwUser val) { super.setOwner(val); if (attendeesHelper != null) { attendeesHelper.setOwner(val); } } | |
if (getOrganizer() != null) { getOrganizer().setPublick(val); } | public void setPublick(boolean val) { super.setPublick(val); if (attendeesHelper != null) { attendeesHelper.setPublick(val); } } | |
public void changeAccess(Object o, Collection aces) throws CalFacadeException; | public void changeAccess(BwShareableDbentity ent, Collection aces) throws CalFacadeException; | public void changeAccess(Object o, Collection aces) throws CalFacadeException; |
public Collection getAces(Object o) throws CalFacadeException; | public Collection getAces(BwShareableDbentity ent) throws CalFacadeException; | public Collection getAces(Object o) throws CalFacadeException; |
if(!RS.wasNull()) parag.add(new Chunk(RS.getString(i),fonts[i-1])); | String s = RS.getString(i); if(s!=null) parag.add(new Chunk(s,fonts[i-1])); | public static MemoryFileBuffer writeStickerList(Report report,ReportInfo info){ Connection Conn = null; MemoryFileBuffer buffer = new MemoryFileBuffer(); MemoryOutputStream mos = new MemoryOutputStream(buffer); try { String[] Headers = report.getHeaders(); int Hlen = Headers.length; S... |
form.getEnv().getAppBoolProperty("app.nogroupallowed"); | form.getEnv().getAppBoolProperty("nogroupallowed"); | protected String checkGroup(HttpServletRequest request, BwActionFormBase form, boolean initCheck) throws Throwable { if (form.getGroupSet()) { return null; } CalSvcI svci = form.fetchSvci(); try { Groups adgrps = svci.getGroups(); if (form.retrieveChoos... |
runAsUser = getRunAsUser(form); | runAsUser = form.getEnv().getAppProperty("run.as.user"); | protected boolean checkSvci(HttpServletRequest request, BwActionFormBase form, BwSession sess, int access, String user, boolean publicAdmin, boo... |
CalSvcIPars pars = new CalSvcIPars(user, access, runAsUser, publicAdmin, false, null, debug); | CalSvcIPars pars = new CalSvcIPars(user, access, runAsUser, form.getEnv().getAppPrefix(), publicAdmin, false, null, debug); | protected boolean checkSvci(HttpServletRequest request, BwActionFormBase form, BwSession sess, int access, String user, boolean publicAdmin, boo... |
public CalEnv getEnv(BwActionFormBase frm) throws Throwable { | private CalEnv getEnv(HttpServletRequest request, BwActionFormBase frm) throws Throwable { | public CalEnv getEnv(BwActionFormBase frm) throws Throwable { CalEnv env = frm.getEnv(); if (env != null) { return env; } String envPrefix = JspUtil.getReqProperty(frm.getMres(), "org.bedework.envprefix"); env = new CalEnv(envPrefix, debug); frm.assi... |
String envPrefix = JspUtil.getReqProperty(frm.getMres(), "org.bedework.envprefix"); | HttpSession session = request.getSession(); ServletContext sc = session.getServletContext(); String appName = sc.getInitParameter("bwappname"); if ((appName == null) || (appName.length() == 0)) { appName = "unknown-app-name"; } String envPrefix = "org.bedework.app." + appName + "."; | public CalEnv getEnv(BwActionFormBase frm) throws Throwable { CalEnv env = frm.getEnv(); if (env != null) { return env; } String envPrefix = JspUtil.getReqProperty(frm.getMres(), "org.bedework.envprefix"); env = new CalEnv(envPrefix, debug); frm.assi... |
public boolean getPublicAdmin(UtilActionForm frm) throws Throwable { return JspUtil.getBoolProperty(frm.getMres(), "org.bedework.publicadmin", false); | public boolean getPublicAdmin(BwActionFormBase frm) throws Throwable { return frm.getEnv().getAppBoolProperty("publicadmin"); | public boolean getPublicAdmin(UtilActionForm frm) throws Throwable { return JspUtil.getBoolProperty(frm.getMres(), "org.bedework.publicadmin", false); } |
CalEnv env = getEnv(form); String appName = env.getAppProperty("app.name"); String appRoot = env.getAppProperty("app.root"); | CalEnv env = getEnv(request, form); String appName = env.getAppProperty("name"); String appRoot = env.getAppProperty("root"); | public synchronized BwSession getState(HttpServletRequest request, BwActionFormBase form, MessageResources messages, String adminUserId, boolean admin) throws... |
form.setHour24(env.getAppBoolProperty("app.hour24")); form.setMinIncrement(env.getAppIntProperty("app.minincrement")); | form.setHour24(env.getAppBoolProperty("hour24")); form.setMinIncrement(env.getAppIntProperty("minincrement")); | public synchronized BwSession getState(HttpServletRequest request, BwActionFormBase form, MessageResources messages, String adminUserId, boolean admin) throws... |
form.assignShowYearData(env.getAppBoolProperty("app.showyeardata")); | form.assignShowYearData(env.getAppBoolProperty("showyeardata")); | public synchronized BwSession getState(HttpServletRequest request, BwActionFormBase form, MessageResources messages, String adminUserId, boolean admin) throws... |
boolean guestMode = getGuestMode(frm); | CalEnv env = getEnv(request, form); setSessionAttr(request, "org.bedework.logprefix", env.getAppProperty("logprefix")); boolean guestMode = env.getAppBoolProperty("guestmode"); | public String performAction(HttpServletRequest request, HttpServletResponse response, UtilActionForm frm, MessageResources messages) throws Throwable { String forward = "success"; BwActionFormBase form = (BwActionFormBase)frm... |
String temp = request.getParameter("adminUserId"); | String temp = getReqPar(request, "adminUserId"); | public String performAction(HttpServletRequest request, HttpServletResponse response, UtilActionForm frm, MessageResources messages) throws Throwable { String forward = "success"; BwActionFormBase form = (BwActionFormBase)frm... |
CalEnv env = getEnv(form); | public String performAction(HttpServletRequest request, HttpServletResponse response, UtilActionForm frm, MessageResources messages) throws Throwable { String forward = "success"; BwActionFormBase form = (BwActionFormBase)frm... | |
form.setAutoCreateSponsors(env.getAppBoolProperty("app.autocreatesponsors")); form.setAutoCreateLocations(env.getAppBoolProperty("app.autocreatelocations")); form.setAutoDeleteSponsors(env.getAppBoolProperty("app.autodeletesponsors")); form.setAutoDeleteLocations(env.getAppBoolProperty("app.autodeletelocations")); | form.setAutoCreateSponsors(env.getAppBoolProperty("autocreatesponsors")); form.setAutoCreateLocations(env.getAppBoolProperty("autocreatelocations")); form.setAutoDeleteSponsors(env.getAppBoolProperty("autodeletesponsors")); form.setAutoDeleteLocations(env.getAppBoolProperty("autodeletelocations")); | public String performAction(HttpServletRequest request, HttpServletResponse response, UtilActionForm frm, MessageResources messages) throws Throwable { String forward = "success"; BwActionFormBase form = (BwActionFormBase)frm... |
String refreshAction = form.getEnv().getAppOptProperty("app.refresh.action"); | String refreshAction = form.getEnv().getAppOptProperty("refresh.action"); | public String performAction(HttpServletRequest request, HttpServletResponse response, UtilActionForm frm, MessageResources messages) throws Throwable { String forward = "success"; BwActionFormBase form = (BwActionFormBase)frm... |
form.getEnv().getAppIntProperty("app.refresh.interval"), | form.getEnv().getAppIntProperty("refresh.interval"), | public String performAction(HttpServletRequest request, HttpServletResponse response, UtilActionForm frm, MessageResources messages) throws Throwable { String forward = "success"; BwActionFormBase form = (BwActionFormBase)frm... |
player = new AdvancedPlayer(stream) { public void close() { System.out.println("AdvancedPlayer.close()"); super.close(); System.out.println(" done"); } }; | player = new AdvancedPlayer(stream); | public MP3Player(File f) throws PlayerException { try { file = f; stream = new FileInputStream(file); player = new AdvancedPlayer(stream) { public void close() { System.out.println("AdvancedPlayer.close()"); super.close(); System.out.println(" done"); } }; } catch (Exception exc) { throw ... |
return new NATMethodInvocation(this.getSelector(), | return new NATMethodInvocation(this.base_getSelector(), | public ATObject meta_eval(ATContext ctx) throws NATException { return new NATMethodInvocation(this.getSelector(), Evaluator.evaluateArguments(this.base_getArguments().asNativeTable(), ctx)); } |
Object val) throws CalEnvException { | Stack objStack) throws CalEnvException { | private static void doChildren(OptionElement oel, Element subroot, Object val) throws CalEnvException { try { if (!XmlUtil.hasChildren(subroot)) { // Leaf node String ndval = XmlUtil.getElementContent(subroot); String name = subroot.getNodeName(); if... |
if (val == null) { | if (objStack.empty()) { | private static void doChildren(OptionElement oel, Element subroot, Object val) throws CalEnvException { try { if (!XmlUtil.hasChildren(subroot)) { // Leaf node String ndval = XmlUtil.getElementContent(subroot); String name = subroot.getNodeName(); if... |
if (val != null) { | if (!objStack.empty()) { | private static void doChildren(OptionElement oel, Element subroot, Object val) throws CalEnvException { try { if (!XmlUtil.hasChildren(subroot)) { // Leaf node String ndval = XmlUtil.getElementContent(subroot); String name = subroot.getNodeName(); if... |
val = Class.forName(className).newInstance(); | Object val = Class.forName(className).newInstance(); | private static void doChildren(OptionElement oel, Element subroot, Object val) throws CalEnvException { try { if (!XmlUtil.hasChildren(subroot)) { // Leaf node String ndval = XmlUtil.getElementContent(subroot); String name = subroot.getNodeName(); if... |
doChildren(valnode, el, val); | doChildren(valnode, el, objStack); | private static void doChildren(OptionElement oel, Element subroot, Object val) throws CalEnvException { try { if (!XmlUtil.hasChildren(subroot)) { // Leaf node String ndval = XmlUtil.getElementContent(subroot); String name = subroot.getNodeName(); if... |
val = null; | if (className != null) { objStack.pop(); } | private static void doChildren(OptionElement oel, Element subroot, Object val) throws CalEnvException { try { if (!XmlUtil.hasChildren(subroot)) { // Leaf node String ndval = XmlUtil.getElementContent(subroot); String name = subroot.getNodeName(); if... |
doChildren(oel, root, null); | doChildren(oel, root, new Stack()); | private static OptionElement parseOptions(InputStream is) throws CalEnvException{ Reader rdr = null; try { rdr = new InputStreamReader(is); DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); factory.setNamespaceAware(false); DocumentBuilder builder = factory.newDocumentBu... |
System.out.println("requesting seismograms"); | public void retrieveData(SeisDataChangeListener dataListener){ Iterator it = seisCache.iterator(); List existingSeismos = new ArrayList(); while(it.hasNext()){ LocalSeismogramImpl current = (LocalSeismogramImpl)((SoftReference)it.next()).get(); if(current != null){ ... | |
return this.meta_assignField(name, value); | try { return this.meta_assignField(name, value); } catch (XSelectorNotFound e) { throw new XUndefinedField("variable assignment", name.getText().asNativeText().javaValue); } | public ATNil meta_assignVariable(ATSymbol name, ATObject value) throws NATException { return this.meta_assignField(name, value); } |
String jSelector = Reflection.upBaseLevelSelector(atSelector); return Reflection.downObject(Reflection.upInvocation(this, receiver, jSelector, arguments)); | try { String jSelector = Reflection.upBaseLevelSelector(atSelector); return Reflection.downObject(Reflection.upInvocation(this, receiver, jSelector, arguments)); } catch (XSelectorNotFound e) { return receiver.meta_doesNotUnderstand(atSelector); } | public ATObject meta_invoke(ATObject receiver, ATSymbol atSelector, ATTable arguments) throws NATException { String jSelector = Reflection.upBaseLevelSelector(atSelector); return Reflection.downObject(Reflection.upInvocation(this, receiver, jSelector, arguments)); } |
return this.meta_select(this, selector); | try { return this.meta_select(this, selector); } catch(XSelectorNotFound e) { throw new XUndefinedField("variable access", selector.getText().asNativeText().javaValue); } | public ATObject meta_lookup(ATSymbol selector) throws NATException { return this.meta_select(this, selector); } |
return Reflection.downObject(Reflection.upMethodSelection(this, receiver, jSelector)); | try { return Reflection.downObject(Reflection.upMethodSelection(this, receiver, jSelector)); } catch (XSelectorNotFound e2) { return receiver.meta_doesNotUnderstand(selector); } | public ATObject meta_select(ATObject receiver, ATSymbol selector) throws NATException { String jSelector = null; try { jSelector = Reflection.upBaseFieldAccessSelector(selector); return Reflection.downObject(Reflection.upFieldSelection(this, receiver, jSelector)); } catch ... |
String name = request.getParameter("name"); | String name = getReqPar(request, "name"); | public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (form.getGuest()) { return "noAccess"; // First line of defence } CalSvcI svc = form.fetch... |
return "error"; | return "retry"; | public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (form.getGuest()) { return "noAccess"; // First line of defence } CalSvcI svc = form.fetch... |
if(selectionDisplays + selectionWindow.getSize().height < tk.getScreenSize().height){ | selectionWindow.setLocation((tk.getScreenSize().width - selectionWindow.getSize().width)/2, (tk.getScreenSize().height - selectionWindow.getSize().height)/2); /*if(selectionDisplays + selectionWindow.getSize().height < tk.getScreenSize().height){ | public void createSelectionDisplay(Selection creator){ if(selectionDisplay == null){ logger.debug("creating selection display"); selectionWindow = new JFrame(); selectionWindow.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { selectionDisplay.removeAll(); } ... |
selectionDisplays += selectionWindow.getSize().height; | selectionDisplays += selectionWindow.getSize().height;*/ | public void createSelectionDisplay(Selection creator){ if(selectionDisplay == null){ logger.debug("creating selection display"); selectionWindow = new JFrame(); selectionWindow.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { selectionDisplay.removeAll(); } ... |
current.addSelection(creator); | current.add3CSelection(creator); | public void createThreeSelectionDisplay(Selection creator){ if(threeSelectionDisplay == null){ logger.debug("creating 3C selection display"); threeSelectionWindow = new JFrame(); threeSelectionDisplay = new VerticalSeismogramDisplay(mouseForwarder, motionForwarder, this); Iterator e = creator.getSei... |
if((selectionDisplays + threeSelectionWindow.getSize().height) < tk.getScreenSize().height){ threeSelectionWindow.setLocation(tk.getScreenSize().width - threeSelectionWindow.getSize().width, tk.getScreenSize().height - (selectionDisplays + threeSelectionWindow.getSize().height)); }else{ threeSelectionWindow.setLocation... | threeSelectionWindow.setLocation((tk.getScreenSize().width - threeSelectionWindow.getSize().width)/2, (tk.getScreenSize().height - threeSelectionWindow.getSize().height)/2); | public void createThreeSelectionDisplay(Selection creator){ if(threeSelectionDisplay == null){ logger.debug("creating 3C selection display"); threeSelectionWindow = new JFrame(); threeSelectionDisplay = new VerticalSeismogramDisplay(mouseForwarder, motionForwarder, this); Iterator e = creator.getSei... |
selectionDisplays -= selectionWindow.getSize().height; | public void removeAll(){ logger.debug("removing all displays"); if(parent != null){ parent.removeSelectionDisplay(this); } this.stopImageCreation(); seismograms.removeAll(); remove(seismograms); basicDisplays = new LinkedList(); sorter = new AlphaSeisSorter(); globalTimeRegistrar = new TimeConfigRegistrar(); gl... | |
selectionDisplays -= threeSelectionWindow.getSize().height; | public void removeAll(){ logger.debug("removing all displays"); if(parent != null){ parent.removeSelectionDisplay(this); } this.stopImageCreation(); seismograms.removeAll(); remove(seismograms); basicDisplays = new LinkedList(); sorter = new AlphaSeisSorter(); globalTimeRegistrar = new TimeConfigRegistrar(); gl... | |
selectionWindow.dispose(); selectionDisplays -= selectionWindow.getSize().height; selectionDisplay = null; | removeSelectionDisplay(); | public void removeSelectionDisplay(VerticalSeismogramDisplay display){ if(display == selectionDisplay){ selectionWindow.dispose(); selectionDisplays -= selectionWindow.getSize().height; selectionDisplay = null; }else{ threeSelectionWindow.dispose(); selectionDisplays -= threeSelectionWindow.getS... |
threeSelectionWindow.dispose(); selectionDisplays -= threeSelectionWindow.getSize().height; threeSelectionDisplay = null; | remove3CSelectionDisplay(); | public void removeSelectionDisplay(VerticalSeismogramDisplay display){ if(display == selectionDisplay){ selectionWindow.dispose(); selectionDisplays -= selectionWindow.getSize().height; selectionDisplay = null; }else{ threeSelectionWindow.dispose(); selectionDisplays -= threeSelectionWindow.getS... |
return (doAuth(cardnumber, monthExpires, yearExpires, amount, currency, "5", null, referenceNumber)); | String authID = (doAuth(cardnumber, monthExpires, yearExpires, amount, currency, "5", null, null)); StringBuffer buffer = getPropertyString(_client); buffer.append(TPOS3Client.PN_AUTHORIDENTIFYRSP).append("=").append(authID); return buffer.toString(); | public String creditcardAuthorization(String nameOnCard, String cardnumber, String monthExpires, String yearExpires, String ccVerifyNumber, double amount, String currency, String referenceNumber) throws CreditCardAuthorizationException{ return (doAuth(cardnumber, monthExpires, yearExpires, amount, currency, "5", nu... |
private String doAuth(String cardnumber, String monthExpires, String yearExpires, double amount, String currency, String transactionType, Object parentDataPK, String authRspID) throws TPosException { | private String doAuth(String cardnumber, String monthExpires, String yearExpires, double amount, String currency, String transactionType, Object parentDataPK, String authIDRsp) throws TPosException { | private String doAuth(String cardnumber, String monthExpires, String yearExpires, double amount, String currency, String transactionType, Object parentDataPK, String authRspID) throws TPosException { if(_client != null) { _client.setProperty(TPOS3Client.PN_USERID, _userId); _client.setProperty(TPOS3Client... |
String encodedCardNumber = CreditCardBusinessBean.encodeCreditCardNumber(cardnumber); | private String doAuth(String cardnumber, String monthExpires, String yearExpires, double amount, String currency, String transactionType, Object parentDataPK, String authRspID) throws TPosException { if(_client != null) { _client.setProperty(TPOS3Client.PN_USERID, _userId); _client.setProperty(TPOS3Client... | |
_client.setProperty(TPOS3Client.PN_PAN, cardnumber); _client.setProperty(TPOS3Client.PN_EXPIRE, monthExpires + yearExpires); | if (authIDRsp == null) { _client.setProperty(TPOS3Client.PN_PAN, cardnumber); _client.setProperty(TPOS3Client.PN_EXPIRE, monthExpires + yearExpires); } else { _client.setProperty(TPOS3Client.PN_AUTHORIDENTIFYRSP, authIDRsp); } | private String doAuth(String cardnumber, String monthExpires, String yearExpires, double amount, String currency, String transactionType, Object parentDataPK, String authRspID) throws TPosException { if(_client != null) { _client.setProperty(TPOS3Client.PN_USERID, _userId); _client.setProperty(TPOS3Client... |
entry.setCardNumber(CreditCardBusinessBean.encodeCreditCardNumber(cardnumber)); | entry.setCardNumber(encodedCardNumber); | private String doAuth(String cardnumber, String monthExpires, String yearExpires, double amount, String currency, String transactionType, Object parentDataPK, String authRspID) throws TPosException { if(_client != null) { _client.setProperty(TPOS3Client.PN_USERID, _userId); _client.setProperty(TPOS3Client... |
throw new CreditCardAuthorizationException("Unsupported"); | HashMap map = parseProperties(properties); String cardnumber = (String) map.get(TPOS3Client.PN_PAN); String expires = (String) map.get(TPOS3Client.PN_EXPIRE); String amount = (String) map.get(TPOS3Client.PN_AMOUNT); String currency = (String) map.get(TPOS3Client.PN_CURRENCY); String monthExpires = expires.substring(0,... | public void finishTransaction(String properties) throws CreditCardAuthorizationException { throw new CreditCardAuthorizationException("Unsupported"); } |
public String getAmount() { | private String getAmount() { | public String getAmount() { return Integer.toString(Integer.parseInt(_client.getProperty(TPOS3Client.PN_AMOUNT)) / amountMultiplier); } |
public String getAuthorisationCode() { | private String getAuthorisationCode() { | public String getAuthorisationCode() { return _client.getProperty(TPOS3Client.PN_AUTHORISATIONCODE); } |
public String getAutorIdentifyRSP() { | private String getAutorIdentifyRSP() { | public String getAutorIdentifyRSP() { return _client.getProperty(TPOS3Client.PN_AUTHORIDENTIFYRSP); } |
public String getCCNumber() { | private String getCCNumber() { | public String getCCNumber() { return getPan(); } |
public String getCardBrandName() { | private String getCardBrandName() { | public String getCardBrandName() { return _client.getProperty(TPOS3Client.PN_CARDBRANDNAME); } |
public String getCardCharacter() { | private String getCardCharacter() { | public String getCardCharacter() { return _client.getProperty(TPOS3Client.PN_CARDCHARACTER); } |
public String getCardTypeName() { | private String getCardTypeName() { | public String getCardTypeName() { return _client.getProperty(TPOS3Client.PN_CARDTYPENAME); } |
protected CreditCardBusiness getCreditCardBusiness(IWApplicationContext iwac) { | private CreditCardBusiness getCreditCardBusiness(IWApplicationContext iwac) { | protected CreditCardBusiness getCreditCardBusiness(IWApplicationContext iwac) { try { return (CreditCardBusiness) IBOLookup.getServiceInstance(iwac, CreditCardBusiness.class); } catch (IBOLookupException e) { throw new IBORuntimeException(e); } } |
public String getCurrency() { | private String getCurrency() { | public String getCurrency() { return _client.getProperty(TPOS3Client.PN_CURRENCY); } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.