conflict_resolution
stringlengths
27
16k
<<<<<<< import edu.illinois.library.cantaloupe.Application; ======= import edu.illinois.library.cantaloupe.Application; import org.apache.commons.configuration.Configuration; import org.restlet.data.CacheDirective; >>>>>>> import edu.illinois.library.cantaloupe.Application; import org.apache.commons.configuration.Co...
<<<<<<< tester.testContentDispositionHeaderSetToAttachmentWithFilename(uri, filename); ======= tester.testContentDispositionHeaderSetToAttachmentWithFilenameInQuery(uri, expected); >>>>>>> tester.testContentDispositionHeaderSetToAttachmentWithFilename(uri, expected); <<<<<<< tester.t...
<<<<<<< validateRequestedArea(ops, sourceFormat, info); try { processor.validate(ops, fullSize); } catch (IllegalArgumentException e) { throw new IllegalClientArgumentException(e.getMessage(), e); } if (config.getBoolean(Key.IIIF_2_RESTRICT_TO_SIZES, fal...
<<<<<<< void testStringConstructor() { ======= public void testCopyConstructor() { Query query2 = new Query(instance); assertEquals("value1", query2.getFirstValue("key1")); assertEquals("value2", query2.getFirstValue("key2")); } @Test public void testConstructorWithEmptySt...
<<<<<<< public void testCacheHeadersWhenClientCachingIsEnabled() throws Exception { Configuration config = Configuration.getInstance(); ======= public void testCacheHeadersWhenClientCachingIsEnabledAndResponseIsCacheable() throws Exception { Configuration config = ConfigurationFactory.getInsta...
<<<<<<< import com.fasterxml.jackson.databind.ObjectMapper; import edu.illinois.library.cantaloupe.RestletApplication; ======= import edu.illinois.library.cantaloupe.WebApplication; import edu.illinois.library.cantaloupe.cache.Cache; >>>>>>> import edu.illinois.library.cantaloupe.RestletApplication; <<<<<<< import ...
<<<<<<< protected static final String RESPONSE_CONTENT_DISPOSITION_QUERY_ARG = "response-content-disposition"; ======= public static final String AUTHORIZATION_DELEGATE_METHOD = "authorized?"; public static final String BASE_URI_CONFIG_KEY = "base_uri"; public static final Stri...
<<<<<<< void testSanitizeWithStrings() { assertEquals("", StringUtils.sanitize("dirt", "dirt")); assertEquals("y", StringUtils.sanitize("dirty", "dirt")); assertEquals("dirty", StringUtils.sanitize("dir1ty", "1")); ======= public void testSanitize1() { assertEquals("", StringUt...
<<<<<<< ======= processor.validate(ops, fullSize); validateScale(info.getOrientationSize(), (Scale) ops.getFirst(Scale.class)); // Find out whether the processor supports the source format by // asking it whether it offers any output formats for it...
<<<<<<< private Component component; private boolean httpEnabled; private int httpPort; private boolean httpsEnabled; private String httpsKeyPassword; private String httpsKeyStorePassword; private String httpsKeyStorePath; private String httpsKeyStoreType; private int httpsPort; ...
<<<<<<< tester.testContentDispositionHeaderSetToAttachmentWithFilename(uri, filename); ======= tester.testContentDispositionHeaderSetToAttachmentWithFilenameInQuery(uri, expected); >>>>>>> tester.testContentDispositionHeaderSetToAttachmentWithFilename(uri, expected); <<<<<<< tester....
<<<<<<< lock.writeLock().lock(); LOGGER.info("put(): caching: {}", identifier); ======= >>>>>>>
<<<<<<< ======= assertEquals(0, red); assertEquals(0, green); assertEquals(0, blue); // Test the font color pixel = overlaidImage.getRGB(9, 8); alpha = (pixel >> 24) & 0xff; red = (pixel >> 16) & 0xff; green = (pixel >> 8) & 0xff; blue = (pixel)...
<<<<<<< void testGETNotFound() { ======= public void testGETForbidden() { URI uri = getHTTPURI("/forbidden/info.json"); tester.testForbidden(uri); } @Test public void testGETNotFound() { >>>>>>> void testGETForbidden() { URI uri = getHTTPURI("/forbidden/info.json"); ...
<<<<<<< ======= try { final ReductionFactor reductionFactor = new ReductionFactor(); // If we are normalizing, we need to read the entire image region. final boolean normalize = (opList.getFirst(Normalize.class) != null); final ProcessBuilder pb = getProcessBu...
<<<<<<< import java.util.Arrays; ======= import edu.illinois.library.cantaloupe.util.StringUtils; >>>>>>> import edu.illinois.library.cantaloupe.util.StringUtils; import java.util.Arrays;
<<<<<<< void testGETNotFound() { ======= public void testGETForbidden() { URI uri = getHTTPURI("/forbidden/full/full/0/color.jpg"); tester.testForbidden(uri); } @Test public void testGETNotFound() { >>>>>>> void testGETForbidden() { URI uri = getHTTPURI("/forbidden/fu...
<<<<<<< private InputStream docInputStream; ======= private Dimension imageSize; >>>>>>> <<<<<<< ======= private void loadDocument() throws IOException { if (doc == null) { final Stopwatch watch = new Stopwatch(); if (sourceFile != null) { doc = PDDocum...
<<<<<<< import java.util.EnumSet; ======= import java.util.Arrays; >>>>>>> <<<<<<< ======= /** * @return Whether metadata can be skipped when reading. */ private boolean canIgnoreMetadata() { final Configuration config = Configuration.getInstance(); final boolean preserveMetadata...
<<<<<<< instance.setIdentifier(new Identifier(OBJECT_KEY)); ======= instance.setIdentifier(new Identifier(OBJECT_KEY_WITH_CONTENT_TYPE_AND_RECOGNIZED_EXTENSION)); instance.setContext(new RequestContext()); >>>>>>> instance.setIdentifier(new Identifier(OBJECT_KEY_WITH_CONTENT_TYPE_AND_...
<<<<<<< import edu.illinois.library.cantaloupe.processor.ProcessorFactory; import edu.illinois.library.cantaloupe.image.watermark.WatermarkService; ======= import edu.illinois.library.cantaloupe.processor.StreamProcessor; >>>>>>> import edu.illinois.library.cantaloupe.image.watermark.WatermarkService; import edu.ill...
<<<<<<< import static org.junit.jupiter.api.Assertions.*; ======= import java.net.URI; import static org.junit.Assert.*; >>>>>>> import java.net.URI; import static org.junit.jupiter.api.Assertions.*; <<<<<<< void testGETWithEndpointEnabled() throws Exception { ======= public void testGETWithEndpointDisa...
<<<<<<< public void mainWithPurgeIdentifierArgExits() throws Exception { ======= @Ignore // this test is too timing-sensitive and command-line purging is deprecated in 3.4 anyway public void testMainWithPurgeExpiredCacheArg() throws Exception { >>>>>>> @Ignore // this test is too timing-sensitive and...
<<<<<<< ======= /** * @see #getPublicRootReference() */ protected Reference getPublicReference() { final Request request = getRequest(); return getPublicReference(request.getRootRef(), request.getResourceRef(), request.getHeaders()); } /** * @see #getPub...
<<<<<<< return new ConcurrentFileOutputStream<>(tempFile, ======= // Create the containing directory. This may throw a // FileAlreadyExistsException for concurrent invocations with the // same argument. Files.createDirectories(tempFile.ge...
<<<<<<< import com.fasterxml.jackson.databind.ObjectMapper; import edu.illinois.library.cantaloupe.RestletApplication; ======= import edu.illinois.library.cantaloupe.WebApplication; >>>>>>> import edu.illinois.library.cantaloupe.RestletApplication; <<<<<<< public void testDoGetAsJson() { Configuration.g...
<<<<<<< /** * A global resolver is specified using the {@link Key#RESOLVER_STATIC} * configuration key. */ STATIC, /** * A resolver specific to the request is acquired from the {@link * DelegateMethod#RESOLVER} delegate method. */ DE...
<<<<<<< ======= * 4.7. "When the client requests an image, the server may add a link * header to the response that indicates the canonical URI for that * request." */ @Test public void testCanonicalUriLinkHeader() throws Exception { final String path = "/" + IMAGE + "/pct:50,50,50,...
<<<<<<< ======= public static final String CONTENT_DISPOSITION_CONFIG_KEY = "endpoint.iiif.content_disposition"; public static final String RESTRICT_TO_SIZES_CONFIG_KEY = "endpoint.iiif.2.restrict_to_sizes"; >>>>>>> <<<<<<< final Identifier identifier = getIdentifier(); ...
<<<<<<< private static InitializationException initializationException; private static boolean isInitialized = false; /** ImageMagick 7 uses a `magick` command. Earlier versions use `convert` and `identify`. */ private static AtomicBoolean isUsingVersion7; ======= // ImageMagick 7 uses a `mag...
<<<<<<< log.errorf("%s times attempts to get a wx access_token , but all failed!", retryTimes); throw e; ======= throw Lang.wrapThrow(e); >>>>>>> log.errorf("%s times attempts to get a wx access_token , but all failed!", retryTimes); throw Lang.wrapThrow(e);
<<<<<<< import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.List; ======= >>>>>>> import java.io.File; import java.io.FileNotFoundException; import java.io...
<<<<<<< project.getNodeRoot().findAll(mockActionContext("branch=" + initialBranch.getName()), new PagingParametersImpl(1, 10000L, "name", SortOrder.ASCENDING)).forEach(node -> nodes.add(node)); assertThat(nodes).as("Nodes in initial branch").usingElementComparatorOnFields("uuid").doesNotContain(subFolder, su...
<<<<<<< Objects.requireNonNull(tagFamilyUuid, "tagFamilyUuid must not be null"); return invokeRequest(GET, "/" + projectName + "/tagFamilies/" + tagFamilyUuid + "/tags" + getQuery(parameters), TagListResponse.class); ======= Objects.requireNonNull(uuid, "uuid must not be null"); return handleRequest(GET, "/" ...
<<<<<<< import com.gentics.mesh.core.data.GraphFieldContainerEdge.Type; ======= import com.gentics.mesh.context.InternalActionContext; >>>>>>> import com.gentics.mesh.core.data.GraphFieldContainerEdge.Type; import com.gentics.mesh.context.InternalActionContext; <<<<<<< import com.gentics.mesh.graphdb.spi.TrxHandler...
<<<<<<< String uuid = db().tx(() -> folder("news").getUuid()); VersionReference version = db().tx(() -> { ======= String uuid = db().noTx(() -> folder("news").getUuid()); String version = db().noTx(() -> { >>>>>>> String uuid = db().tx(() -> folder("news").getUuid()); String version = db().tx(() -> { <<...
<<<<<<< public void setAuthentication(JWTAuthentication authentication) { ======= /** * Set the authentication provider. * * @param authentication */ public void setAuthentication(MeshRestClientAuthenticationProvider authentication) { >>>>>>> /** * Set the authentication provider. * * @param authe...
<<<<<<< // TODO add filtering for query nodes ======= // set the languageTags as context parameters for the search gc.getNodeParameters().setLanguages(languageTags.stream().toArray(String[]::new)); >>>>>>> // TODO add filtering for query nodes gc.getNodeParameters().setLanguages(languageTags...
<<<<<<< import org.n52.sos.ds.hibernate.entities.observation.ereporting.EReportingSeries; import org.n52.sos.ogc.gml.AbstractFeature; import org.n52.sos.ogc.gml.time.TimeInstant; import org.n52.sos.ogc.om.OmObservableProperty; ======= import org.n52.sos.ds.hibernate.entities.ereporting.EReportingSeries; >>>>>>> impo...
<<<<<<< import com.gentics.mesh.core.data.project.HibProject; ======= import com.gentics.mesh.core.data.Project; import com.gentics.mesh.core.rest.MeshEvent; >>>>>>> import com.gentics.mesh.core.data.project.HibProject; import com.gentics.mesh.core.rest.MeshEvent; <<<<<<< private static EventAwareCache<String, Hib...
<<<<<<< envMap.put(HttpServerConfig.MESH_HTTP_CORS_ORIGIN_PATTERN_ENV, "*"); envMap.put(HttpServerConfig.MESH_HTTP_CORS_ENABLE_ENV, "true"); ======= envMap.put(MeshOptions.MESH_CLUSTER_INIT_ENV, "true"); >>>>>>> envMap.put(MeshOptions.MESH_CLUSTER_INIT_ENV, "true"); envMap.put(HttpServerConfig.MESH_HTTP_CO...
<<<<<<< import java.util.List; import java.util.Map; import java.util.function.Function; import java.util.stream.Collectors; import com.gentics.mesh.core.data.GraphFieldContainerEdge.Type; ======= import com.gentics.mesh.context.InternalActionContext; >>>>>>> import java.util.List; import java.util.Map; import jav...
<<<<<<< import java.util.Optional; ======= import com.fasterxml.jackson.annotation.JsonProperty; >>>>>>> import java.util.Optional; import com.fasterxml.jackson.annotation.JsonProperty; <<<<<<< @Override public Optional<SchemaChangeModelImpl> compareTo(FieldSchema fieldSchema) { if (fieldSchema instanceof St...
<<<<<<< import com.gentics.mesh.core.rest.node.field.list.impl.HtmlFieldListImpl; ======= import com.gentics.mesh.core.data.search.SearchQueueBatch; >>>>>>> import com.gentics.mesh.core.rest.node.field.list.impl.HtmlFieldListImpl; import com.gentics.mesh.core.data.search.SearchQueueBatch;
<<<<<<< import static com.gentics.mesh.search.index.MappingHelper.ANALYZED; import static com.gentics.mesh.search.index.MappingHelper.BOOLEAN; import static com.gentics.mesh.search.index.MappingHelper.DATE; import static com.gentics.mesh.search.index.MappingHelper.DOUBLE; import static com.gentics.mesh.search.index.Map...
<<<<<<< void markAllAsApplied(MeshRoot meshRoot); ======= public void markAllAsApplied(MeshRoot meshRoot) { db.tx(tx -> { List<HighLevelChange> changes = highLevelChangesList.getList(); for (HighLevelChange change : changes) { meshRoot.getChangelogRoot().add(change, 0); } tx.success(); }); } ...
<<<<<<< private Database database; private final boolean clustered; ======= private final Database database; private final SearchQueue searchQueue; private final MetricsService metrics; >>>>>>> private final Database database; private final MetricsService metrics; private final boolean clustered; <<<<<<< p...
<<<<<<< Project project = MeshInternal.get().boot().projectRoot().findByName(TestDataProvider.PROJECT_NAME); ac.data().put(RouterStorage.PROJECT2_CONTEXT_KEY, project); ======= ac.data().put(RouterStorage.PROJECT_CONTEXT_KEY, TestFullDataProvider.PROJECT_NAME); >>>>>>> ac.data().put(RouterStorage.PROJECT2_CO...
<<<<<<< ContentDaoWrapper contentDao = tx.contentDao(); String path = "/News/2015/blume.jpg"; HibNode node = content("news_2015"); ======= ContentDaoWrapper contentDao = tx.data().contentDao(); node = content("news_2015"); >>>>>>> ContentDaoWrapper contentDao = tx.contentDao(); node = content("n...
<<<<<<< String pathSegementFieldValue = newsNode.getPathSegment(project().getLatestBranch().getUuid(), ContainerType.DRAFT, english() .getLanguageTag()); ======= String pathSegementFieldValue = newsNode.getPathSegment(project().getLatestRelease().getUuid(), ContainerType.DRAFT, english() .getLanguageTa...
<<<<<<< /** * Return the field schema with the given name. * * @param fieldName * @return */ Optional<FieldSchema> getFieldSchema(String fieldName); /** * Return the schema version. * * @return */ String getVersion(); /** * Set the schema version. * * @param version */ void setVersi...
<<<<<<< import static org.assertj.core.api.Assertions.assertThat; ======= import static com.gentics.mesh.util.MeshAssert.latchFor; import static io.netty.handler.codec.http.HttpResponseStatus.BAD_REQUEST; >>>>>>> import static com.gentics.mesh.util.MeshAssert.latchFor; import static io.netty.handler.codec.http.HttpR...
<<<<<<< import com.gentics.mesh.core.data.search.SearchQueueEntry; ======= import com.gentics.mesh.core.data.search.SearchQueueBatch; import com.gentics.mesh.core.data.search.SearchQueueEntry; >>>>>>> import com.gentics.mesh.core.data.search.SearchQueueBatch; import com.gentics.mesh.core.data.search.SearchQueueEntry...
<<<<<<< + fromContainerVersion.getUuid() + "} to version {" + toContainerVersion.getUuid() + "} for branch {" + branch.getUuid() + "} in project {" + project.getUuid() + "}"); ======= + fromContainerVersion.getUuid() + "} to version {" + toContainerVersion.getUuid() + "} for release {" + release.getU...
<<<<<<< checkOut(project, HAS_BRANCH_ROOT, BranchRootImpl.class, response, HIGH); checkOut(project, HAS_NODE_ROOT, NodeRootImpl.class, response, HIGH); checkOut(project, HAS_TAGFAMILY_ROOT, TagFamilyRootImpl.class, response, HIGH); checkOut(project, HAS_ROOT_NODE, NodeImpl.class, response, HIGH); checkOut(pro...
<<<<<<< import com.gentics.mesh.core.data.NodeGraphFieldContainer; import com.gentics.mesh.core.data.Release; ======= import com.gentics.mesh.core.data.NodeGraphFieldContainer; >>>>>>> import com.gentics.mesh.core.data.NodeGraphFieldContainer; import com.gentics.mesh.core.data.Release; import com.gentics.mesh.core.d...
<<<<<<< ======= import com.gentics.mesh.core.rest.user.NodeReference; import com.gentics.mesh.graphdb.Tx; >>>>>>> import com.gentics.mesh.core.rest.user.NodeReference;
<<<<<<< import com.gentics.mesh.core.data.impl.GraphFieldContainerEdgeImpl; ======= import com.gentics.mesh.core.data.generic.MeshVertexImpl; >>>>>>> import com.gentics.mesh.core.data.generic.MeshVertexImpl; import com.gentics.mesh.core.data.impl.GraphFieldContainerEdgeImpl;
<<<<<<< import com.gentics.mesh.core.rest.MeshEvent; import com.gentics.mesh.core.rest.common.ContainerType; import com.gentics.mesh.core.rest.event.role.TagPermissionChangedEventModel; import com.gentics.mesh.core.rest.event.tag.TagMeshEventModel; import com.gentics.mesh.core.rest.project.ProjectReference; ======= i...
<<<<<<< import java.awt.image.BufferedImage; import org.assertj.core.api.Assertions; import com.gentics.mesh.assertj.impl.BranchAssert; import com.gentics.mesh.assertj.impl.BranchResponseAssert; ======= import com.gentics.mesh.assertj.impl.BranchAssert; import com.gentics.mesh.assertj.impl.BranchResponseAssert; >>...
<<<<<<< ======= import static com.gentics.mesh.core.data.relationship.GraphPermission.READ_PERM; >>>>>>> <<<<<<< ======= import java.util.Collections; import java.util.HashSet; import java.util.Set; >>>>>>> <<<<<<< ======= import com.gentics.mesh.madl.traversal.TraversalResult; import com.gentics.mesh.parame...
<<<<<<< ======= import java.util.List; import javax.inject.Inject; import javax.inject.Singleton; import com.gentics.mesh.cli.PostProcessFlags; >>>>>>> import java.util.List; import javax.inject.Inject; import javax.inject.Singleton; import java.util.List; import javax.inject.Inject; import javax.inject.Single...
<<<<<<< public <T extends VertexFrame> Result<T> getVerticesTraversal(Class<T> classOfVertex, String[] fieldNames, Object[] fieldValues) { ======= public Iterable<Vertex> getVerticesForRange(Class<?> classOfVertex, String indexPostfix, String[] fieldNames, Object[] fieldValues, String rangeKey, long start, long e...
<<<<<<< ======= import static com.gentics.mesh.assertj.MeshAssertions.assertThat; import static com.gentics.mesh.handler.VersionHandler.CURRENT_API_BASE_PATH; import static com.gentics.mesh.test.ClientHelper.call; import static com.gentics.mesh.test.TestDataProvider.PROJECT_NAME; import static com.gentics.mesh.test.T...
<<<<<<< import com.gentics.mesh.core.data.impl.MicroschemaContainerImpl; ======= import com.gentics.mesh.core.data.container.impl.MicroschemaContainerImpl; import com.gentics.mesh.core.data.container.impl.SchemaContainerImpl; >>>>>>> import com.gentics.mesh.core.data.container.impl.MicroschemaContainerImpl;
<<<<<<< import com.gentics.mesh.graphdb.Trx; ======= import com.gentics.mesh.core.rest.schema.Schema; import com.gentics.mesh.core.rest.schema.impl.ListFieldSchemaImpl; >>>>>>> import com.gentics.mesh.core.rest.schema.Schema; import com.gentics.mesh.core.rest.schema.impl.ListFieldSchemaImpl; import com.gentics.mesh....
<<<<<<< return new MeshHttpRequestImpl<>(request, handler, null, null, authentication, "*/*"); } @Override public MeshRequest<NodeResponse> webrootUpdate(String projectName, String path, NodeUpdateRequest nodeUpdateRequest, ParameterProvider... parameters) { Objects.requireNonNull(projectName, "projectName mu...
<<<<<<< import com.gentics.mesh.auth.MeshJWTAuthProvider; ======= import com.gentics.mesh.auth.MeshBasicAuthHandler; >>>>>>> import com.gentics.mesh.auth.MeshJWTAuthProvider; import com.gentics.mesh.auth.MeshBasicAuthHandler; <<<<<<< switch (Mesh.mesh().getOptions().getAuthenticationOptions().getAuthenticationMet...
<<<<<<< public MeshContainer addSlave(String string, String name, String name2, boolean b) { return addSlave(string, name, name2, b, -1); ======= public MeshDockerServer addSlave(String clusterName, String nodeName, String dataPathPostfix, boolean clearFolders) { return addSlave(clusterName, nodeName, dataPathP...
<<<<<<< import static com.gentics.mesh.assertj.MeshAssertions.assertThat; import static com.gentics.mesh.core.data.relationship.GraphPermission.CREATE_PERM; import static com.gentics.mesh.core.data.relationship.GraphPermission.DELETE_PERM; import static com.gentics.mesh.core.data.relationship.GraphPermission.READ_PERM;...
<<<<<<< ======= import static com.gentics.mesh.core.rest.admin.migration.MigrationStatus.COMPLETED; import static com.gentics.mesh.core.rest.admin.migration.MigrationStatus.RUNNING; import static com.gentics.mesh.core.rest.common.ContainerType.DRAFT; import static com.gentics.mesh.core.rest.common.ContainerType.PUBLI...
<<<<<<< import com.gentics.mesh.core.data.schema.SchemaFieldChange; import com.gentics.mesh.core.data.schema.impl.FieldTypeChangeImpl; ======= import com.gentics.mesh.core.data.schema.impl.AddFieldChangeImpl; import com.gentics.mesh.core.data.schema.impl.FieldTypeChangeImpl; >>>>>>> import com.gentics.mesh.core.data...
<<<<<<< import com.gentics.mesh.core.rest.MeshEvent; ======= >>>>>>>
<<<<<<< ======= import static com.gentics.mesh.core.data.ContainerType.DRAFT; import static com.gentics.mesh.core.data.ContainerType.INITIAL; import static com.gentics.mesh.core.data.ContainerType.PUBLISHED; import java.util.List; import java.util.Objects; import java.util.Set; import com.gentics.mesh.context.BulkA...
<<<<<<< @Override public Single<Boolean> isAvailable() { try { return client.clusterHealth().async() .timeout(1, TimeUnit.SECONDS) .map(ignore -> true) .onErrorReturnItem(false); } catch (HttpErrorException e) { return Single.just(false); } } ======= @Override public boolean isActive() ...
<<<<<<< import com.gentics.mesh.util.UUIDUtil; import static com.gentics.mesh.test.TestSize.FULL; ======= >>>>>>> import com.gentics.mesh.util.UUIDUtil; import static com.gentics.mesh.test.TestSize.FULL; <<<<<<< call(() -> client().updateRelease(projectName, "bogus", request), BAD_REQUEST, "error_illegal_uuid", "...
<<<<<<< ======= import static com.gentics.mesh.core.rest.common.ContainerType.DRAFT; import static com.gentics.mesh.core.rest.common.ContainerType.PUBLISHED; import static com.gentics.mesh.core.rest.job.JobStatus.COMPLETED; import static com.gentics.mesh.core.rest.job.JobStatus.RUNNING; import java.util.ArrayList; i...
<<<<<<< ======= import com.google.api.services.youtube.model.Playlist; import com.google.api.services.youtube.model.SearchResult; import com.google.api.services.youtube.model.Video; import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.bu...
<<<<<<< ======= import static com.gentics.mesh.core.rest.admin.migration.MigrationStatus.COMPLETED; import static com.gentics.mesh.core.rest.admin.migration.MigrationStatus.RUNNING; import static com.gentics.mesh.core.rest.common.ContainerType.DRAFT; import static com.gentics.mesh.core.rest.common.ContainerType.PUBLI...
<<<<<<< public String getPath(ActionContext ac, String branchUuid, ContainerType type, String... languageTag) { ======= public void postfixPathSegment(String releaseUuid, ContainerType type, String languageTag) { // Check whether this node is the base node. if (getParentNode(releaseUuid) == null) { return; ...
<<<<<<< import java.nio.charset.StandardCharsets; ======= import java.lang.management.ManagementFactory; import java.lang.management.ThreadInfo; import java.lang.management.ThreadMXBean; >>>>>>> import java.nio.charset.StandardCharsets; <<<<<<< /** * Loads a resource and converts to a POJO using {@link JsonUtil#...
<<<<<<< import static com.gentics.mesh.assertj.MeshAssertions.assertThat; import static com.gentics.mesh.util.MeshAssert.assertDeleted; ======= import static com.gentics.mesh.core.data.search.SearchQueueEntryAction.DELETE_ACTION; import static com.gentics.mesh.util.MeshAssert.assertAffectedElements; >>>>>>> import ...
<<<<<<< /** * Check the result object and fail early when the result failed as well. * * @param result * Result that will be checked * @return false when the result failed, otherwise true */ @Override public boolean failOnError(AsyncResult<?> result) { if (result.failed()) { fail(result....
<<<<<<< import com.gentics.mesh.core.data.user.HibUser; ======= >>>>>>> import com.gentics.mesh.core.data.user.HibUser; import com.gentics.mesh.core.data.root.UserRoot; <<<<<<< HibUser user = ac.getUser(); ======= TagDaoWrapper tagDao = Tx.get().data().tagDao(); User user = ac.getUser(); >>>>>>> HibUser ...
<<<<<<< @MeshTestSetting(useElasticsearch = false, testSize = FULL, startServer = false) ======= import javax.script.ScriptException; import org.junit.Test; import com.gentics.mesh.core.field.string.StringFieldTestHelper; import com.gentics.mesh.test.context.MeshTestSetting; @MeshTestSetting(testSize = FULL, start...
<<<<<<< default MicroschemaContainer create(Microschema microschema, User user) { return create(microschema, user, null); } /** * Create a new microschema container. * * @param microschema * @param user * User that is used to set creator and editor references. * @param uuid * ...
<<<<<<< httpRequest.getRequestURL(), resourceRequest.getStatus(), resourceRequest.getRejectionReason()); httpResponse.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, resourceRequest.getRejectionReason()); ======= new Object[] { httpRequest.getRequestURL(), resourc...
<<<<<<< .frameExplicit(GraphFieldContainerEdgeImpl.class)) { String languageAndBranch = String.format("%s - %s", edge.getBranchUuid(), edge.getLanguageTag()); if (languageAndBranchSet.contains(languageAndBranch)) { response.addInconsistency(String.format("The node has more than one GFC of type %s, languag...
<<<<<<< private static final Logger log = LoggerFactory.getLogger(JsonUtil.class); /** * When enabled indented JSON will be produced. */ public static boolean debugMode = false; ======= >>>>>>> private static final Logger log = LoggerFactory.getLogger(JsonUtil.class);
<<<<<<< list.add(new Change_0A58BEF0E7E7488D98BEF0E7E7588D4D()); ======= list.add(new Change_07F0975BD47249C6B0975BD472E9C6A4()); // list.add(new Change_A36C972476C147F3AC972476C157F3EF()); >>>>>>> list.add(new Change_07F0975BD47249C6B0975BD472E9C6A4()); list.add(new Change_0A58BEF0E7E7488D98BEF0E7E7588D4...
<<<<<<< /** * Get the Version Number or null if no version set * @return Version Number */ VersionNumber getVersion(); /** * Set the Version Number * @param version */ void setVersion(VersionNumber version); ======= /** * Return the schema container version that holds the schema that is used in ...
<<<<<<< ======= public PermissionInfo getPermissionInfo(MeshVertex vertex) { PermissionInfo info = new PermissionInfo(); Set<GraphPermission> permissions = getPermissions(vertex); for (GraphPermission perm : permissions) { info.set(perm.getRestPerm(), true); } info.setOthers(false, vertex.hasPublishPerm...
<<<<<<< public static final String PUBLISHED_WEBROOT_PROPERTY_KEY = "publishedWebrootPathInfo"; public static final String PUBLISHED_WEBROOT_INDEX_NAME = "publishedWebrootPathInfoIndex"; public static final String VERSION_PROPERTY_KEY = "version"; private static final Logger log = LoggerFactory.getLogger(NodeGra...
<<<<<<< /* * Copyright (C) 2012-2017 52°North Initiative for Geospatial Open Source ======= /** * Copyright (C) 2012-2017 52°North Initiative for Geospatial Open Source >>>>>>> <<<<<<< ======= import static org.n52.sos.ext.deleteobservation.DeleteObservationConstants.*; import java.util.Collections; import jav...
<<<<<<< @MeshTestSetting(useElasticsearch = false, inMemoryDB = false, testSize = FULL, startServer = true, clusterMode = true, monitoring = false) ======= @MeshTestSetting(elasticsearch = TRACKING, inMemoryDB = false, testSize = FULL, startServer = true, clusterMode = true) >>>>>>> @MeshTestSetting(elasticsearch = ...
<<<<<<< List<ConsistencyCheck> consistencyChecks(); ======= BucketManager bucketManager(); @Component.Builder >>>>>>> List<ConsistencyCheck> consistencyChecks(); BucketManager bucketManager(); <<<<<<< ======= >>>>>>>
<<<<<<< import com.gentics.ferma.Tx; ======= import com.gentics.mesh.core.data.schema.MicroschemaContainer; >>>>>>> import com.gentics.ferma.Tx; import com.gentics.mesh.core.data.schema.MicroschemaContainer; <<<<<<< ======= import com.gentics.mesh.graphdb.NoTx; import com.gentics.mesh.json.JsonUtil; >>>>>>> impo...
<<<<<<< ======= import static com.gentics.mesh.core.data.relationship.GraphPermission.DELETE_PERM; import static com.gentics.mesh.core.data.relationship.GraphPermission.UPDATE_PERM; import static com.gentics.mesh.core.rest.error.Errors.error; import static io.netty.handler.codec.http.HttpResponseStatus.BAD_REQUEST; i...
<<<<<<< import com.gentics.mesh.core.rest.branch.BranchCreateRequest; ======= import com.gentics.mesh.core.rest.admin.migration.MigrationStatus; import com.gentics.mesh.core.rest.node.NodeCreateRequest; import com.gentics.mesh.core.rest.node.NodeListResponse; >>>>>>> import com.gentics.mesh.core.rest.admin.migration...
<<<<<<< import static org.apache.commons.lang3.StringUtils.isBlank; import static org.apache.commons.lang3.StringUtils.isNotBlank; ======= import static javax.servlet.http.HttpServletResponse.SC_SERVICE_UNAVAILABLE; import static org.apache.commons.lang.StringUtils.isBlank; import static org.apache.commons.lang.Strin...