code
stringlengths
3
1.18M
language
stringclasses
1 value
package org.rapla.framework; @SuppressWarnings("unused") public class TypedComponentRole<T> { String id; public TypedComponentRole(String id) { this.id = id.intern(); } public String getId() { return id; } public String toString() { return id; } ...
Java
package org.rapla.framework; import java.net.URL; import org.rapla.framework.logger.Logger; public interface StartupEnvironment { int CONSOLE = 1; int WEBSTART = 2; int APPLET = 3; Configuration getStartupConfiguration() throws RaplaException; URL getDownloadURL() throws RaplaException; URL...
Java
package org.rapla.framework; public interface RaplaContext { /** Returns a reference to the requested object (e.g. a component instance). * throws a RaplaContextException if the object can't be returned. This could have * different reasons: For example it is not found in the context, or there has been * ...
Java
package org.rapla.framework; public interface Disposable { public void dispose(); }
Java
package org.rapla.framework; import java.util.HashMap; public class RaplaDefaultContext implements RaplaContext { private final HashMap<String,Object> contextObjects = new HashMap<String,Object>(); protected final RaplaContext parent; public RaplaDefaultContext() { this( null ); } ...
Java
/*--------------------------------------------------------------------------* | Copyright (C) 2014 Christopher Kohlhaas | | | | This program is free software; you can redistribute it and/or modify | | it under ...
Java
package org.rapla.framework; public class ConfigurationException extends Exception { private static final long serialVersionUID = 1L; public ConfigurationException(String string, Throwable exception) { super( string, exception); } public ConfigurationException(String string) { ...
Java
package org.rapla.framework; public class RaplaSynchronizationException extends RaplaException { private static final long serialVersionUID = 1L; public RaplaSynchronizationException(String text) { super(text); } public RaplaSynchronizationException(Throwable ex) { super( ex.getMessage(), ex); ...
Java
/*--------------------------------------------------------------------------* | Copyright (C) 2014 Christopher Kohlhaas | | | | This program is free software; you can redistribute it and/or modify | | it un...
Java
package org.rapla.framework; import java.util.ArrayList; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; public class DefaultConfiguration implements Configuration { Map<String,String> attributes = new LinkedHashMap<String, String>(); List<DefaultConfiguration> children = new Arr...
Java
package org.rapla.client; import org.rapla.facade.CalendarSelectionModel; import org.rapla.framework.TypedComponentRole; import org.rapla.gui.AppointmentStatusFactory; import org.rapla.gui.ObjectMenuFactory; import org.rapla.gui.OptionPanel; import org.rapla.gui.PluginOptionPanel; import org.rapla.gui.PublishExtensio...
Java
/*--------------------------------------------------------------------------* | Copyright (C) 2014 Christopher Kohlhaas, Frithjof Kurtz | | | | This program is free software; you can redistribute it and/or modify | | it un...
Java
/*--------------------------------------------------------------------------* main.raplaContainer.dispose(); | Copyright (C) 2014 Christopher Kohlhaas | | | | This program is free software; you can r...
Java
/*--------------------------------------------------------------------------* | Copyright (C) 2014 Christopher Kohlhaas | | | | This program is free software; you can redistribute it and/or modify | | it un...
Java
/*--------------------------------------------------------------------------* | Copyright (C) 2014 Christopher Kohlhaas | | | | This program is free software; you can redistribute it and/or modify | | it un...
Java
/*--------------------------------------------------------------------------* | Copyright (C) 2014 Christopher Kohlhaas | | | | This program is free software; you can redistribute it and/or modify | | it un...
Java
/*--------------------------------------------------------------------------* | Copyright (C) 2014 Christopher Kohlhaas | | | | This program is free software; you can redistribute it and/or modify | | it un...
Java
package org.rapla.client; import java.util.List; import org.rapla.ConnectInfo; import org.rapla.framework.Container; import org.rapla.framework.PluginDescriptor; import org.rapla.framework.TypedComponentRole; public interface ClientServiceContainer extends Container { TypedComponentRole<List<PluginDe...
Java
/*--------------------------------------------------------------------------* | Copyright (C) 2014 Christopher Kohlhaas | | | | This program is free software; you can redistribute it and/or modify | | it un...
Java
package org.rapla.client; /** classes implementing ClientExtension are started automaticaly when a user has successfully login into the Rapla system. A class added as service doesn't need to implement a specific interface and is instanciated automaticaly after client login. You can add a RaplaContext parameter to yo...
Java
/*--------------------------------------------------------------------------* | Copyright (C) 2014 Christopher Kohlhaas | | | | This program is free software; you can redistribute it and/or modify | | it un...
Java
/*--------------------------------------------------------------------------* | Copyright (C) 2014 Christopher Kohlhaas | | | | This program is free software; you can redistribute it and/or modify | | it un...
Java
package org.rapla.examples; import java.net.MalformedURLException; import java.net.URL; import org.rapla.framework.Configuration; import org.rapla.framework.DefaultConfiguration; import org.rapla.framework.RaplaException; import org.rapla.framework.StartupEnvironment; import org.rapla.framework.logger.Logger; /** St...
Java
package org.rapla.examples; import java.util.Locale; import org.rapla.RaplaMainContainer; import org.rapla.entities.domain.Allocatable; import org.rapla.facade.ClientFacade; import org.rapla.framework.RaplaContext; import org.rapla.framework.RaplaException; import org.rapla.framework.StartupEnvironment; imp...
Java
/*--------------------------------------------------------------------------* | Copyright (C) 2014 Christopher Kohlhaas | | | | This program is free software; you can redistribute it and/or modify | | it un...
Java
// Copyright 2008 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writ...
Java
// Copyright 2012 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writ...
Java
// Copyright 2008 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writ...
Java
package org.rapla.rest.gwtjsonrpc.common; import java.lang.reflect.Type; import java.util.Date; import java.util.LinkedHashMap; import java.util.LinkedHashSet; import java.util.Map; import java.util.Set; import org.rapla.components.util.SerializableDateTimeFormat; import org.rapla.entities.configuration.internal.Rapl...
Java
package org.rapla.rest.gwtjsonrpc.common; public interface FutureResult<T> { public T get() throws Exception; public T get(long wait) throws Exception; public void get(AsyncCallback<T> callback); }
Java
package org.rapla.rest.gwtjsonrpc.common; @java.lang.annotation.Retention(value=java.lang.annotation.RetentionPolicy.RUNTIME) @java.lang.annotation.Target(value={java.lang.annotation.ElementType.METHOD}) public @interface ResultType { Class value(); Class container() default Object.class; }
Java
// Copyright 2009 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writ...
Java
// Copyright 2008 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writ...
Java
package org.rapla.rest.gwtjsonrpc.common; public class ResultImpl<T> implements FutureResult<T> { Exception ex; T result; public static VoidResultImpl VOID = new VoidResultImpl(); public static class VoidResultImpl extends ResultImpl<org.rapla.rest.gwtjsonrpc.common.VoidResult> { VoidResultImpl() { } ...
Java
// Copyright 2008 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writ...
Java
// Copyright 2008 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writ...
Java
// Copyright 2008 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writ...
Java
// Copyright 2008 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writ...
Java
// Copyright 2008 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writ...
Java
// Copyright 2008 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writ...
Java
// Copyright 2008 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writ...
Java
// Copyright 2008 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writ...
Java
// Copyright 2008 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writ...
Java
package org.rapla.rest; public @interface GwtIncompatible { }
Java
package org.rapla.rest.client; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; import java.io.OutputStreamWriter; import java.io.Writer; import java.net.HttpURLConnection; import java.net.URL; import java.util.zip.GZIPInputStream; import java.util....
Java
package org.rapla.rest.jsonpatch.mergepatch.server; import com.google.gson.JsonElement; final class ArrayMergePatch extends JsonMergePatch { // Always an array private final JsonElement content; ArrayMergePatch(final JsonElement content) { super(content); this.content = clearNulls(content); } @Ove...
Java
package org.rapla.rest.jsonpatch.mergepatch.server; public class JsonPatchException extends Exception { private static final long serialVersionUID = 1L; public JsonPatchException(String string) { super(string); } }
Java
package org.rapla.rest.jsonpatch.mergepatch.server; import java.util.Iterator; import java.util.Map; import com.google.gson.JsonArray; import com.google.gson.JsonElement; import com.google.gson.JsonObject; public abstract class JsonMergePatch { protected final JsonElement origPatch; /** * Protected constructor...
Java
/* * Copyright (c) 2014, Francis Galiegue (fgaliegue@gmail.com) * * This software is dual-licensed under: * * - the Lesser General Public License (LGPL) version 3.0 or, at your option, any * later version; * - the Apache Software License (ASL) version 2.0. * * The text of both licenses is available under the src/resour...
Java
package org.rapla.rest.server; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.Date; import java.util.List; import java.util.Map; import javax.jws.WebParam; import javax.jws.WebService; import org.rapla.entities.User; import org.rapla.entities.domain.Allocatable; im...
Java
package org.rapla.rest.server; import java.io.IOException; import javax.servlet.ServletContext; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.rapla.framework.RaplaContext; import org.rapla.framework.RaplaContextException...
Java
package org.rapla.rest.server; import java.io.IOException; import java.lang.reflect.Method; import java.lang.reflect.Modifier; import java.util.ArrayList; import java.util.Collection; import java.util.HashSet; import java.util.List; import java.util.Map; import javax.servlet.ServletContext; import javax.servlet.Servl...
Java
package org.rapla.rest.server; import java.util.ArrayList; import java.util.List; import javax.jws.WebParam; import javax.jws.WebService; import org.rapla.entities.dynamictype.DynamicType; import org.rapla.entities.dynamictype.internal.DynamicTypeImpl; import org.rapla.framework.RaplaContext; import org.rapla.framew...
Java
package org.rapla.rest.server; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.List; import java.util.Map; import javax.jws.WebParam; import javax.jws.WebService; import org.rapla.entities.User; import org.rapla.entities.domain.Allocatable; import org.rapla.entities...
Java
package org.rapla.rest.server; import java.io.IOException; import java.util.HashMap; import java.util.Map; import javax.servlet.ServletContext; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.rapla.facade.RaplaComponent; i...
Java
/* * AbstractTreeTableModel.java * * Copyright (c) 1998 Sun Microsystems, Inc. All Rights Reserved. * * Sun Microsystems grants you ("Licensee") a non-exclusive, royalty * free, license to use, modify and redistribute this software in * source and binary code form, provided that i) this copyright notice * and l...
Java
/* * Sun Microsystems grants you ("Licensee") a non-exclusive, royalty * free, license to use, modify and redistribute this software in * source and binary code form, provided that i) this copyright notice * and license appear on all copies of the software; and ii) Licensee * does not utilize the software in a man...
Java
/*--------------------------------------------------------------------------* | Copyright (C) 2014 Christopher Kohlhaas | | | | This program is free software; you can redistribute it and/or modify | | it un...
Java
/*--------------------------------------------------------------------------* | Copyright (C) 2014 Christopher Kohlhaas | | | | This program is free software; you can redistribute it and/or modify | | it un...
Java
/* * Sun Microsystems grants you ("Licensee") a non-exclusive, royalty * free, license to use, modify and redistribute this software in * source and binary code form, provided that i) this copyright notice * and license appear on all copies of the software; and ii) Licensee * does not utilize the software in a man...
Java
/*--------------------------------------------------------------------------* | Copyright (C) 2014 Christopher Kohlhaas | | | | This program is free software; you can redistribute it and/or modify | | it un...
Java
/*--------------------------------------------------------------------------* | Copyright (C) 2014 Christopher Kohlhaas | | | | This program is free software; you can redistribute it and/or modify | | it un...
Java
package org.rapla.components.xmlbundle.impl; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.nio.charset.Charset; import java.util.Enumeration; import java.util.LinkedHashMap; import java.util.LinkedHashSet; import java.util.Map; import java.util.Properti...
Java
/*--------------------------------------------------------------------------* | Copyright (C) 2014 Christopher Kohlhaas | | | | This program is free software; you can redistribute it and/or modify | | it un...
Java
/*--------------------------------------------------------------------------* | Copyright (C) 2014 Christopher Kohlhaas | | | | This program is free software; you can redistribute it and/or modify | | it un...
Java
/*--------------------------------------------------------------------------* | Copyright (C) 2014 Christopher Kohlhaas | | | | This program is free software; you can redistribute it and/or modify | | it un...
Java
/*--------------------------------------------------------------------------* | Copyright (C) 2014 Christopher Kohlhaas | | | | This program is free software; you can redistribute it and/or modify | | it un...
Java
/*--------------------------------------------------------------------------* | Copyright (C) 2014 Christopher Kohlhaas | | | | This program is free software; you can redistribute it and/or modify | | it un...
Java
/*--------------------------------------------------------------------------* | Copyright (C) 2014 Christopher Kohlhaas | | | | This program is free software; you can redistribute it and/or modify | | it un...
Java
/*--------------------------------------------------------------------------* | Copyright (C) 2014 Christopher Kohlhaas | | | | This program is free software; you can redistribute it and/or modify | | it un...
Java
/*--------------------------------------------------------------------------* | Copyright (C) 2014 Christopher Kohlhaas | | | | This program is free software; you can redistribute it and/or modify | | it un...
Java
/*--------------------------------------------------------------------------* | Copyright (C) 2014 Christopher Kohlhaas | | | | This program is free software; you can redistribute it and/or modify | | it un...
Java
/*--------------------------------------------------------------------------* | Copyright (C) 2014 Christopher Kohlhaas | | | | This program is free software; you can redistribute it and/or modify | | it un...
Java
/* * Sun Microsystems grants you ("Licensee") a non-exclusive, royalty * free, license to use, modify and redistribute this software in * source and binary code form, provided that i) this copyright notice * and license appear on all copies of the software; and ii) Licensee * does not utilize the software in a man...
Java
/*--------------------------------------------------------------------------* | Copyright (C) 2014 Christopher Kohlhaas | | | | This program is free software; you can redistribute it and/or modify | | it un...
Java
/*--------------------------------------------------------------------------* | Copyright (C) 2014 Christopher Kohlhaas | | | | This program is free software; you can redistribute it and/or modify | | it un...
Java
/*--------------------------------------------------------------------------* | Copyright (C) 2014 Christopher Kohlhaas | | | | This program is free software; you can redistribute it and/or modify | | it under ...
Java
/*--------------------------------------------------------------------------* | Copyright (C) 2014 Christopher Kohlhaas | | | | This program is free software; you can redistribute it and/or modify | | it un...
Java
/*--------------------------------------------------------------------------* | Copyright (C) 2014 Christopher Kohlhaas | | | | This program is free software; you can redistribute it and/or modify | | it un...
Java
/*--------------------------------------------------------------------------* | Copyright (C) 2014 Christopher Kohlhaas | | | | This program is free software; you can redistribute it and/or modify | | it un...
Java
/*--------------------------------------------------------------------------* | Copyright (C) 2014 Christopher Kohlhaas | | | | This program is free software; you can redistribute it and/or modify | | it un...
Java
/*--------------------------------------------------------------------------* | Copyright (C) 2014 Christopher Kohlhaas | | | | This program is free software; you can redistribute it and/or modify | | it un...
Java
/*--------------------------------------------------------------------------* | Copyright (C) 2014 Christopher Kohlhaas | | | | This program is free software; you can redistribute it and/or modify | | it un...
Java
/*--------------------------------------------------------------------------* | Copyright (C) 2014 Christopher Kohlhaas | | | | This program is free software; you can redistribute it and/or modify | | it un...
Java
/*--------------------------------------------------------------------------* | Copyright (C) 2014 Christopher Kohlhaas | | | | This program is free software; you can redistribute it and/or modify | | it un...
Java
/*--------------------------------------------------------------------------* | Copyright (C) 2014 Christopher Kohlhaas | | | | This program is free software; you can redistribute it and/or modify | | it un...
Java
/*--------------------------------------------------------------------------* | Copyright (C) 2014 Christopher Kohlhaas | | | | This program is free software; you can redistribute it and/or modify | | it un...
Java
/*--------------------------------------------------------------------------* | Copyright (C) 2014 Christopher Kohlhaas | | | | This program is free software; you can redistribute it and/or modify | | it un...
Java
/*--------------------------------------------------------------------------* | Copyright (C) 2014 Christopher Kohlhaas | | | | This program is free software; you can redistribute it and/or modify | | it un...
Java
/*--------------------------------------------------------------------------* | Copyright (C) 2003 Christopher Kohlhaas | | | | This program is free software; you can redistribute it and/or modify | | it un...
Java
/*--------------------------------------------------------------------------* | Copyright (C) 2006 Christopher Kohlhaas | | | | This program is free software; you can redistribute it and/or modify | | it un...
Java
/*--------------------------------------------------------------------------* | Copyright (C) 2014 Christopher Kohlhaas | | | | This program is free software; you can redistribute it and/or modify | | it un...
Java
/*--------------------------------------------------------------------------* | Copyright (C) 2014 Christopher Kohlhaas | | | | This program is free software; you can redistribute it and/or modify | | it under ...
Java
/*--------------------------------------------------------------------------* | Copyright (C) 2014 Christopher Kohlhaas | | | | This program is free software; you can redistribute it and/or modify | | it un...
Java
/*--------------------------------------------------------------------------* | Copyright (C) 2014 Christopher Kohlhaas | | | | This program is free software; you can redistribute it and/or modify | | it un...
Java
/*--------------------------------------------------------------------------* | Copyright (C) 2006 Gereon Fassbender | | | | This program is free software; you can redistribute it and/or modify | | it un...
Java
package org.rapla.components.iolayer; import java.awt.Graphics2D; import java.awt.print.PageFormat; import java.awt.print.Printable; import com.itextpdf.text.Document; import com.itextpdf.text.Rectangle; import com.itextpdf.text.pdf.PdfContentByte; import com.itextpdf.text.pdf.PdfTemplate; import com.itextp...
Java
/*--------------------------------------------------------------------------* | Copyright (C) 2014 Christopher Kohlhaas | | | | This program is free software; you can redistribute it and/or modify | | it un...
Java
/*--------------------------------------------------------------------------* | Copyright (C) 2006 Gereon Fassbender | | | | This program is free software; you can redistribute it and/or modify | | it un...
Java
package org.rapla.components.iolayer; import java.io.InputStream; public class FileContent { String name; InputStream inputStream; public InputStream getInputStream() { return inputStream; } void setInputStream(InputStream inputStream) { this.inputStream = inputStream; } ...
Java