com.danube.scrumworks.api2
Class AggregateProductRoleData

java.lang.Object
  extended by com.danube.scrumworks.api2.AggregateProductRoleData
All Implemented Interfaces:
java.io.Serializable

public final class AggregateProductRoleData
extends java.lang.Object
implements java.io.Serializable

Contains Lists the product roles and a boolean to denote if permissions are enabled for the product.

See Also:
Serialized Form

Constructor Summary
AggregateProductRoleData()
          Constructs a new AggregateProductRoleData.
AggregateProductRoleData(java.util.List<ProductRole> productRoles, boolean productPermissionsEnabled)
          Constructs a new AggregateProductRoleData.
 
Method Summary
 java.util.List<ProductRole> getProductRoles()
          Lists the product roles.
 boolean isProductPermissionsEnabled()
          Returns whether permissions are enabled for the product.
 void setProductPermissionsEnabled(boolean productPermissionsEnabled)
          Sets the product permissions.
 void setProductRoles(java.util.List<ProductRole> productRoles)
          Sets the product roles.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AggregateProductRoleData

public AggregateProductRoleData(java.util.List<ProductRole> productRoles,
                                boolean productPermissionsEnabled)
Constructs a new AggregateProductRoleData.

Parameters:
productRoles - the product roles
productPermissionsEnabled - true if permissions are enabled for the product
Throws:
java.lang.IllegalArgumentException - if the argument is null

AggregateProductRoleData

public AggregateProductRoleData()
Constructs a new AggregateProductRoleData.

Method Detail

isProductPermissionsEnabled

public boolean isProductPermissionsEnabled()
Returns whether permissions are enabled for the product.

Returns:
true if permissions are enabled for the product

setProductPermissionsEnabled

public void setProductPermissionsEnabled(boolean productPermissionsEnabled)
Sets the product permissions.

Parameters:
productPermissionsEnabled - true if permissions are enabled

setProductRoles

public void setProductRoles(java.util.List<ProductRole> productRoles)
Sets the product roles.

Parameters:
productRoles - the product roles
Throws:
java.lang.IllegalArgumentException - if the argument is null

getProductRoles

public java.util.List<ProductRole> getProductRoles()
Lists the product roles.

Returns:
list of the product roles ordered by name