This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public Configuration getConfiguration(ServletContext context) | |
{ | |
return ConfigurationBuilder | |
.begin() | |
.addRule() | |
.when(PathAndQuery.matches("/api/{url}").and(Query.parameterExists("repo") | |
.and(Query.parameterExists("key")))) | |
/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.ocpsoft.redoculous.io.model.repositories; | |
import javax.persistence.Column; | |
import javax.persistence.Entity; | |
import javax.persistence.EnumType; | |
import javax.persistence.Enumerated; | |
import javax.persistence.ManyToOne; | |
import org.ocpsoft.redoculous.io.model.DeletableObject; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.ocpsoft.redoculous.io.model.repositories; | |
import java.util.HashSet; | |
import java.util.Set; | |
import javax.persistence.CascadeType; | |
import javax.persistence.Entity; | |
import javax.persistence.Inheritance; | |
import javax.persistence.InheritanceType; | |
import javax.persistence.OneToMany; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.jboss.forge.addon.projects.building; | |
import org.jboss.forge.addon.projects.ProjectLocator; | |
/** | |
* Used to select a given build system. | |
* | |
* @author <a href="mailto:[email protected]">Lincoln Baxter, III</a> | |
*/ | |
public interface BuildSystemType |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright 2013 Red Hat, Inc. and/or its affiliates. | |
* | |
* Licensed under the Eclipse Public License version 1.0, available at | |
* http://www.eclipse.org/legal/epl-v10.html | |
*/ | |
package org.jboss.forge.addon.projects; | |
import org.jboss.forge.addon.projects.building.BuildSystemType; | |
import org.jboss.forge.addon.projects.spi.ProjectCache; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Resource transactions | |
The resources API provides a transaction service on FileResources. If you are familiar with UserTransaction in Java EE applications, this should feel pretty comfortable. | |
ResourceTransaction transaction = factory.getTransaction(); | |
try { | |
// Starts the transaction | |
transaction.begin(); | |
FileResource<?> resource = factory.create(...); | |
// The file won't be updated until commit is performed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.ocpsoft.redoculous.io.view; | |
import java.io.Serializable; | |
import javax.faces.context.FacesContext; | |
import javax.inject.Inject; | |
import javax.inject.Named; | |
import org.ocpsoft.redoculous.io.util.Threads; | |
import org.ocpsoft.redoculous.io.util.jsf.FacesMessages; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version='1.0' encoding='UTF-8'?> | |
<server xmlns="urn:jboss:domain:1.3"> | |
<extensions> | |
<extension module="org.jboss.as.clustering.infinispan" /> | |
<extension module="org.jboss.as.clustering.jgroups" /> | |
<extension module="org.jboss.as.cmp" /> | |
<extension module="org.jboss.as.configadmin" /> | |
<extension module="org.jboss.as.connector" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.ocpsoft.redoculous.io.rewrite; | |
import javax.inject.Inject; | |
import javax.servlet.ServletContext; | |
import org.ocpsoft.redoculous.io.rewrite.elements.AuthenticationStatus; | |
import org.ocpsoft.redoculous.io.rewrite.elements.ValueBinding; | |
import org.ocpsoft.redoculous.io.security.AuthorizationChecker; | |
import org.ocpsoft.redoculous.io.view.LoginController; | |
import org.ocpsoft.rewrite.config.Condition; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public ProjectStage getProjectStage() | |
{ | |
if (getFaceted().hasFacet(ServletFacet_2_5.class)) | |
{ | |
ServletFacet_2_5 facet = getFaceted().getFacet(ServletFacet_2_5.class); | |
WebAppDescriptor config = facet.getConfig(); | |
List<ParamValueType<WebAppDescriptor>> params = config.getAllContextParam(); |