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.kim.bo.ui;
 
 
 import java.util.List;

Author(s):
Kuali Rice Team (rice.collab@kuali.org)
 
 @Table(name="KRIM_PND_ROLE_RSP_T")
 	
 	private static final long serialVersionUID = -4465768714850961538L;
 	@Id
 	@GeneratedValue(generator="KRIM_ROLE_RSP_ACTN_ID_S")
 	@GenericGenerator(name="KRIM_ROLE_RSP_ACTN_ID_S",strategy="org.kuali.rice.core.jpa.spring.RiceNumericStringSequenceStyleGenerator",parameters={
 			@Parameter(name="sequence_name",value="KRIM_ROLE_RSP_ACTN_ID_S"),
 			@Parameter(name="value_column",value="id")
 		})
 	@Column(name="ROLE_RSP_ID")
 	@Column(name="ROLE_ID")
 	protected String roleId;
 	@Column(name="RSP_ID")
 	protected String responsibilityId;
 	// temporary default value in lieu of optimistic locking
 	@Column(name="VER_NBR")
 	protected Long versionNumber = (long) 0;
     @Transient
     protected String name;
     @Transient
     protected String namespaceCode;
 
 	public String getRoleId() {
 		return ;
 	}
 
 	public void setRoleId(String roleId) {
 		this. = roleId;
 	}
 
 	public void setRoleResponsibilityId(String roleResponsibilityId) {
 		this. = roleResponsibilityId;
 	}

Returns:
the roleResponsibilityId
 
 		return this.;
 	}

Returns:
the kimResponsibility
 
 		if (  == null &&  != null ) {
 			//TODO: this needs to be changed to use the KimResponsibilityInfo object
 			// but the changes are involved in the UiDocumentService based on the copyProperties method used
 			// to move the data to/from the document/real objects
             Responsibility info = KimApiServiceLocator.getResponsibilityService().getResponsibility(getResponsibilityId());
              = ResponsibilityBo.from(info);
 		}
 		return this.;
 	}

Parameters:
responsibilityId the responsibilityId to set
	public void setResponsibilityId(String responsibilityId) {
		this. = responsibilityId;
	}

Parameters:
kimResponsibility the kimResponsibility to set
	public void setKimResponsibility(ResponsibilityBo kimResponsibility) {
		this. = kimResponsibility;
	}

Returns:
the responsibilityId
    		return this.;
	}

Returns:
the roleRspActions
		if(this.!=null && this..size()>0)
			return this..get(0);
		return null;
	}

Returns:
the roleRspActions
		return this.;
	}

Parameters:
roleRspActions the roleRspActions to set
	public void setRoleRspActions(
		this. = roleRspActions;
	}
    public String getName(){
        ifnull ==  ) {
            getKimResponsibility();
        }
        if (null == ) {
            return "";
        }
        return .getName();
    }
    public String getNamespaceCode(){
        ifnull ==  ) {
            getKimResponsibility();
        }
        if (null == ) {
            return "";
        }
        return .getNamespaceCode();
    }
New to GrepCode? Check out our FAQ X