Search:

Type: Posts; User: amitkhanna; Keyword(s):

Page 1 of 2 1 2

Search: Search took 0.03 seconds.

  1. Replies
    2
    Views
    316

    Thanks for your reply. I understand that what i'm...

    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....
  2. Replies
    2
    Views
    316

    ManyToMany with interfaces

    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.
    ...
  3. Replies
    1
    Views
    705

    @ManyToMany relationship attributes

    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:...
  4. Replies
    3
    Views
    778

    Hi I've read the manual of shards...

    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...
  5. Replies
    3
    Views
    778

    User specific database

    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...
  6. Replies
    1
    Views
    683

    @Secured annotation conjunction

    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...
  7. Replies
    5
    Views
    2,619

    Hi Luke In that case I can add check that...

    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...
  8. Replies
    5
    Views
    2,619

    Hi On debugging the code I found that the...

    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...
  9. Replies
    5
    Views
    2,619

    Login success URL for each browser tab

    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...
  10. Replies
    3
    Views
    1,758

    Hi I created a new voter and this is how my...

    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">
    ...
  11. Replies
    6
    Views
    1,599

    See if this thread can help...

    See if this thread can help http://forum.springsource.org/showthread.php?p=351264
  12. Replies
    3
    Views
    1,758

    Bypass access control for admin user

    Hi

    I have implemented method level security using spring annotations:



    public class GreetServiceImpl implements GreetService{
    @Secured({"ROLE_USER"})
    public String greet(String...
  13. Thanks All. I moved the service beans to...

    Thanks All.

    I moved the service beans to applicaitionContext.xml and it worked fine.


    Regards
    Amit Khanna
  14. Hi Luke, Thanks for the link to FAQ. I'm...

    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...
  15. @Secured annotation not working with gwt-sl

    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...
  16. Replies
    2
    Views
    1,560

    Any proxy servlet available in spring

    Hi

    I have created a servlet


    class MyServlet extends HttpServlet{

    public void doPost(HttpservletRequest req, HttpServletResponse res){
    ...
    }
  17. Replies
    0
    Views
    1,471

    Method level security in GWT app

    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...
  18. Additional parameter needed for authenticate

    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,...
  19. Replies
    1
    Views
    3,127

    Following code change in UserHistory solves the...

    Following code change in UserHistory solves the problem:



    public void setUser(Users user) {
    this.user = user;
    this.userId=user.getUserId();
    }
  20. Replies
    1
    Views
    3,127

    Hibernate JPA with @MapsId

    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...
  21. Replies
    1
    Views
    1,233

    Selecting schema with JdbcTemplate

    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;...
  22. Replies
    4
    Views
    2,147

    Thanks for your reply, It worked with...

    Thanks for your reply, It worked with ApplicationContext.
  23. Replies
    2
    Views
    1,011

    Thanks for your reply. Actually, my idea is to...

    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...
  24. Replies
    2
    Views
    1,011

    How to select schema with JdbcTemplate?

    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...
  25. Replies
    4
    Views
    2,147

    I tried it the same example with with postgre...

    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...
Results 1 to 25 of 26
Page 1 of 2 1 2