//# 0 errors, 24 messages
//#
/*
    //#privateblogconfigattributedefinition.java:1:1: class: net.sourceforge.pebble.security.PrivateBlogConfigAttributeDefinition
    //#privateblogconfigattributedefinition.java:1:1: method: net.sourceforge.pebble.security.PrivateBlogConfigAttributeDefinition.net.sourceforge.pebble.security.PrivateBlogConfigAttributeDefinition__static_init
 * Copyright (c) 2003-2006, Simon Brown
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 *   - Redistributions of source code must retain the above copyright
 *     notice, this list of conditions and the following disclaimer.
 *
 *   - Redistributions in binary form must reproduce the above copyright
 *     notice, this list of conditions and the following disclaimer in
 *     the documentation and/or other materials provided with the
 *     distribution.
 *
 *   - Neither the name of Pebble nor the names of its contributors may
 *     be used to endorse or promote products derived from this software
 *     without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */
package net.sourceforge.pebble.security;

import org.acegisecurity.ConfigAttributeDefinition;
import net.sourceforge.pebble.domain.Blog;

/**
 * Specialised ConfigAttributeDefinition that has a reference to the
 * secured/private blog.
 *
 * @author Simon Brown
 */
public class PrivateBlogConfigAttributeDefinition extends ConfigAttributeDefinition {

  private Blog blog;

  PrivateBlogConfigAttributeDefinition(Blog blog) {
    //#privateblogconfigattributedefinition.java:47: method: void net.sourceforge.pebble.security.PrivateBlogConfigAttributeDefinition.net.sourceforge.pebble.security.PrivateBlogConfigAttributeDefinition(Blog)
    //#privateblogconfigattributedefinition.java:47: Warning: method not available
    //#    -- call on void org.acegisecurity.ConfigAttributeDefinition()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.security.PrivateBlogConfigAttributeDefinition
    //#    method: void net.sourceforge.pebble.security.PrivateBlogConfigAttributeDefinition(Blog)
    //#    unanalyzed callee: void org.acegisecurity.ConfigAttributeDefinition()
    //#input(void net.sourceforge.pebble.security.PrivateBlogConfigAttributeDefinition(Blog)): blog
    //#input(void net.sourceforge.pebble.security.PrivateBlogConfigAttributeDefinition(Blog)): this
    //#output(void net.sourceforge.pebble.security.PrivateBlogConfigAttributeDefinition(Blog)): this.blog
    //#post(void net.sourceforge.pebble.security.PrivateBlogConfigAttributeDefinition(Blog)): this.blog == blog
    //#post(void net.sourceforge.pebble.security.PrivateBlogConfigAttributeDefinition(Blog)): init'ed(this.blog)
    this.blog = blog;
  }
    //#privateblogconfigattributedefinition.java:49: end of method: void net.sourceforge.pebble.security.PrivateBlogConfigAttributeDefinition.net.sourceforge.pebble.security.PrivateBlogConfigAttributeDefinition(Blog)

  public Blog getBlog() {
    return blog;
    //#privateblogconfigattributedefinition.java:52: method: Blog net.sourceforge.pebble.security.PrivateBlogConfigAttributeDefinition.getBlog()
    //#input(Blog getBlog()): this
    //#input(Blog getBlog()): this.blog
    //#output(Blog getBlog()): return_value
    //#pre[2] (Blog getBlog()): init'ed(this.blog)
    //#post(Blog getBlog()): return_value == this.blog
    //#post(Blog getBlog()): init'ed(return_value)
    //#privateblogconfigattributedefinition.java:52: end of method: Blog net.sourceforge.pebble.security.PrivateBlogConfigAttributeDefinition.getBlog()
  }

}    //#output(net.sourceforge.pebble.security.PrivateBlogConfigAttributeDefinition__static_init): __Descendant_Table[net/sourceforge/pebble/security/PrivateBlogConfigAttributeDefinition]
    //#output(net.sourceforge.pebble.security.PrivateBlogConfigAttributeDefinition__static_init): __Dispatch_Table.getBlog()Lnet/sourceforge/pebble/domain/Blog;
    //#post(net.sourceforge.pebble.security.PrivateBlogConfigAttributeDefinition__static_init): __Descendant_Table[net/sourceforge/pebble/security/PrivateBlogConfigAttributeDefinition] == &__Dispatch_Table
    //#post(net.sourceforge.pebble.security.PrivateBlogConfigAttributeDefinition__static_init): __Dispatch_Table.getBlog()Lnet/sourceforge/pebble/domain/Blog; == &getBlog
    //#privateblogconfigattributedefinition.java:: end of method: net.sourceforge.pebble.security.PrivateBlogConfigAttributeDefinition.net.sourceforge.pebble.security.PrivateBlogConfigAttributeDefinition__static_init
    //#privateblogconfigattributedefinition.java:: end of class: net.sourceforge.pebble.security.PrivateBlogConfigAttributeDefinition
