Home > Contents > Index >
Template Tags TOC | Alpha TOC | Tag Family TOC | Purpose TOC | Annotated TOC | Index
dir:listusers
Returns a list of all ancestors to the property
CS.Property.dir.peopleParent.Syntax
<dir:listusers list="user list" [commonancestor="users parent"]>Parameters
list (required)- List in which to return the distinguished names of all descendants found. The names returned are relative to the
baseDNproperty.
commonancestor (optional)- Specifies the root of the Sites user tree. If this parameter is not specified the default is the value specified in the
CS.Property.dir.people.Parentproperty.
Error Numbers
The possible values of
errnoinclude:
Value Description -15004 Implementation doesn't support this operation -15005 Unexpected naming exceptions from JNDI provider. -15006 A required property missing, or class name specified for factory classes is in error. -15007 Unexpected schema violation errors from JNDI provider. -15008 General error in the syntax of an IName. -15009 Unexpected invalid attribute exceptions from JNDI provider -15010 Unexpected invalid attribute id exceptions from JNDI provider. -15011 Unexpected invalid attribute value exceptions from JNDI provider. -15012 User does not have permission to perform the operation. -15014 Unexpected JNDI read error. -15015 Unexpected JNDI write error. -15016 JNDI attribute already in use. 15017 User is already a member. -15018 User is not a member. -15020 User is not valid. -15023 Unexpected JNDI connection errors. -15024 Required attribute missing. -15025 Unknown error. -15030 SQL error. -15031 Query failed. -15034 Database error occurred while attempting to delete an attribute. -15036 Missing or invalid child argument tags for tag.Description
The parameter
commonancestormay be specified to override theCS.Property.dir.peopleParentvalue. The same results may be achieved using thedir.childrentag. Thedir.listuserstag is provided as a convenience for user operations.Example
<dir:listusers list="alluserlist"/> <ics:if condition='<%=ics.GetErrno()==0%>'> <ics:then> <p><b><ics.listget listname="alluserlist" fieldname="#numRows"/> USER IN DN= <%=ics.GetProperty("peopleparent", "dir.ini", true) %></b></p> <table border=1 cellpadding=2 cellspacing=0> <tr bgcolor=blue><td><font face=tahoma color=white size=+1><b>USER DN's</font></td></tr> <ics:listloop listname="alluserlist"> <tr><td><font face=tahoma size=-1><ics:listget listname="alluserlist" fieldname="NAME"/></font></td></tr> </ics:listloop> </table> </ics:then> <ics:else> <p><b>No Users Found! Error=<ics:geterrno/></p> </ics:else> </ics:if>Release Introduced
This tag was introduced in CS release 4.0.
Home > Contents > Index > ![]()
Oracle JSP Tag Reference
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.