{
String identificationTag = generalComposite.getIdentificationTag();
int precedence = generalComposite.getPrecedence();
AuthenticationLevel authenticationLevel = generalComposite.getAuthenticationLevel();
ACIItem aciItem = null;
if ( generalComposite.isUserFirst() )
{
Collection<UserClass> userClasses = userFirstUserClassesComposite.getUserClasses();
Collection<UserPermission> userPermissions = userFirstUserPermissionsComposite.getUserPermissions();
aciItem = new UserFirstACIItem( identificationTag, precedence, authenticationLevel, userClasses,
userPermissions );
}
else if ( generalComposite.isItemFirst() )
{
Collection<ProtectedItem> protectedItems = itemFirstProtectedItemsComposite.getProtectedItems();
Collection<ItemPermission> itemPermissions = itemFirstItemPermissionsComposite.getItemPermissions();
aciItem = new ItemFirstACIItem( identificationTag, precedence, authenticationLevel, protectedItems,
itemPermissions );
}
else
{
aciItem = null;
}
String aci = "";
if ( aciItem != null )
{
aci = aciItem.toString();
}
return aci;
}