public CMASpaceMembership addRole ( CMALink role ) { if ( role == null ) { throw new IllegalArgumentException ( "Role cannot be null!" ) ; } if ( roles == null ) { roles = new ArrayList < CMALink > ( ) ; } this . roles . add ( role ) ; return this ; }
Add a role to the list of roles .