org.filteredpush.client.service
Class UserAccessService

java.lang.Object
  extended by org.filteredpush.client.service.UserAccessService
All Implemented Interfaces:
java.io.Serializable

public class UserAccessService
extends java.lang.Object
implements java.io.Serializable

A service to helper the invoker operate the database. It's not used for mapping the proposed change into the local data source. It's used to read/write the database that stores the user information used by the annotation processor.

Author:
Lei Dou $Id$
See Also:
Serialized Form

Constructor Summary
UserAccessService()
           
 
Method Summary
 void addNewInterest(Interest interest)
           
 void addUser(FPUser user)
           
 void deleteAnnotation(FPUser user, java.lang.String uri, java.lang.String targetFolder)
           
 java.util.List<FPUser> getNoneApprovedUsers()
           
 java.util.List<FPUser> getUser(java.lang.String userName)
           
 void removeAnnotationMetadataMapping(AnnotationMetadataMapping m)
           
 void removeInterest(Interest interest)
           
 void restoreAnnotation(FPUser user, java.lang.String uri)
           
 void saveOrUpdateAnnotationMetadataMapping(AnnotationMetadataMapping m)
           
 void saveOrUpdateLocalDataSource(LocalDataSource localDataSource)
           
 void setUserDao(UserDao userDao)
           
 void updateAnnotationOptStatus(FPUser user, java.lang.String uri, java.lang.String targetStatus)
           
 void updateInterest(Interest interest)
           
 void updateUser(FPUser user)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserAccessService

public UserAccessService()
Method Detail

setUserDao

public void setUserDao(UserDao userDao)

addUser

public void addUser(FPUser user)

getUser

public java.util.List<FPUser> getUser(java.lang.String userName)

getNoneApprovedUsers

public java.util.List<FPUser> getNoneApprovedUsers()

updateUser

public void updateUser(FPUser user)

updateInterest

public void updateInterest(Interest interest)

removeInterest

public void removeInterest(Interest interest)

saveOrUpdateLocalDataSource

public void saveOrUpdateLocalDataSource(LocalDataSource localDataSource)

addNewInterest

public void addNewInterest(Interest interest)

deleteAnnotation

public void deleteAnnotation(FPUser user,
                             java.lang.String uri,
                             java.lang.String targetFolder)
                      throws DatabaseAccessException
Throws:
DatabaseAccessException

restoreAnnotation

public void restoreAnnotation(FPUser user,
                              java.lang.String uri)
                       throws DatabaseAccessException
Throws:
DatabaseAccessException

updateAnnotationOptStatus

public void updateAnnotationOptStatus(FPUser user,
                                      java.lang.String uri,
                                      java.lang.String targetStatus)
                               throws DatabaseAccessException
Throws:
DatabaseAccessException

removeAnnotationMetadataMapping

public void removeAnnotationMetadataMapping(AnnotationMetadataMapping m)

saveOrUpdateAnnotationMetadataMapping

public void saveOrUpdateAnnotationMetadataMapping(AnnotationMetadataMapping m)