/** * Returns description attribute of a resource object. * * Returns null if there is no description attribute or the attribute is not * known. * * The exception should be never thrown unless there is some bug in the * code. The validation of model consistency should be done at the time of * schema parsing. * * @return description attribute of a resource object. * @throws IllegalStateException * if there is no definition for the referenced attributed */ @Override public ResourceAttribute<String> getDescriptionAttribute() { if (getDefinition() == null) { return null; } return findAttribute(getDefinition().getDisplayNameAttribute()); }
/** * Returns display name attribute of a resource object. * * Returns null if there is no display name attribute or the attribute is * not known. * * The exception should be never thrown unless there is some bug in the * code. The validation of model consistency should be done at the time of * schema parsing. * * @return display name attribute of a resource object. * @throws IllegalStateException * if there is no definition for the referenced attributed */ @Override public ResourceAttribute getDisplayNameAttribute() { if (getDefinition() == null) { return null; } return findAttribute(getDefinition().getDisplayNameAttribute()); }
/** * Specifies which resource attribute should be used as a "technical" name * for the account. This name will appear in log files and other troubleshooting * tools. The name should be a form of unique identifier that can be used to * locate the resource object for diagnostics. It should not contain white chars and * special chars if that can be avoided and it should be reasonable short. * It is different from a display name attribute. Display name is intended for a * common user or non-technical administrator (such as role administrator). The * naming attribute is intended for technical IDM administrators and developers. * * @return attribute that should be used as a "technical" name * for the account. */ @Override public ResourceAttribute<String> getNamingAttribute() { if (getDefinition() == null) { return null; } if (getDefinition().getNamingAttribute()==null) { return null; } return findAttribute(getDefinition().getNamingAttribute()); }