Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright 2005-2013 The Kuali Foundation Licensed under the Educational Community License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.opensource.org/licenses/ecl2.php Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
 
 package org.kuali.rice.ken.bo;
 
 
A reviewer for a notification publications to a NotificationChannel

Author(s):
Kuali Rice Team (rice.collab@kuali.org)
 
 @Table(name="KREN_RVWER_T")
     @Id
     @GeneratedValue(generator="KREN_RVWER_S")
 	@GenericGenerator(name="KREN_RVWER_S",strategy="org.hibernate.id.enhanced.SequenceStyleGenerator",parameters={
 			@Parameter(name="sequence_name",value="KREN_RVWER_S"),
 			@Parameter(name="value_column",value="id")
 	})
 	@Column(name="RVWER_ID")
 	private Long id;
     @OneToOne(fetch=., cascade={.. })
 	@JoinColumn(name="CHNL_ID")
     @Column(name="TYP", nullable=false)
 	private String reviewerType;
     @Column(name="PRNCPL_ID", nullable=false)
 	private String reviewerId;

    
Returns the primary key value

Returns:
the primary key value
 
     public Long getId() {
         return ;
     }

    
Sets the primary key value

Parameters:
id the primary key value
 
     public void setId(Long id) {
         this. = id;
     }
    
    
Returns the channel with which this reviewer is associated

Returns:
the channel with which this reviewer is associated
 
     public NotificationChannelBo getChannel() {
         return ;
     }

    
Sets the channel with which this reviewer is associated

Parameters:
channel the channel with which this reviewer is associated
 
     public void setChannel(NotificationChannelBo channel) {
         this. = channel;
     }

    
Returns the user id of the reviewer. This is abstract but ultimately will need to be resolved to a KEW user/group

Returns:
the user id of the reviewer
 
     public String getReviewerId() {
         return ;
     }
    
    
Sets the user id of the reviewer

Parameters:
reviewerId the user id of the reviewer
 
     public void setReviewerId(String reviewerId) {
         this. = reviewerId;
     }
    
    
Returns the type of reviewer, USER or GROUP

Returns:
the type of reviewer, USER or GROUP
    public String getReviewerType() {
        return ;
    }

    
Sets the type of reviewer, USER or GROUP

Parameters:
reviewerType the type of reviewer, USER or GROUP
    public void setReviewerType(String reviewerType) {
        this. = reviewerType;
    }

    
Converts a mutable bo to its immutable counterpart

Parameters:
bo the mutable business object
Returns:
the immutable object
        if (bo == null) {
            return null;
        }
        return NotificationChannelReviewer.Builder.create(bo).build();
    }

    
Converts a immutable object to its mutable counterpart

Parameters:
im immutable object
Returns:
the mutable bo
        if (im == null) {
            return null;
        }
        bo.setId(im.getId());
        bo.setVersionNumber(im.getVersionNumber());
        bo.setObjectId(im.getObjectId());
        bo.setReviewerType(im.getReviewerType());
        bo.setReviewerId(im.getReviewerId());
        bo.setChannel(im.getChannel() == null ? null : NotificationChannelBo.from(im.getChannel()));
        return bo;
    }
New to GrepCode? Check out our FAQ X