Coverage Report - org.openpermis.policy.bean.TargetBean
 
Classes in this File Line Coverage Branch Coverage Complexity
TargetBean
N/A
N/A
1
 
 1  
 /*
 2  
  * Copyright (c) 2009, Swiss Federal Department of Defence Civil Protection and Sport
 3  
  *                     (http://www.vbs.admin.ch)
 4  
  * Copyright (c) 2009, Ergon Informatik AG (http://www.ergon.ch)
 5  
  * All rights reserved.
 6  
  *
 7  
  * Licensed under the Open Permis License which accompanies this distribution,
 8  
  * and is available at http://www.openpermis.org/BSDlicenceKent.txt
 9  
  */
 10  
 package org.openpermis.policy.bean;
 11  
 
 12  
 import org.openpermis.policy.Target;
 13  
 
 14  
 
 15  
 /**
 16  
  * A target combines a resource or a set of resources to be protected with a set
 17  
  * of actions that are possible on these resources.
 18  
  * @since 0.1.0
 19  
  */
 20  
 public interface TargetBean
 21  
         extends Target, PartBean
 22  
 {
 23  
 
 24  
         //---- Methods
 25  
 
 26  
         /**
 27  
          * Returns the resource domain of the resources protected by this target.
 28  
          * @return the resource domain of the resources protected by this target.
 29  
          * @since 0.1.0
 30  
          */
 31  
         public DomainBean getResourceDomain ();
 32  
 
 33  
         /**
 34  
          * Sets the resource domain of the resources protected by this target.
 35  
          * @param resourceDomain the resource domain of the resources protected by this target.
 36  
          * @since 0.1.0
 37  
          */
 38  
         public void setResourceDomain (DomainBean resourceDomain);
 39  
 
 40  
         /**
 41  
          * Returns an {@link ActionBeanCollection}.
 42  
          * @return an {@link ActionBeanCollection}.
 43  
          * @since 0.3.0
 44  
          */
 45  
         public ActionBeanCollection getActions ();
 46  
 
 47  
         /**
 48  
          * Sets the action collection of actions which can be performed on this target.
 49  
          * @param actions the action collection of actions which can be performed on this target.
 50  
          * @since 0.3.0
 51  
          */
 52  
         public void setActions (ActionBeanCollection actions);
 53  
 
 54  
         /**
 55  
          * Remove a child element.
 56  
          * @since 0.1.0
 57  
          */
 58  
         @Deprecated
 59  
         public void removeChild (ActionBean part);
 60  
 
 61  
 }