| | |
| | | * |
| | | * |
| | | * Copyright 2008-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | if (targetDN != null) |
| | | { |
| | | Message message = ERR_VIRTUAL_STATIC_GROUP_MULTIPLE_TARGETS.get( |
| | | String.valueOf(groupEntry.getDN())); |
| | | String.valueOf(groupEntry.getName())); |
| | | throw new DirectoryException(ResultCode.OBJECTCLASS_VIOLATION, |
| | | message); |
| | | } |
| | |
| | | } |
| | | |
| | | Message message = ERR_VIRTUAL_STATIC_GROUP_CANNOT_DECODE_TARGET. |
| | | get(v.getValue().toString(), String.valueOf(groupEntry.getDN()), |
| | | get(v.getValue().toString(), |
| | | String.valueOf(groupEntry.getName()), |
| | | de.getMessageObject()); |
| | | throw new DirectoryException(ResultCode.INVALID_ATTRIBUTE_SYNTAX, |
| | | message, de); |
| | |
| | | if (targetDN == null) |
| | | { |
| | | Message message = ERR_VIRTUAL_STATIC_GROUP_NO_TARGET.get( |
| | | String.valueOf(groupEntry.getDN())); |
| | | String.valueOf(groupEntry.getName())); |
| | | throw new DirectoryException(ResultCode.OBJECTCLASS_VIOLATION, message); |
| | | } |
| | | |
| | | return new VirtualStaticGroup(groupEntry.getDN(), targetDN); |
| | | return new VirtualStaticGroup(groupEntry.getName(), targetDN); |
| | | } |
| | | |
| | | |