Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a1ddcde
commit 0b401f0
Showing
10 changed files
with
668 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0"?> | ||
|
||
<project name="yanel-login-RT" default="deploy-jar"> | ||
<import file="${yanel.source.home}/src/build/resource-types/resource-type.build.xml"/> | ||
</project> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0"?> | ||
|
||
<resource xmlns="http://www.wyona.org/yanel/1.0" | ||
name="login" | ||
namespace="http://www.wyona.org/yanel/resource/1.0.0" | ||
class="org.wyona.yanel.impl.resources.login.LoginResource" | ||
> | ||
<description> | ||
Generic Yanel login | ||
</description> | ||
|
||
<rtd> | ||
<!-- | ||
<property name="foo" default-value="bar"/> | ||
--> | ||
</rtd> | ||
</resource> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
resource.name=login | ||
resource.version=0.0.1-dev-rXXX |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0"?> | ||
|
||
<project name="login-dependencies" xmlns:artifact="antlib:org.apache.maven.artifact.ant"> | ||
|
||
<target name="dependencies" description="Dependencies"> | ||
<artifact:remoteRepository id="wyona.remote.repository" url="${maven.url}"/> | ||
|
||
<artifact:dependencies pathId="maven2.classpath" filesetId="maven2.fileset"> | ||
<remoteRepository refid="wyona.remote.repository"/> | ||
<dependency groupId="wyona-org-yanel" artifactId="yanel-core" version="${yanel.source.version}"/> | ||
<dependency groupId="wyona-org-yanel" artifactId="yanel-impl" version="${yanel.source.version}"/> | ||
<dependency groupId="wyona-org-yanel" artifactId="yanel-webapp" version="${yanel.source.version}"/> | ||
</artifact:dependencies> | ||
|
||
<artifact:dependencies pathId="maven2.resource.classpath" filesetId="maven2.resource.fileset"> | ||
<remoteRepository refid="wyona.remote.repository"/> | ||
<!-- No resource specific libs yet --> | ||
</artifact:dependencies> | ||
|
||
<property name="maven2.cp" refid="maven2.classpath"/> | ||
<!--<echo>Maven2 classpath: ${maven2.cp}</echo>--> | ||
</target> | ||
|
||
</project> |
36 changes: 36 additions & 0 deletions
36
src/resources/login/src/java/org/wyona/yanel/impl/resources/login/LoginResource.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* Copyright 2015 Wyona | ||
*/ | ||
package org.wyona.yanel.impl.resources.login; | ||
|
||
import org.wyona.yanel.impl.resources.BasicXMLResource; | ||
|
||
import java.io.ByteArrayInputStream; | ||
import java.io.InputStream; | ||
|
||
import org.apache.logging.log4j.Logger; | ||
import org.apache.logging.log4j.LogManager; | ||
|
||
import org.wyona.commons.xml.XMLHelper; | ||
|
||
/** | ||
* Login resource | ||
*/ | ||
public class LoginResource extends BasicXMLResource { | ||
|
||
private static Logger log = LogManager.getLogger(LoginResource.class); | ||
|
||
/** | ||
* @see org.wyona.yanel.impl.resources.BasicXMLResource#getContentXML(String) | ||
*/ | ||
@Override | ||
protected InputStream getContentXML(String viewId) throws Exception { | ||
if (log.isDebugEnabled()) { | ||
log.debug("requested viewId: " + viewId); | ||
} | ||
|
||
org.w3c.dom.Document doc = XMLHelper.createDocument(org.wyona.yanel.servlet.YanelServlet.NAMESPACE, "yanel-auth-screen"); | ||
|
||
return XMLHelper.getInputStream(doc, false, true, null); | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<?xml version="1.0"?> | ||
|
||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<title>login</title> | ||
|
||
<!-- TODO: Reference this style globally --> | ||
<style> | ||
h2 { | ||
font-size: 130%; | ||
color: #ffffff; | ||
background-color: #525D76; | ||
} | ||
pre { | ||
background-color: efefef; | ||
} | ||
td { | ||
background-color: eeeeee; | ||
color: 000000; | ||
} | ||
|
||
/* first row */ | ||
table tr:first-child td { | ||
background-color: cccccc; | ||
color: 000000; | ||
} | ||
|
||
/* or th as first row */ | ||
table th { | ||
background-color: cccccc; | ||
color: 000000; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<h1>login</h1> | ||
|
||
<h2>Overview</h2> | ||
<dl> | ||
<dt>Name:</dt> | ||
<dd>login</dd> | ||
<dt>Namespace:</dt> | ||
<dd>http://www.wyona.org/yanel/resource/1.0.0</dd> | ||
<dt>Universal Name:</dt> | ||
<dd><{http://www.wyona.org/yanel/resource/1.0.0}login/></dd> | ||
<dt>Description:</dt> | ||
<dd>Generic Yanel login</dd> | ||
<dt>Java Class:</dt> | ||
<dd>"org.wyona.yanel.impl.resources.login.LoginResource</dd> | ||
</dl> | ||
|
||
<h2>Views</h2> | ||
<p>TODO</p> | ||
|
||
<h2>Examples</h2> | ||
<p>TODO</p> | ||
</body> | ||
</html> |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.