Package ch.entwine.weblounge.common.security

Examples of ch.entwine.weblounge.common.security.SecurityListener


   */
  @Test
  @Ignore
  public void testAddSecurityListener() {
    final List<String> result = new ArrayList<String>();
    pagelet.addSecurityListener(new SecurityListener() {
      public void ownerChanged(Securable source, User newOwner, User oldOwner) {
        result.add("Owner changed");
      }

      public void permissionChanged(Securable source, Permission p) {
View Full Code Here


   * .
   */
  @Test
  public void testRemoveSecurityListener() {
    final List<String> result = new ArrayList<String>();
    SecurityListener listener = new SecurityListener() {
      public void ownerChanged(Securable source, User newOwner, User oldOwner) {
        result.add("Owner changed");
      }

      public void permissionChanged(Securable source, Permission p) {
View Full Code Here

TOP

Related Classes of ch.entwine.weblounge.common.security.SecurityListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.