/** * Retrieves the values of the "objectClass" attribute from the entry, if * available. * * @return The values of the "objectClass" attribute from the entry, or * {@code null} if that attribute is not available. */ public final String[] getObjectClassValues() { return getAttributeValues("objectClass"); }
/** * Retrieves the values of the "objectClass" attribute from the entry, if * available. * * @return The values of the "objectClass" attribute from the entry, or * {@code null} if that attribute is not available. */ public final String[] getObjectClassValues() { return getAttributeValues("objectClass"); }
/** * Parses the values of the specified attribute as a list of strings. * * @param taskEntry The entry containing the attribute to be parsed. * @param attributeName The name of the attribute from which the value was * taken. * * @return A list of strings containing the values of the specified * attribute, or an empty list if the specified attribute does not * exist in the target entry. The returned list will be * unmodifiable. */ protected static List<String> parseStringList(final Entry taskEntry, final String attributeName) { final String[] valueStrings = taskEntry.getAttributeValues(attributeName); if (valueStrings == null) { return Collections.emptyList(); } else { return Collections.unmodifiableList(Arrays.asList(valueStrings)); } }
/** * Creates a new rotate log task from the provided entry. * * @param entry The entry to use to create this rotate log task. * * @throws TaskException If the provided entry cannot be parsed as a rotate * log task entry. */ public RotateLogTask(final Entry entry) throws TaskException { super(entry); // Get the log file paths, if present. final String[] pathValues = entry.getAttributeValues(ATTR_PATH); if (pathValues == null) { paths = Collections.emptyList(); } else { paths = Collections.unmodifiableList(new ArrayList<String>( Arrays.asList(pathValues))); } }
/** * Creates a new audit data security task from the provided entry. * * @param entry The entry to use to create this audit data security task. * * @throws TaskException If the provided entry cannot be parsed as an audit * data security task entry. */ public AuditDataSecurityTask(final Entry entry) throws TaskException { super(entry); includeAuditors = Collections.unmodifiableList(StaticUtils.toNonNullList( entry.getAttributeValues(ATTR_INCLUDE_AUDITOR))); excludeAuditors = Collections.unmodifiableList(StaticUtils.toNonNullList( entry.getAttributeValues(ATTR_EXCLUDE_AUDITOR))); backendIDs = Collections.unmodifiableList(StaticUtils.toNonNullList( entry.getAttributeValues(ATTR_BACKEND_ID))); reportFilters = Collections.unmodifiableList(StaticUtils.toNonNullList( entry.getAttributeValues(ATTR_REPORT_FILTER))); outputDirectory = entry.getAttributeValue(ATTR_OUTPUT_DIRECTORY); }
final String name) final String[] values = entry.getAttributeValues(name); if ((values == null) || (values.length == 0))
/** * Creates a new add schema file task from the provided entry. * * @param entry The entry to use to create this add schema file task. * * @throws TaskException If the provided entry cannot be parsed as a * add schema file task entry. */ public AddSchemaFileTask(final Entry entry) throws TaskException { super(entry); // Get the set of schema file names. It must be present. final String[] fileNames = entry.getAttributeValues(ATTR_SCHEMA_FILE); if ((fileNames == null) || (fileNames.length == 0)) { throw new TaskException(ERR_ADD_SCHEMA_FILE_TASK_NO_FILES.get( getTaskEntryDN())); } schemaFileNames = Collections.unmodifiableList(Arrays.asList(fileNames)); }
final String name) final String[] values = entry.getAttributeValues(name); if ((values == null) || (values.length == 0))
entry.getAttributeValues(ATTR_THIRD_PARTY_TASK_ARGUMENT); if ((args == null) || (args.length == 0))
final String[] iBranches = entry.getAttributeValues(ATTR_INCLUDE_BRANCH); if (iBranches == null) final String[] eBranches = entry.getAttributeValues(ATTR_EXCLUDE_BRANCH); if (eBranches == null) final String[] iFilters = entry.getAttributeValues(ATTR_INCLUDE_FILTER); if (iFilters == null) final String[] eFilters = entry.getAttributeValues(ATTR_EXCLUDE_FILTER); if (eFilters == null)
entry.getAttributeValues(ATTR_GROOVY_SCRIPTED_TASK_ARGUMENT); if ((args == null) || (args.length == 0))
String[] defs = schemaEntry.getAttributeValues(ATTR_ATTRIBUTE_SYNTAX); if (defs == null) defs = schemaEntry.getAttributeValues(ATTR_ATTRIBUTE_TYPE); if (defs == null) defs = schemaEntry.getAttributeValues(ATTR_DIT_CONTENT_RULE); if (defs == null) defs = schemaEntry.getAttributeValues(ATTR_DIT_STRUCTURE_RULE); if (defs == null) defs = schemaEntry.getAttributeValues(ATTR_MATCHING_RULE); if (defs == null) defs = schemaEntry.getAttributeValues(ATTR_MATCHING_RULE_USE); if (defs == null) defs = schemaEntry.getAttributeValues(ATTR_NAME_FORM); if (defs == null) defs = schemaEntry.getAttributeValues(ATTR_OBJECT_CLASS); if (defs == null)
final String[] nameArray = entry.getAttributeValues(ATTR_INDEX_NAME); if ((nameArray == null) || (nameArray.length == 0))
final String[] attrs = entry.getAttributeValues(ATTR_RETURN_ATTR); if (attrs == null)
final Entry referralEntry) final String[] refs = referralEntry.getAttributeValues("ref"); if (refs == null)
entry.getAttributeValues("ref"), NO_CONTROLS)); return;
final String[] indexArray = entry.getAttributeValues(ATTR_INDEX); if ((indexArray == null) || (indexArray.length == 0))
final String[] files = entry.getAttributeValues(ATTR_LDIF_FILE); if ((files == null) || (files.length == 0))
buffer.append("\">"); buffer.append(eol); final String[] values = entry.getAttributeValues("objectclass"); if (values != null) { buffer.append("\t\t\t<dsml:objectclass>");
final String[] referralArray = entry.getAttributeValues(ATTR_REFERRAL_URL); if (referralArray == null)