Class ParentalControlService

java.lang.Object
org.eblocker.server.http.service.ParentalControlService

public class ParentalControlService extends Object
  • Constructor Details

    • ParentalControlService

      @Inject public ParentalControlService(DataSource dataSource, UserService userService)
  • Method Details

    • init

      public void init()
    • storeNewProfile

      public UserProfileModule storeNewProfile(UserProfileModule profile)
    • getProfiles

      public List<UserProfileModule> getProfiles()
    • updateProfile

      public UserProfileModule updateProfile(UserProfileModule profile)
    • deleteProfile

      public void deleteProfile(int profileId)
    • isUniqueCustomerCreatedName

      public boolean isUniqueCustomerCreatedName(Integer id, String name)
      Checks if module name is unique among customer created profiles.

      Please note that customer created modules may have the same name as builtin ones.

      Parameters:
      id - id of module if it is a already persistent (may be null)
      name - name of module
      Returns:
      if module name is unique among customer created modules.
    • getProfile

      public UserProfileModule getProfile(int id)
    • getProfilesBeingUpdated

      public Set<Integer> getProfilesBeingUpdated()
    • addListener

    • createDefaultProfile

      public UserProfileModule createDefaultProfile()