Announcement Announcement Module
Collapse
No announcement yet.
Attributes other than String Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Attributes other than String

    I am using the Context mapper to get the list of Attributes from LDAP
    Following is the code
    Code:
    private class PersonContextMapper extends AbstractContextMapper {
    		public Object doMapFromContext(DirContextOperations ctx) {
    			Person person = new Person();
    			person.setLoginId((ctx.getStringAttribute("cn")));
    person.setLoginDate(ctx.getStringAttibute("logindate")));
    			return person;
    		}
    	}
    I am able to get only String attributes using the DirContextOperations.
    Is it possible to read the attributes as a Date or Integer.In my case the loginDate is a Date object.

    Or is it that we can read the attributes as only String from the LDAP.
    Please clarify
Working...
X