View Javadoc

1   package org.kuali.student.common.ui.shared;
2   
3   import org.kuali.student.r1.common.rice.StudentIdentityConstants;
4   
5   @Deprecated
6   public class IdAttributes {
7   	
8   	public static final String ID_TYPE = "ID_TYPE";
9   	
10  	public enum IdType {
11  		//	TODO: OBJECT_ID has no references
12  		KS_KEW_OBJECT_ID(StudentIdentityConstants.QUALIFICATION_KEW_OBJECT_ID), DOCUMENT_ID(StudentIdentityConstants.DOCUMENT_NUMBER), OBJECT_ID("objectId"), COPY_OF_OBJECT_ID("copyOfObjectId"), COPY_OF_KS_KEW_OBJECT_ID("copyOfKualiStudentObjectWorkflowId");
13          
14  		final String stringValue;
15  
16  		private IdType(String value) {
17              this.stringValue = value;
18          }
19  
20          public String toString() {
21              return stringValue;
22          }
23          
24          public static IdType fromString(String name) {
25              for (IdType idTypeEnum : values()) {
26                  if (name.equals(idTypeEnum.toString())) {
27                      return idTypeEnum;
28                  }
29              }
30              return null;   
31          }
32  	}		
33  }