Thanks for your reply. I understand that what i'm trying is wrong. Can you suggest a better way of implementing the three changes I mentioned:
1. Each Message and Ticket needs to be approved.
2....
Type: Posts; User: amitkhanna; Keyword(s):
Thanks for your reply. I understand that what i'm trying is wrong. Can you suggest a better way of implementing the three changes I mentioned:
1. Each Message and Ticket needs to be approved.
2....
Hi
I have an application in which I have 4 entities User, Group, Message and Ticket each entity has an id that is being generated by their corresponding sequences. I'm using JPA with Hibernate.
...
Hi
I have two entities Employee and Project in my application and there is many to many relationship between them. The application uses JPA and Hibernate. I have three tables:
employee:...
Hi
I've read the manual of shards [http://docs.jboss.org/hibernate/stable/shards/reference/en/html_single] and what i understood is that shards require all the database configurations to be...
Hi All
I want to use separate database for each user. There will be a common database MainDB which contains the common tables and a mapping table that maps each username with a database name, but...
Hi
I'm using method level security through @Secured annotation, but I'm stuck with a problem. For most of the methods, if the user has one of the roles mentioned in the list he/she should be...
Hi Luke
In that case I can add check that only redirect to the value of 'spring-security-redirect' only if it is a relative URL?
But I don't know how to configure these things in spring...
Hi
On debugging the code I found that the success handler which is used by spring security is "SavedRequestAwareAuthenticationSuccessHandler" and if request has parameter that matches the value...
Hi
I am using Spring Security for access control and I have two pages in my application page1.html and page2.html. All the html pages are accessible to the users with role ROLE_USER.
<http...
Hi
I created a new voter and this is how my decision manger looks:
<beans:bean id="accessDecisionManager" class="org.springframework.security.access.vote.AffirmativeBased">
...
See if this thread can help http://forum.springsource.org/showthread.php?p=351264
Hi
I have implemented method level security using spring annotations:
public class GreetServiceImpl implements GreetService{
@Secured({"ROLE_USER"})
public String greet(String...
Thanks All.
I moved the service beans to applicaitionContext.xml and it worked fine.
Regards
Amit Khanna
Hi Luke,
Thanks for the link to FAQ.
I'm beginner to spring framework, so I do not completely understand the meaning of the following line in the answer of FAQ
Does this mean that I'll...
Hi
I have added the spring security and gwt-sl in my GWT app. I'm
successful in implementing URL level security but not able to apply
method level security. Can you please help me understand...
Hi
I have created a servlet
class MyServlet extends HttpServlet{
public void doPost(HttpservletRequest req, HttpServletResponse res){
...
}
Hi
I have developed a sample application using GWT and spring security by following this tutorial:
http://www.javacodegeeks.com/2010/12/securing-gwt-apps-with-spring-security.html
Now I want...
Hi
I have an application in which there are several domains and there are users within these domains. Usernames are unique within domain but same username can exist in different domains. Hence,...
Following code change in UserHistory solves the problem:
public void setUser(Users user) {
this.user = user;
this.userId=user.getUserId();
}
Hi
I'm getting an exception in executing the following code (using JPA and hibernate) when i try updating user with userid=1 in database. Please help me understand the reason for it.
Thanks...
Hi
I am using PostgreSQL and i need to select schema dynamically for each query based on the user.
Foe example, if user is abc, I have to run:
set SEARCH_PATH to abc;
select * from mytable;...
Thanks for your reply, It worked with ApplicationContext.
Thanks for your reply. Actually, my idea is to create table named employee (and other related tables) in different schema. There will be a separate PostgreSQL schema for each company each having same...
Hi
I have created an EmployeeDAO to read from employee table from postgreSQL. This table is in schema abc. This table can be present in different schemas and i want t o set it as a property in...
I tried it the same example with with postgre SQL. When I set defaultAutoCommit to false JdbcTemplate does not commit anything but also after the transaction is complete (without any exception) no...