0
I Use This!
Activity Not Available

Project Summary

IntroductionSecurity extension for tapestry 5 based on jsecurity.org

AnnotationFor a declaratory security management at our disposal is the following annotations

/* For methods */
@RequiresPermissions
@RequiresRoles
@RequiresUser
@RequiresGuest
@RequiresAuthentication

/* For classes */
@RequiresPermissionsAll
@RequiresRolesAll
@RequiresUserAll
@RequiresGuestAll
@RequiresAuthenticationAllSecure pages@RequiresRoleAll("admin")
public class AdminPage {
}Secure actionspublic class Index {

@RequiresRule("news:delete")
public void onActionFromDeleteNews(EventContext eventContext) {
...
}

}Secure ServicesSecure Service Method
public interface AlphaService {

@RequiresAuthentication
void secureMethod();

}

public class AlphaServiceImpl implements AlphaService {

@Override
public void secureMethod(){
...
}

}
Secure Service Class
@RequiresAuthenticationAll
public interface AlphaService {

void secureMethod1();

void secureMethod2();
}

public class AlphaServiceImpl implements AlphaService {

@Override
public void secureMethod1(){
...
}
@Override
public void secureMethod2(){
...
}
}
FiltersThe configuration of filters is fully consistent with the documentation JSecurity. By default configuration is configured in the file security.conf section url

[urls]

/authc/signup = anon
/authc/** = authc

/user/signup = anon
/user/** = user

/site/user/** = roles[user]
/site/manager/** = roles[manager]

/news/view/** = perms[news:view]
/news/edit/** = perms[news:edit]ComponentsAuthenticated
NotAuthenticated
User
Guest
HasAnyRoles
HasPermission
HasRole
LacksPermission
LacksRole
LoginForm
LoginLinkExamples
Hello, ${username}

Create account

delete user
Spring IntegrationTapestry-JSecurity can be used in spring environment.

To better understandTo better understand, checkout and see projects

tapestry-jsecurity-sample tapestry-jsecurity-spring-sample tapestry-jsecurity-integration-test Add to your project, using mavenAdd repository definition to pom.xml


lightstack
Lihgtstack project repository
http://lightstack.googlecode.com/svn/maven/repository

And add dependency

com.googlecode.tapestry5jsecurity
tapestry-jsecurity-core
${tapestry-jsecurity-version}

com.googlecode.tapestry5jsecurity
tapestry-jsecurity-spring
${tapestry-jsecurity-version}

0.0.1-SNAPSHOT

Tags

jsecurity tapestry

In a Nutshell, tapestry-jsecurity...

 No code available to analyze

Open Hub computes statistics on FOSS projects by examining source code and commit history in source code management systems. This project has no code locations, and so Open Hub cannot perform this analysis

Is this project's source code hosted in a publicly available repository? Do you know the URL? If you do, click the button below and tell us so that Open Hub can generate statistics! It's fast and easy - try it and see!

Add a code location

Apache License 2.0
Permitted

Commercial Use

Modify

Distribute

Place Warranty

Sub-License

Private Use

Use Patent Claims

Forbidden

Hold Liable

Use Trademarks

Required

Include Copyright

State Changes

Include License

Include Notice

These details are provided for information only. No information here is legal advice and should not be used as such.

All Licenses

This Project has No vulnerabilities Reported Against it

Did You Know...

  • ...
    Black Duck offers a free trial so you can discover if there are open source vulnerabilities in your code
  • ...
    by exploring contributors within projects, you can view details on every commit they have made to that project
  • ...
    in 2016, 47% of companies did not have formal process in place to track OS code
  • ...
    you can embed statistics from Open Hub on your site

 No code available to analyze

Open Hub computes statistics on FOSS projects by examining source code and commit history in source code management systems. This project has no code locations, and so Open Hub cannot perform this analysis

Is this project's source code hosted in a publicly available repository? Do you know the URL? If you do, click the button below and tell us so that Open Hub can generate statistics! It's fast and easy - try it and see!

Add a code location

Community Rating

Be the first to rate this project
Click to add your rating
   Spinner
Review this Project!
Sample ohloh analysis